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 awsCredentials) (FileCacheProvider, error)
NewFileCacheProvider creates a new FileCacheProvider with the os.UserCacheDir as the cacheHome
func (*FileCacheProvider) IsExpired ¶
func (f *FileCacheProvider) IsExpired() bool
IsExpired checks if the credentials are expired
func (*FileCacheProvider) Retrieve ¶
func (f *FileCacheProvider) Retrieve() (credentials.Value, error)
Retrieve retrieves credentials
Click to show internal directories.
Click to hide internal directories.