Documentation ¶
Index ¶
- func CreateAWSSessionWithCredsInEnv(region string, roleARN string, accessKey *corev1.SecretKeySelector, ...) (*session.Session, error)
- func CreateAWSSessionWithCredsInVolume(region string, roleARN string, accessKey *corev1.SecretKeySelector, ...) (*session.Session, error)
- func GetAWSAssumeRoleCreds(roleARN, region string) (*session.Session, error)
- func GetAWSCredFromEnvironment(access *corev1.SecretKeySelector, secret *corev1.SecretKeySelector) (*credentials.Credentials, error)
- func GetAWSCredFromVolume(access *corev1.SecretKeySelector, secret *corev1.SecretKeySelector, ...) (*credentials.Credentials, error)
- func GetAWSSession(creds *credentials.Credentials, region string) (*session.Session, error)
- func GetAWSSessionWithoutCreds(region string) (*session.Session, error)
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, sessionToken *corev1.SecretKeySelector) (*session.Session, error)
CreateAWSSessionWithCredsInVolume based on credentials in mounted volumes, return a aws session
func GetAWSAssumeRoleCreds ¶
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, sessionToken *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)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.