vcreader

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vault

type Vault struct {
	Storage  string
	Address  string
	Insecure bool
	Config   *api.Config
	Client   *api.Client
}

Vault - vault api calls Expects VAULT_ADDR, VAULT_INSECURE, VAULT_TOKEN to be set in env variables

func (*Vault) GetJSON

func (v *Vault) GetJSON(key string) ([]byte, error)

func (*Vault) GetMapByte added in v0.0.3

func (v *Vault) GetMapByte(key string) (map[string][]byte, error)

func (*Vault) GetMapInterface added in v0.0.3

func (v *Vault) GetMapInterface(key string) (map[string]interface{}, error)

func (*Vault) GetMapString added in v0.0.3

func (v *Vault) GetMapString(key string) (map[string]string, error)

func (*Vault) Init

func (v *Vault) Init() error

Init - initialize vault object - creates connection and empty key structure

func (*Vault) List added in v0.0.4

func (v *Vault) List(key string) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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