aws

package
v2.20.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAwsSecretsManagerSecret

func GetAwsSecretsManagerSecret(ctx context.Context, aws AwsClientFactory, profile *string, region *string, secretName string) (string, error)

Types

type AwsClientFactory

type AwsClientFactory interface {
	SecretsManagerClient(profile *string, region *string) (GetSecretValueInterface, error)
}

func NewClientFactory

func NewClientFactory() AwsClientFactory

type FakeAwsClientFactory

type FakeAwsClientFactory struct {
	GetSecretValueInterface

	Secrets map[string]string
}

func NewFakeClientFactory

func NewFakeClientFactory() *FakeAwsClientFactory

func (*FakeAwsClientFactory) GetSecretValue

func (*FakeAwsClientFactory) SecretsManagerClient

func (f *FakeAwsClientFactory) SecretsManagerClient(profile *string, region *string) (GetSecretValueInterface, error)

type GetSecretValueInterface added in v2.18.3

type GetSecretValueInterface interface {
	GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
}

type Resource added in v2.19.0

type Resource struct {
	ResourceId   string
	ResourceType string
}

func SplitResource added in v2.19.0

func SplitResource(resource string) (Resource, error)

Jump to

Keyboard shortcuts

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