source

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS interface {
	// AttemptAssumeRole will attempt to assume the supplied role and return either an error or the assumed role
	AttemptAssumeRole() (*sts.AssumeRoleOutput, error)

	// GetSecret will return the descrypted version of the Secret from Secret Manager using the supplied
	// assumed role to interact with Secret Manager.  This function will return either an error or the
	// retrieved and decrypted secret.
	GetSecret(assumedRole *sts.AssumeRoleOutput, secretID string) (*secretsmanager.GetSecretValueOutput, error)
}

func New

func New(ctx context.Context, region string, roleArn, sessionName string) (AWS, error)

type Impl

type Impl struct {
	// contains filtered or unexported fields
}

func (Impl) AttemptAssumeRole

func (t Impl) AttemptAssumeRole() (*sts.AssumeRoleOutput, error)

func (Impl) GetSecret

func (t Impl) GetSecret(assumedRole *sts.AssumeRoleOutput, secretID string) (*secretsmanager.GetSecretValueOutput, error)

Jump to

Keyboard shortcuts

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