Documentation ¶
Index ¶
- func CreateAWSSession(client kubernetes.Interface, namespace, region string, roleARN string, ...) (*session.Session, error)
- func GetAWSAssumeRoleCreds(roleARN, region string) (*session.Session, error)
- func GetAWSCreds(client kubernetes.Interface, namespace string, ...) (*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 CreateAWSSession ¶
func CreateAWSSession(client kubernetes.Interface, namespace, region string, roleARN string, accessKey *corev1.SecretKeySelector, secretKey *corev1.SecretKeySelector) (*session.Session, error)
CreateAWSSession based on credentials settings return a aws session
func GetAWSAssumeRoleCreds ¶
func GetAWSCreds ¶
func GetAWSCreds(client kubernetes.Interface, namespace string, access *corev1.SecretKeySelector, secret *corev1.SecretKeySelector) (*credentials.Credentials, error)
GetAWSCreds reads credential stored in Kubernetes secrets and return it.
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.