making iota zero based
@@ -12,8 +12,7 @@ type SignatureType int
// Supported values for the SignatureType
const (
- AWSSignature SignatureType = iota + 1
- signatureLimit
+ AWSSignature SignatureType = iota
)
// signatureTypeMappings is a table for conversion of signature type from string.
@@ -23,8 +22,8 @@ var signatureTypeMappings = map[SignatureType]string{
func GetSupportedSignaturesTypes() []SignatureType {
var result []SignatureType
- for index := SignatureType(1); index < signatureLimit; index++ {
- result = append(result, index)
+ for i := 0; SignatureType(i).String() != ""; i++ {
+ result = append(result, SignatureType(i))
}
return result
}
