mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 15:53:28 +03:00
1814ae52f4
Expand the generated-file gate beyond *_gen.go and go.sum to cover generated tests, msgp output, stringer files, go.mod, and untracked generated artifacts. Regenerate the 19 stale stringer outputs with the go.mod-pinned x/tools version. Runtime String output is unchanged, and a repeated generation pass now leaves the tree byte-identical. Co-authored-by: ChatGPT <noreply@openai.com> Co-authored-by: Claude <noreply@anthropic.com>
36 lines
1.1 KiB
Go
36 lines
1.1 KiB
Go
// Code generated by "stringer -type=authType -trimprefix=authType auth-handler.go"; DO NOT EDIT.
|
|
|
|
package cmd
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[authTypeUnknown-0]
|
|
_ = x[authTypeAnonymous-1]
|
|
_ = x[authTypePresigned-2]
|
|
_ = x[authTypePresignedV2-3]
|
|
_ = x[authTypePostPolicy-4]
|
|
_ = x[authTypeStreamingSigned-5]
|
|
_ = x[authTypeSigned-6]
|
|
_ = x[authTypeSignedV2-7]
|
|
_ = x[authTypeJWT-8]
|
|
_ = x[authTypeSTS-9]
|
|
_ = x[authTypeStreamingSignedTrailer-10]
|
|
_ = x[authTypeStreamingUnsignedTrailer-11]
|
|
}
|
|
|
|
const _authType_name = "UnknownAnonymousPresignedPresignedV2PostPolicyStreamingSignedSignedSignedV2JWTSTSStreamingSignedTrailerStreamingUnsignedTrailer"
|
|
|
|
var _authType_index = [...]uint8{0, 7, 16, 25, 36, 46, 61, 67, 75, 78, 81, 103, 127}
|
|
|
|
func (i authType) String() string {
|
|
idx := int(i) - 0
|
|
if i < 0 || idx >= len(_authType_index)-1 {
|
|
return "authType(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _authType_name[_authType_index[idx]:_authType_index[idx+1]]
|
|
}
|