secretsmanager

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates and returns a new session connection to Secrets manager

Types

type API

type API struct {
	Client secretsmanageriface.SecretsManagerAPI
}

API wraps a secrets manager client interface

func (*API) GetSecret

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

GetSecret wraps AWS SecretsManager GetSecretValue API

func (*API) IsEnabled

func (a *API) IsEnabled() bool

IsEnabled checks if the client is set

func (*API) Setup

func (a *API) Setup()

Setup creates a secrets manager client

Jump to

Keyboard shortcuts

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