iam

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2016 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL