secretsmanager

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package secretsmanager provide methods to get data from AWS Secret Manager

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSConfig

type AWSConfig struct {
	Region string
}

AWSConfig store configuration used to initialize secrets manager client.

type Client

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

Client represents an AWS Secrets Manager client

func New

func New(config *AWSConfig) *Client

New creates an AWS Session Manager Client

func (*Client) GetSecret

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

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

type SecretSpec

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.

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