vault

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data string) (bt []byte, err error)

func Encode

func Encode(data []byte) (str string, err error)

Types

type Vault

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

func New

func New(vaultURL, roleId, secretId, prefix string) (*Vault, error)

func (*Vault) Delete

func (v *Vault) Delete(name string) error

func (*Vault) Get

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

func (*Vault) GetBin

func (v *Vault) GetBin(name string) (out []byte, err error)

func (*Vault) Set

func (v *Vault) Set(name, data string) error

func (*Vault) SetBin

func (v *Vault) SetBin(name string, data []byte) error

Jump to

Keyboard shortcuts

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