vault

package
v0.0.0-...-91eb443 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider ...

func New

func New(token, addr, path string) (*Provider, error)

New ...

func (*Provider) Get

func (p *Provider) Get(v string) (string, error)

Get retrieves a value from vault using the KV engine. The actual key selected is determined by the value separated by the colon. For example "database:password" will retrieve the key "password" from the path "database".

Jump to

Keyboard shortcuts

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