identity

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

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 (*AWSRolePrincipalTypeProvider) IsExpired

func (p *AWSRolePrincipalTypeProvider) IsExpired() bool

func (*AWSRolePrincipalTypeProvider) Name

func (*AWSRolePrincipalTypeProvider) Retrieve

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 (*AWSStaticPrincipalTypeProvider) IsExpired

func (p *AWSStaticPrincipalTypeProvider) IsExpired() bool

func (*AWSStaticPrincipalTypeProvider) Name

func (*AWSStaticPrincipalTypeProvider) Retrieve

Jump to

Keyboard shortcuts

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