mocksource

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSource

func (MockSource) AttemptAssumeRole

func (ms MockSource) AttemptAssumeRole() (*sts.AssumeRoleOutput, error)

AttemptAssumeRole will attempt to assume the supplied role and return either an error or the assumed role

func (MockSource) GetSecret

func (ms MockSource) GetSecret(assumedRole *sts.AssumeRoleOutput, secretID string) (*secretsmanager.GetSecretValueOutput, 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.

Jump to

Keyboard shortcuts

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