add stringer for ErrorCodes (#11933)

This commit is contained in:
Harshavardhana
2021-03-31 09:30:52 -07:00
committed by GitHub
parent 4dcce17eb9
commit 18dee6a333
4 changed files with 332 additions and 0 deletions

View File

@@ -80,6 +80,8 @@ type STSErrorResponse struct {
// STSErrorCode type of error status.
type STSErrorCode int
//go:generate stringer -type=STSErrorCode -trimprefix=Err $GOFILE
// Error codes, non exhaustive list - http://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithSAML.html
const (
ErrSTSNone STSErrorCode = iota