Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAssumeRoleCredentials ¶
func GetAssumeRoleCredentials(roleIdentityProvider *AWSRolePrincipalTypeProvider, awsConfig *aws.Config) *credentials.Credentials
Types ¶
type AWSPrincipalTypeProvider ¶
type AWSPrincipalTypeProvider interface { credentials.Provider // Hash returns a unique hash of the data forming the credentials // for this Principal Hash() (string, error) Name() string }
type AWSRolePrincipalTypeProvider ¶
type AWSRolePrincipalTypeProvider struct { Principal *infrav1.AWSClusterRoleIdentity // contains filtered or unexported fields }
func NewAWSRolePrincipalTypeProvider ¶
func NewAWSRolePrincipalTypeProvider(identity *infrav1.AWSClusterRoleIdentity, sourceProvider *AWSPrincipalTypeProvider, log logr.Logger) *AWSRolePrincipalTypeProvider
func (*AWSRolePrincipalTypeProvider) Hash ¶
func (p *AWSRolePrincipalTypeProvider) Hash() (string, error)
func (*AWSRolePrincipalTypeProvider) IsExpired ¶
func (p *AWSRolePrincipalTypeProvider) IsExpired() bool
func (*AWSRolePrincipalTypeProvider) Name ¶
func (p *AWSRolePrincipalTypeProvider) Name() string
func (*AWSRolePrincipalTypeProvider) Retrieve ¶
func (p *AWSRolePrincipalTypeProvider) Retrieve() (credentials.Value, error)
type AWSStaticPrincipalTypeProvider ¶
type AWSStaticPrincipalTypeProvider struct { Principal *infrav1.AWSClusterStaticIdentity // these are for tests :/ AccessKeyID string SecretAccessKey string SessionToken string // contains filtered or unexported fields }
func NewAWSStaticPrincipalTypeProvider ¶
func NewAWSStaticPrincipalTypeProvider(identity *infrav1.AWSClusterStaticIdentity, secret *corev1.Secret) *AWSStaticPrincipalTypeProvider
func (*AWSStaticPrincipalTypeProvider) Hash ¶
func (p *AWSStaticPrincipalTypeProvider) Hash() (string, error)
func (*AWSStaticPrincipalTypeProvider) IsExpired ¶
func (p *AWSStaticPrincipalTypeProvider) IsExpired() bool
func (*AWSStaticPrincipalTypeProvider) Name ¶
func (p *AWSStaticPrincipalTypeProvider) Name() string
func (*AWSStaticPrincipalTypeProvider) Retrieve ¶
func (p *AWSStaticPrincipalTypeProvider) Retrieve() (credentials.Value, error)
Click to show internal directories.
Click to hide internal directories.