Versions in this module Expand all Collapse all v0 v0.2.0 Feb 19, 2023 v0.1.0 Feb 12, 2023 Changes in this version + const FileCacheProviderName + var ErrNilPointer = errors.New("nil pointer") + func AssumeRoleCacheKey(options *stscreds.AssumeRoleOptions) (string, error) + func InjectFileCacheProvider(cfg *aws.Config, optFns ...func(o *FileCacheOptions)) (bool, error) + func LoadCredentials(path string) (*aws.Credentials, error) + func StoreCredentials(path string, creds *aws.Credentials) error + type AssumeRoleProviderUnsafeAccessor interface + Options func() stscreds.AssumeRoleOptions + func NewAssumeRoleProviderUnsafeAccessor(ptr *stscreds.AssumeRoleProvider) (AssumeRoleProviderUnsafeAccessor, error) + type CredentialsCacheUnsafeAccessor interface + Provider func() aws.CredentialsProvider + SetProvider func(provider aws.CredentialsProvider) + func NewCredentialsCacheUnsafeAccessor(ptr *aws.CredentialsCache) (CredentialsCacheUnsafeAccessor, error) + type FileCacheOptions struct + ExpiryWindow time.Duration + FileCacheDir string + type FileCacheProvider struct + func NewFileCacheProvider(provider aws.CredentialsProvider, cacheKey string, ...) *FileCacheProvider + func (p *FileCacheProvider) Retrieve(ctx context.Context) (aws.Credentials, error) + type FileCacheProviderError struct + Err error + func (e *FileCacheProviderError) Error() string + func (e *FileCacheProviderError) Unwrap() error + type InjectionError struct + Err error + func (e *InjectionError) Error() string + func (e *InjectionError) Unwrap() error