vault

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secrets added in v0.0.11

type Secrets map[string]interface{}

Secrets holds all recursive secrets of a certain path.

func (*Secrets) ListRecursive added in v0.0.11

func (s *Secrets) ListRecursive(v *Vault, rootPath, subPath string) error

ListRecursive returns secrets to a path recursive.

type Vault

type Vault struct {
	Client *api.Client
}

Vault represents a vault struct used for reading and writing secrets.

func NewClient

func NewClient() (*Vault, error)

NewClient returns a new vault client wrapper.

func (*Vault) DisableKV2Engine added in v0.0.2

func (v *Vault) DisableKV2Engine(rootPath string) error

DisableKV2Engine disables the kv2 engine at a specified path.

func (*Vault) EnableKV2Engine added in v0.0.2

func (v *Vault) EnableKV2Engine(rootPath string) error

EnableKV2Engine enables the kv2 engine at a specified path.

func (*Vault) ListSecrets added in v0.0.2

func (v *Vault) ListSecrets(rootPath, subPath string) ([]string, error)

ListSecrets returns all keys from vault kv secret path.

func (*Vault) ReadSecrets

func (v *Vault) ReadSecrets(rootPath, subPath string) (map[string]interface{}, error)

ReadSecrets returns a map with all secrets from a kv engine path.

func (*Vault) WriteSecrets added in v0.0.2

func (v *Vault) WriteSecrets(rootPath, subPath string, secrets map[string]interface{}) error

WriteSecrets writes kv secrets to a specified path.

Jump to

Keyboard shortcuts

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