Interface: aws.CredentialsProvider
import "../ibm-cos-sdk-go-v2/aws"
Overview
A CredentialsProvider is the interface for any component which will provide credentials Credentials. A CredentialsProvider is required to manage its own Expired state, and what to be expired means.
A credentials provider implementation can be wrapped with a CredentialCache to cache the credential value retrieved. Without the cache the SDK will attempt to retrieve the credentials for every request.
Implemented By
CredentialsCache, CredentialsProviderFunc, ratelimit.TokenBucket
Interface Method Summary collapse
-
Retrieve(ctx context.Context) (Credentials, error)
interface
Retrieve returns nil if it successfully retrieved the value.
Interface Method Details
Retrieve(ctx context.Context) (Credentials, error)
This method is abstract.
Retrieve returns nil if it successfully retrieved the value. Error is returned if the value were not obtainable, or empty.
184 |
// File 'aws/credentials.go', line 184
|