Interface: credentials.Provider
Overview
A Provider is the interface for any component which will provide credentials Value. A provider is required to manage its own Expired state, and what to be expired means.
The Provider should not need to implement its own mutexes, because that will be managed by Credentials.
Implemented By
credentials.ChainProvider, credentials.EnvProvider, credentials.ErrorProvider, processcreds.ProcessProvider, ibmiam.Provider, plugincreds.Provider, endpointcreds.Provider, credentials.SharedCredentialsProvider, credentials.StaticProvider, ibmiam.TrustedProfileProvider
Interface Method Summary collapse
-
IsExpired() bool
interface
IsExpired returns if the credentials are no longer valid, and need to be retrieved.
-
Retrieve() (Value, error)
interface
Retrieve returns nil if it successfully retrieved the value.
Interface Method Details
IsExpired() bool
IsExpired returns if the credentials are no longer valid, and need to be retrieved.
119 |
// File 'aws/credentials/credentials.go', line 119
|