github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/cmd/stserrorcode_string.go (about) 1 // Code generated by "stringer -type=STSErrorCode -trimprefix=Err sts-errors.go"; DO NOT EDIT. 2 3 package cmd 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[ErrSTSNone-0] 12 _ = x[ErrSTSAccessDenied-1] 13 _ = x[ErrSTSMissingParameter-2] 14 _ = x[ErrSTSInvalidParameterValue-3] 15 _ = x[ErrSTSWebIdentityExpiredToken-4] 16 _ = x[ErrSTSClientGrantsExpiredToken-5] 17 _ = x[ErrSTSInvalidClientGrantsToken-6] 18 _ = x[ErrSTSMalformedPolicyDocument-7] 19 _ = x[ErrSTSInsecureConnection-8] 20 _ = x[ErrSTSInvalidClientCertificate-9] 21 _ = x[ErrSTSNotInitialized-10] 22 _ = x[ErrSTSIAMNotInitialized-11] 23 _ = x[ErrSTSUpstreamError-12] 24 _ = x[ErrSTSInternalError-13] 25 } 26 27 const _STSErrorCode_name = "STSNoneSTSAccessDeniedSTSMissingParameterSTSInvalidParameterValueSTSWebIdentityExpiredTokenSTSClientGrantsExpiredTokenSTSInvalidClientGrantsTokenSTSMalformedPolicyDocumentSTSInsecureConnectionSTSInvalidClientCertificateSTSNotInitializedSTSIAMNotInitializedSTSUpstreamErrorSTSInternalError" 28 29 var _STSErrorCode_index = [...]uint16{0, 7, 22, 41, 65, 91, 118, 145, 171, 192, 219, 236, 256, 272, 288} 30 31 func (i STSErrorCode) String() string { 32 if i < 0 || i >= STSErrorCode(len(_STSErrorCode_index)-1) { 33 return "STSErrorCode(" + strconv.FormatInt(int64(i), 10) + ")" 34 } 35 return _STSErrorCode_name[_STSErrorCode_index[i]:_STSErrorCode_index[i+1]] 36 }