Documentation ¶
Overview ¶
Package credentials provides types for retrieving credentials from credentials sources.
Index ¶
Constants ¶
View Source
const (
// StaticCredentialsName provides a name of Static provider
StaticCredentialsName = "StaticCredentials"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticCredentialsEmptyError ¶
type StaticCredentialsEmptyError struct{}
StaticCredentialsEmptyError is emitted when static credentials are empty.
func (*StaticCredentialsEmptyError) Error ¶
func (*StaticCredentialsEmptyError) Error() string
type StaticCredentialsProvider ¶
type StaticCredentialsProvider struct {
Value aws.Credentials
}
A StaticCredentialsProvider is a set of credentials which are set, and will never expire.
func NewStaticCredentialsProvider ¶
func NewStaticCredentialsProvider(key, secret, session string) StaticCredentialsProvider
NewStaticCredentialsProvider return a StaticCredentialsProvider initialized with the AWS credentials passed in.
func (StaticCredentialsProvider) Retrieve ¶
func (s StaticCredentialsProvider) Retrieve(_ context.Context) (aws.Credentials, error)
Retrieve returns the credentials or error if the credentials are invalid.
Directories ¶
Path | Synopsis |
---|---|
Package ec2rolecreds provides the credentials provider implementation for retrieving AWS credentials from Amazon EC2 Instance Roles via Amazon EC2 IMDS.
|
Package ec2rolecreds provides the credentials provider implementation for retrieving AWS credentials from Amazon EC2 Instance Roles via Amazon EC2 IMDS. |
Package endpointcreds provides support for retrieving credentials from an arbitrary HTTP endpoint.
|
Package endpointcreds provides support for retrieving credentials from an arbitrary HTTP endpoint. |
Package processcreds is a credentials provider to retrieve credentials from a external CLI invoked process.
|
Package processcreds is a credentials provider to retrieve credentials from a external CLI invoked process. |
Package ssocreds provides a credential provider for retrieving temporary AWS credentials using an SSO access token.
|
Package ssocreds provides a credential provider for retrieving temporary AWS credentials using an SSO access token. |
Package stscreds are credential Providers to retrieve STS AWS credentials.
|
Package stscreds are credential Providers to retrieve STS AWS credentials. |
Click to show internal directories.
Click to hide internal directories.