credentials

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCredentialProvider

type AWSCredentialProvider interface {
	Credentials() (*AWSCredentials, error)
}

func NewCredentialProvider

func NewCredentialProvider(access, secret string) AWSCredentialProvider

type AWSCredentials

type AWSCredentials struct {
	AccessKey string
	SecretKey string
	Token     string
}

func (*AWSCredentials) Credentials

func (creds *AWSCredentials) Credentials() (*AWSCredentials, error)

type EnvironmentCredentialProvider

type EnvironmentCredentialProvider struct{}

func NewEnvironmentCredentialProvider

func NewEnvironmentCredentialProvider() *EnvironmentCredentialProvider

func (EnvironmentCredentialProvider) Credentials

func (ecp EnvironmentCredentialProvider) Credentials() (*AWSCredentials, error)

Credentials pulls the credentials from common environment variables.

type NoCredentialProviderError

type NoCredentialProviderError struct{}

func (NoCredentialProviderError) Error

func (ncp NoCredentialProviderError) Error() string

type RefreshableAWSCredentialProvider

type RefreshableAWSCredentialProvider interface {
	AWSCredentialProvider

	Refresh()

	NeedsRefresh() bool
}

Jump to

Keyboard shortcuts

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