Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialStore ¶
type CredentialStore interface { // Lookup the credentials for the given ARN. CredentialsForRole(arn string) (*sts.Credentials, error) // Refresh all the credentials that are expired or are about to expire. RefreshCredentials() }
CredentialStore caches IAM credentials and can refresh those which are going stale.
func NewCredentialStore ¶
func NewCredentialStore(client STSClient, seed int64) CredentialStore
NewCredentialStore accepts an STSClient and creates a new cache for assumed IAM credentials.
type STSClient ¶
type STSClient interface {
AssumeRole(*sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error)
}
STSClient specifies the subset of STS API calls used by the CredentialStore.
Click to show internal directories.
Click to hide internal directories.