aws_gsc

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCredentials

func GetCredentials() (creds *credentials.Value, err kv.Error)

GetCredentials is used to extract the AWS credentials using the AWS standard mechanisims for specification of things such as env var AWS_PROFILE values or directly using env vars etc. The intent is that the AWS credentials are obtained using the stock AWS client side APIs and then can be used to access minio, as one example.

func IsAWS

func IsAWS() (aws bool, err kv.Error)

IsAWS can detect if pods running within a Kubernetes cluster are actually being hosted on an EC2 instance

Types

type AWSCred

type AWSCred struct {
	Project string
	Region  string
	Creds   *credentials.Credentials
}

AWSCred is used to encapsulate the credentials that are to be used to access an AWS resource such as an S3 bucket for example.

func AWSExtractCreds

func AWSExtractCreds(filenames []string, profile string) (cred *AWSCred, err kv.Error)

AWSExtractCreds can be used to populate a set of credentials from a pair of config and credentials files typically found in the ~/.aws directory by AWS clients

This is a deprecated function

Jump to

Keyboard shortcuts

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