Versions in this module Expand all Collapse all v0 v0.1.0 Jul 24, 2022 Changes in this version + const EnvVarAccessKeyID + const EnvVarAccessKeySecret + const EnvVarAccessKeyStsToken + const EnvVarPrivateKey + const EnvVarPublicKeyID + const EnvVarRoleArn + const EnvVarRoleName + const EnvVarRoleSessionExpiration + const EnvVarRoleSessionName + const EnvVarSessionExpiration + var ErrNoValidCredentialsFound = errors.New("no valid credentials were found") + type ChainProvider struct + Providers []Provider + func (p *ChainProvider) Retrieve() (auth.Credential, error) + type Configuration struct + AccessKeyID string + AccessKeySecret string + AccessKeyStsToken string + PrivateKey string + PublicKeyID string + RoleArn string + RoleName string + RoleSessionExpiration *int + RoleSessionName string + SessionExpiration *int + type ConfigurationProvider struct + Configuration *Configuration + func (p *ConfigurationProvider) Retrieve() (auth.Credential, error) + type EnvProvider struct + func (p *EnvProvider) Retrieve() (auth.Credential, error) + type InstanceMetadataProvider struct + RoleName string + func (p *InstanceMetadataProvider) GetRoleName() (roleName string, err error) + func (p *InstanceMetadataProvider) Retrieve() (auth.Credential, error) + type Provider interface + Retrieve func() (auth.Credential, error) + func NewChainProvider(providers []Provider) Provider + func NewConfigurationCredentialProvider(configuration *Configuration) Provider + func NewEnvCredentialProvider() Provider + func NewInstanceMetadataProvider() Provider