Documentation ¶
Index ¶
Constants ¶
View Source
const ( TOKEN_REFRESH_FREQUENCY = 60.00 // Minutes // How many minutes early to refresh expiring tokens TOKEN_EXPIRATION_REFRESH_MINUTES time.Duration = 15.00 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAWSCredentialProvider ¶
type BasicAWSCredentialProvider struct {
// contains filtered or unexported fields
}
func NewBasicAWSCredentialProvider ¶
func NewBasicAWSCredentialProvider() *BasicAWSCredentialProvider
NewBasicAWSCredentialProvider creates a credential provider chain with commonly desired defaults. It pulls credentials from the environment and then the instance metadata TODO: Add the aws-cli's saved credentials format which reads from a file
func (*BasicAWSCredentialProvider) AddProvider ¶
func (bcp *BasicAWSCredentialProvider) AddProvider(acp AWSCredentialProvider)
AddProvider allows a custom provider to be added. Calling this will add the provider as the first in order of preference for usage
func (BasicAWSCredentialProvider) Credentials ¶
func (bcp BasicAWSCredentialProvider) Credentials() (*AWSCredentials, error)
Credentials returns valid AWSCredentials from a provider. It "sticks" to the last known good provider for as long as it works and will automatically refresh credentials if needed
type InstanceMetadataCredentialProvider ¶
type InstanceMetadataCredentialProvider struct {
// contains filtered or unexported fields
}
func NewInstanceMetadataCredentialProvider ¶
func NewInstanceMetadataCredentialProvider() *InstanceMetadataCredentialProvider
func (*InstanceMetadataCredentialProvider) Credentials ¶
func (imcp *InstanceMetadataCredentialProvider) Credentials() (*AWSCredentials, error)
type TestCredentialProvider ¶
type TestCredentialProvider struct{}
func (TestCredentialProvider) Credentials ¶
func (t TestCredentialProvider) Credentials() (*AWSCredentials, error)
Click to show internal directories.
Click to hide internal directories.