package module
v0.2.0 Latest Latest

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

Go to latest
Published: Apr 27, 2020 License: MPL-2.0 Imports: 6 Imported by: 1



Simple go package to get secrets from AWS Secrets Manager



Package secretsmanager provide methods to get data from AWS Secret Manager



This section is empty.


This section is empty.


This section is empty.


type AWSConfig added in v0.2.0

type AWSConfig struct {
	Region string

AWSConfig store configuration used to initialize secrets manager client.

type Client added in v0.2.0

type Client struct {
	// contains filtered or unexported fields

Client represents an AWS Secrets Manager client

maps to ProviderServices

func New

func New(config *AWSConfig) *Client

New creates an AWS Session Manager Client

func (*Client) GetSecret added in v0.2.0

func (c *Client) GetSecret(spec *SecretSpec) (string, error)

GetSecret return an AWS Secret Manager secret in plain text from a given secret name

func (*Client) SecretsManager added in v0.2.0

func (c *Client) SecretsManager() secretsmanageriface.SecretsManagerAPI

SecretsManager returns a representation of the Secrets Manager API

type SecretSpec added in v0.2.0

type SecretSpec struct {
	Name string
	Key  string

SecretSpec represent specs of secret to be searched If Key field is not set then package will return first secret key stored in secret name.

maps to ClusterConfig

type SecretString

type SecretString struct {
	Name         string
	SecretString string

SecretString is a concret representation of an AWS Secrets Manager Secret String

Jump to

Keyboard shortcuts

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