secretsmanager

package
v0.0.0-...-fee140a Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New returns a configured Secrets Manager client.

Types

type API

type API struct {
	Client secretsmanageriface.SecretsManagerAPI
}

API wraps the Secrets Manager API interface.

func (*API) GetSecret

func (a *API) GetSecret(ctx aws.Context, secretName string) (secret string, err error)

GetSecret is a convenience wrapper for getting a secret from Secrets Manager.

func (*API) IsEnabled

func (a *API) IsEnabled() bool

IsEnabled returns true if the client is enabled and ready for use.

func (*API) Setup

func (a *API) Setup()

Setup creates a new Secrets Manager client.

Jump to

Keyboard shortcuts

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