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 ¶
This section is empty.
Functions ¶
func ResolveRegion ¶
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)
Click to show internal directories.
Click to hide internal directories.