Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheableCredentials ¶
type CacheableCredentials struct { credentials.Value Expiration int64 }
CacheableCredentials is an implementation of the AWS credentials.Value type with the addition of an Expiration field
type CredentialCacher ¶
type CredentialCacher interface { Store(*CacheableCredentials) error Fetch() (*CacheableCredentials, error) }
CredentialCacher is the interface details to implement AWS credential caching
type FileCredentialCache ¶
type FileCredentialCache struct { Path string // contains filtered or unexported fields }
FileCredentialCache is a CredentialCacher implementation which will cache credentials in a local file
func (*FileCredentialCache) Fetch ¶
func (c *FileCredentialCache) Fetch() (*CacheableCredentials, error)
Fetch the cached credentials from the file
func (*FileCredentialCache) Store ¶
func (c *FileCredentialCache) Store(cred *CacheableCredentials) error
Store the provided credentials to the file as a serialized JSON representation
Click to show internal directories.
Click to hide internal directories.