Versions in this module Expand all Collapse all v0 v0.5.3 May 28, 2015 Changes in this version + var AnonymousCredentials = NewStaticCredentials("", "", "") + var ErrAccessKeyIDNotFound = fmt.Errorf("AWS_ACCESS_KEY_ID or AWS_ACCESS_KEY not found in environment") + var ErrNoValidProvidersFoundInChain = fmt.Errorf("no valid providers in chain") + var ErrSecretAccessKeyNotFound = fmt.Errorf("AWS_SECRET_ACCESS_KEY or AWS_SECRET_KEY not found in environment") + var ErrSharedCredentialsHomeNotFound = fmt.Errorf("User home directory not found.") + var ErrStaticCredentialsEmpty = fmt.Errorf("static credentials are empty") + type ChainProvider struct + Providers []Provider + func (c *ChainProvider) IsExpired() bool + func (c *ChainProvider) Retrieve() (Value, error) + type Credentials struct + func NewChainCredentials(providers []Provider) *Credentials + func NewCredentials(provider Provider) *Credentials + func NewEC2RoleCredentials(client *http.Client, endpoint string, window time.Duration) *Credentials + func NewEnvCredentials() *Credentials + func NewSharedCredentials(filename, profile string) *Credentials + func NewStaticCredentials(id, secret, token string) *Credentials + func (c *Credentials) Expire() + func (c *Credentials) Get() (Value, error) + func (c *Credentials) IsExpired() bool + type EC2RoleProvider struct + Client *http.Client + Endpoint string + ExpiryWindow time.Duration + func (m *EC2RoleProvider) IsExpired() bool + func (m *EC2RoleProvider) Retrieve() (Value, error) + type EnvProvider struct + func (e *EnvProvider) IsExpired() bool + func (e *EnvProvider) Retrieve() (Value, error) + type Provider interface + IsExpired func() bool + Retrieve func() (Value, error) + type SharedCredentialsProvider struct + Filename string + Profile string + func (p *SharedCredentialsProvider) IsExpired() bool + func (p *SharedCredentialsProvider) Retrieve() (Value, error) + type StaticProvider struct + func (s *StaticProvider) IsExpired() bool + func (s *StaticProvider) Retrieve() (Value, error) + type Value struct + AccessKeyID string + SecretAccessKey string + SessionToken string