awssm

package module
v0.0.0-...-40df9e5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) *source

Types

type Client

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

type Option

type Option func(*source)

func WithClient

func WithClient(client Client) Option

WithClient sets the AWS Secrets Manager client

func WithProfile

func WithProfile(profile string) Option

WithProfile sets the AWS profile to use

func WithRegion

func WithRegion(region string) Option

WithRegion sets the AWS region where secrets are stored

func WithSecretID

func WithSecretID(id string) Option

WithSecretID sets the ID or ARN of the secret to load

Jump to

Keyboard shortcuts

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