Help us shape the future of Go! Take the 2026 Go Developer Survey

secretsmanager

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a wrapper around the AWS Secrets Manager client.

func New

func New(versionStage string, noFlatten bool) (*Client, error)

New creates a new Secrets Manager client with automatic region detection.

func (*Client) GetValues

func (c *Client) GetValues(ctx context.Context, keys []string) (map[string]string, error)

GetValues retrieves the values for the given keys from AWS Secrets Manager. For JSON secrets, keys like /database/host will look up the "database" secret and extract the "host" field from the JSON.

func (*Client) WatchPrefix

func (c *Client) WatchPrefix(ctx context.Context, prefix string, keys []string, waitIndex uint64, stopChan chan bool) (uint64, error)

WatchPrefix is not implemented for Secrets Manager. Secrets Manager does not support streaming/watching for changes.

Jump to

Keyboard shortcuts

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