Versions in this module Expand all Collapse all v1 v1.0.1 Dec 7, 2023 v1.0.0 Dec 7, 2023 Changes in this version + const TTL + var OptAssumeRole = func(assumeRoleArn string) opt + func Canonicalize(a string) (string, error) + func Exchange(ctx context.Context, account string, region string, opts ...opt) ([]byte, time.Time, error) + func StdinStderrTokenProvider() (string, error) + type FormatError struct + func (e FormatError) Error() string + type Generator interface + FormatJSON func(Token) string + Get func(string) (Token, error) + GetWithOptions func(options *GetTokenOptions) (Token, error) + GetWithRole func(clusterID, roleARN string) (Token, error) + GetWithRoleForSession func(clusterID string, roleARN string, sess *session.Session) (Token, error) + GetWithSTS func(clusterID string, stsAPI stsiface.STSAPI) (Token, error) + func NewGenerator(forwardSessionName bool) (Generator, error) + type GetTokenOptions struct + AssumeRoleARN string + AssumeRoleExternalID string + ClusterID string + Region string + Session *session.Session + SessionName string + type Identity struct + ARN string + AccessKeyID string + AccountID string + CanonicalARN string + SessionName string + UserID string + type STSError struct + func NewSTSError(m string) STSError + func (e STSError) Error() string + type Token struct + Expiration time.Time + Token string + type TokenGenerator interface + Generate func(context.Context) ([]byte, time.Time, error) + func NewTokenGeneratorIAM(account, region string) TokenGenerator + func NewTokenGeneratorStatic(value []byte) TokenGenerator + type TokenRefresher interface + Stop func() + Token func() ([]byte, bool, error) + func NewTokenRefresherAlways(generator TokenGenerator) TokenRefresher + func NewTokenRefresherTTL(generator TokenGenerator, maxTokenAge time.Duration, ...) TokenRefresher + type Verifier interface + Verify func(token string) (*Identity, error) + func NewVerifier(clusterID string, partitionID string) Verifier