credentials

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const AWSCredentialsTemplate = `` /* 189-byte string literal not displayed */

AWSCredentialsTemplate generates an AWS credentials file that can be loaded by the various SDKs.

View Source
const AWSDefaultRegion = "us-east-1"

Variables

View Source
var ErrNoAWSRegionConfigured = errors.New("no AWS region configured. Use --region or set AWS_REGION or DEFAULT_AWS_REGION environment variable")

Functions

func ResolveRegion

func ResolveRegion(explicitRegion string) (string, error)

Types

type AWSCredentials

type AWSCredentials struct {
	AccessKeyID     string
	SecretAccessKey string
	SessionToken    string
	Region          string
}

func NewAWSCredentialFromDefaultChain

func NewAWSCredentialFromDefaultChain(region string) (*AWSCredentials, error)

func (AWSCredentials) RenderAWSDefaultProfile

func (c AWSCredentials) RenderAWSDefaultProfile() (string, error)

func (AWSCredentials) RenderBase64EncodedAWSDefaultProfile

func (c AWSCredentials) RenderBase64EncodedAWSDefaultProfile() (string, error)

type ErrEnvironmentVariableNotFound

type ErrEnvironmentVariableNotFound string

func (ErrEnvironmentVariableNotFound) Error

Jump to

Keyboard shortcuts

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