Documentation ¶
Index ¶
- func EcsRamRole(ramRole string) func(*EcsRoleCredentialsProviderOptions)
- type AnonymousCredentialsProvider
- type Credentials
- type CredentialsFetcher
- type CredentialsFetcherFunc
- type CredentialsFetcherOptions
- type CredentialsFetcherProvider
- type CredentialsProvider
- func NewAnonymousCredentialsProvider() CredentialsProvider
- func NewCredentialsFetcherProvider(fetcher CredentialsFetcher, optFns ...func(*CredentialsFetcherOptions)) CredentialsProvider
- func NewEcsRoleCredentialsProvider(optFns ...func(*EcsRoleCredentialsProviderOptions)) CredentialsProvider
- func NewEcsRoleCredentialsProviderWithoutRefresh(optFns ...func(*EcsRoleCredentialsProviderOptions)) CredentialsProvider
- func NewEnvironmentVariableCredentialsProvider() CredentialsProvider
- func NewProcessCredentialsProvider(command string, optFns ...func(*ProcessCredentialsProviderOptions)) CredentialsProvider
- func NewStaticCredentialsProvider(id, secret string, tokens ...string) CredentialsProvider
- type CredentialsProviderFunc
- type EcsRoleCredentialsProviderOptions
- type EnvironmentVariableCredentialsProvider
- type ProcessCredentialsProvider
- type ProcessCredentialsProviderOptions
- type StaticCredentialsProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EcsRamRole ¶
func EcsRamRole(ramRole string) func(*EcsRoleCredentialsProviderOptions)
Types ¶
type AnonymousCredentialsProvider ¶
type AnonymousCredentialsProvider struct{}
func (*AnonymousCredentialsProvider) GetCredentials ¶
func (*AnonymousCredentialsProvider) GetCredentials(_ context.Context) (Credentials, error)
type Credentials ¶
type Credentials struct { AccessKeyID string // Access key ID AccessKeySecret string // Access Key Secret SecurityToken string // Security Token Expires *time.Time // The time the credentials will expire at. }
func (Credentials) Expired ¶
func (v Credentials) Expired() bool
func (Credentials) HasKeys ¶
func (v Credentials) HasKeys() bool
type CredentialsFetcher ¶
type CredentialsFetcher interface {
Fetch(ctx context.Context) (Credentials, error)
}
type CredentialsFetcherFunc ¶
type CredentialsFetcherFunc func(context.Context) (Credentials, error)
CredentialsFetcherFunc provides a helper wrapping a function value to satisfy the CredentialsFetcher interface.
func (CredentialsFetcherFunc) Fetch ¶
func (fn CredentialsFetcherFunc) Fetch(ctx context.Context) (Credentials, error)
Fetch delegates to the function value the CredentialsFetcherFunc wraps.
type CredentialsFetcherOptions ¶
CredentialsFetcherOptions are the options
type CredentialsFetcherProvider ¶
type CredentialsFetcherProvider struct {
// contains filtered or unexported fields
}
func (*CredentialsFetcherProvider) GetCredentials ¶
func (c *CredentialsFetcherProvider) GetCredentials(ctx context.Context) (Credentials, error)
type CredentialsProvider ¶
type CredentialsProvider interface {
GetCredentials(ctx context.Context) (Credentials, error)
}
func NewAnonymousCredentialsProvider ¶
func NewAnonymousCredentialsProvider() CredentialsProvider
func NewCredentialsFetcherProvider ¶
func NewCredentialsFetcherProvider(fetcher CredentialsFetcher, optFns ...func(*CredentialsFetcherOptions)) CredentialsProvider
func NewEcsRoleCredentialsProvider ¶
func NewEcsRoleCredentialsProvider(optFns ...func(*EcsRoleCredentialsProviderOptions)) CredentialsProvider
func NewEcsRoleCredentialsProviderWithoutRefresh ¶
func NewEcsRoleCredentialsProviderWithoutRefresh(optFns ...func(*EcsRoleCredentialsProviderOptions)) CredentialsProvider
func NewEnvironmentVariableCredentialsProvider ¶
func NewEnvironmentVariableCredentialsProvider() CredentialsProvider
func NewProcessCredentialsProvider ¶
func NewProcessCredentialsProvider(command string, optFns ...func(*ProcessCredentialsProviderOptions)) CredentialsProvider
func NewStaticCredentialsProvider ¶
func NewStaticCredentialsProvider(id, secret string, tokens ...string) CredentialsProvider
type CredentialsProviderFunc ¶
type CredentialsProviderFunc func(context.Context) (Credentials, error)
CredentialsProviderFunc provides a helper wrapping a function value to satisfy the CredentialsProvider interface.
func (CredentialsProviderFunc) GetCredentials ¶
func (fn CredentialsProviderFunc) GetCredentials(ctx context.Context) (Credentials, error)
GetCredentials delegates to the function value the CredentialsProviderFunc wraps.
type EnvironmentVariableCredentialsProvider ¶
type EnvironmentVariableCredentialsProvider struct { }
func (*EnvironmentVariableCredentialsProvider) GetCredentials ¶
func (s *EnvironmentVariableCredentialsProvider) GetCredentials(ctx context.Context) (Credentials, error)
type ProcessCredentialsProvider ¶
type ProcessCredentialsProvider struct {
// contains filtered or unexported fields
}
func (*ProcessCredentialsProvider) GetCredentials ¶
func (p *ProcessCredentialsProvider) GetCredentials(ctx context.Context) (Credentials, error)
type StaticCredentialsProvider ¶
type StaticCredentialsProvider struct {
// contains filtered or unexported fields
}
func (StaticCredentialsProvider) GetCredentials ¶
func (s StaticCredentialsProvider) GetCredentials(_ context.Context) (Credentials, error)
Click to show internal directories.
Click to hide internal directories.