Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSessionCredentials ¶
func NewSessionCredentials(username, secretKey, mfaToken string, duration time.Duration) (*sts.Credentials, error)
NewSessionCredentials creates time restrained credentials.
Types ¶
type IAM ¶
type IAM interface {
ListAccessKeys(input *iam.ListAccessKeysInput) (*iam.ListAccessKeysOutput, error)
}
IAM interface holds required method signatures of IAM for easier test mocking
type STS ¶
type STS interface { GetCallerIdentity(input *sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error) GetSessionToken(input *sts.GetSessionTokenInput) (*sts.GetSessionTokenOutput, error) }
STS interface holds required method signatures of STS for easier test mocking
Click to show internal directories.
Click to hide internal directories.