filecachedcredentials

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 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 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

Jump to

Keyboard shortcuts

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