auth

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2015 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 6 Imported by: 0

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

func ToSDK added in v1.1.0

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

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL