aws

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAWSSessionWithCredsInEnv

func CreateAWSSessionWithCredsInEnv(region string, roleARN string, accessKey *corev1.SecretKeySelector, secretKey *corev1.SecretKeySelector) (*session.Session, error)

CreateAWSSessionWithCredsInEnv based on credentials in ENV, return a aws session

func CreateAWSSessionWithCredsInVolume added in v1.0.0

func CreateAWSSessionWithCredsInVolume(region string, roleARN string, accessKey *corev1.SecretKeySelector, secretKey *corev1.SecretKeySelector) (*session.Session, error)

CreateAWSSessionWithCredsInVolume based on credentials in mounted volumes, return a aws session

func GetAWSAssumeRoleCreds

func GetAWSAssumeRoleCreds(roleARN, region string) (*session.Session, error)

func GetAWSCredFromEnvironment

func GetAWSCredFromEnvironment(access *corev1.SecretKeySelector, secret *corev1.SecretKeySelector) (*credentials.Credentials, error)

GetAWSCredFromEnvironment reads credential stored in ENV by using envFrom.

func GetAWSCredFromVolume added in v1.0.0

func GetAWSCredFromVolume(access *corev1.SecretKeySelector, secret *corev1.SecretKeySelector) (*credentials.Credentials, error)

GetAWSCredFromVolume reads credential stored in mounted secret volume.

func GetAWSSession

func GetAWSSession(creds *credentials.Credentials, region string) (*session.Session, error)

func GetAWSSessionWithoutCreds

func GetAWSSessionWithoutCreds(region string) (*session.Session, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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