vault

package module
v0.0.0-...-9d8ded8 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Address    string
	MountPath  string
	SecretPath string
}

Options is Vault options.

type Vault

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

Vault is a client for Hashicorp Vault: https://www.vaultproject.io/

func New

func New(o *Options) (*Vault, error)

New returns a new Vault.

func (*Vault) Get

func (v *Vault) Get(key string) (string, error)

Get implements the secret.Secret interface.

func (*Vault) Put

func (v *Vault) Put(key, value string) error

Put implements the secret.Secret interface.

Jump to

Keyboard shortcuts

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