Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialsCache ¶
type CredentialsCache struct { AccessKeyId string `json:"accessKeyId"` Expiration time.Time `json:"expiration"` SecretAccessKey string `json:"secretAccessKey"` SessionToken string `json:"sessionToken"` // contains filtered or unexported fields }
func NewCredentials ¶
func NewCredentials(cfgPath string) *CredentialsCache
func (*CredentialsCache) Load ¶
func (cc *CredentialsCache) Load() (*CredentialsCache, error)
func (*CredentialsCache) Retrieve ¶
func (cc *CredentialsCache) Retrieve(ctx context.Context) (aws.Credentials, error)
func (*CredentialsCache) Save ¶
func (cc *CredentialsCache) Save(credentials *CredentialsCache) error
func (*CredentialsCache) Valid ¶
func (cc *CredentialsCache) Valid() bool
Click to show internal directories.
Click to hide internal directories.