secretsmanager

package module
v0.1.0 Latest Latest
Warning

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

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

README

secretsmanager

Simple go package to get secrets from AWS Secrets Manager

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 Secret

type Secret struct {
	Client secretsmanageriface.SecretsManagerAPI
}

Secret represents an AWS Secrets Manager client

func New

func New() (*Secret, error)

New creates an AWS Session Manager Client

func (*Secret) GetSecret

func (s *Secret) GetSecret(name string) (string, error)

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

type SecretString

type SecretString struct {
	Name   string
	Secret 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