secretsmanager

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MPL-2.0 Imports: 8 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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