secrets

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package secrets retrieves AWS Secrets Manager values with an in-memory cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecret

func GetSecret(ctx context.Context, name string, options GetOptions) (any, error)

Types

type Client

type Client interface {
	GetSecretValue(context.Context, *sdk.GetSecretValueInput, ...func(*sdk.Options)) (*sdk.GetSecretValueOutput, error)
}

type GetOptions

type GetOptions struct {
	parameters.Options
	SDKOptions *sdk.GetSecretValueInput
}

type Provider

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

func New

func New(client Client) *Provider

func (*Provider) ClearCache

func (p *Provider) ClearCache()

func (*Provider) Get

func (p *Provider) Get(ctx context.Context, name string, options GetOptions) (any, error)

Jump to

Keyboard shortcuts

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