cache

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: MIT Imports: 7 Imported by: 0

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

Fetch the cached credentials from the file

func (*FileCredentialCache) Store

Store the provided credentials to the file as a serialized JSON representation

Jump to

Keyboard shortcuts

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