Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileCacheProvider ¶
type FileCacheProvider struct {
// contains filtered or unexported fields
}
FileCacheProvider provides credentials from a file cache with a fallback
func NewFileCacheProvider ¶
func NewFileCacheProvider(credentials aws.CredentialsProvider) (FileCacheProvider, error)
NewFileCacheProvider creates a new FileCacheProvider with the os.UserCacheDir as the cacheHome
func (*FileCacheProvider) Retrieve ¶
func (f *FileCacheProvider) Retrieve(ctx context.Context) (aws.Credentials, error)
Retrieve retrieves credentials
Click to show internal directories.
Click to hide internal directories.