vault

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrMissingVaultClient means that we have not provided a valid vault client
	ErrMissingVaultClient            = "missing vault client"
	ErrMissingVaultAddrOrCredentials = "missing vault address or token"
	ErrMissingPath                   = "missing path"
	ErrInvalidPath                   = "invalid paths"
)

Variables

This section is empty.

Functions

func DeletePaths added in v0.3.1

func DeletePaths(paths []string, concurrency int8, client *api.Client, w io.Writer) (deleted uint64, err error)

DeletePaths removes all the paths in the list from Vault

func FilterDataPaths

func FilterDataPaths(paths []string, r *regexp.Regexp) (filtered []string)

FilterDataPaths filters the provided paths based on a regex, this only filters the data paths

func FilterOnlyDataPaths added in v0.4.2

func FilterOnlyDataPaths(paths []string) (filtered []string)

FilterOnlyDataPaths

func Health added in v0.3.1

func Health(w io.Writer, client *api.Client) (err error)

Health checks the vault info and prints out the details in the writer

func IsKV added in v0.4.2

func IsKV(mountPoint string, client *api.Client) (yes bool, err error)

func IsV2 added in v0.4.2

func IsV2(mountPoint string, client *api.Client) (yes bool, err error)

func MountPointFromPath added in v0.4.2

func MountPointFromPath(path string) (mountPoint string, err error)

func Tree

func Tree(rootPath string, client *api.Client, concurrency int8) (paths []string, err error)

Tree fetches a list of all the paths in Vault under the root path.

func TreeSerial added in v0.4.0

func TreeSerial(rootPath string, client *api.Client) (paths []string, err error)

TreeSerial fetches a list of all the paths in Vault under the root path one at a time

Types

This section is empty.

Jump to

Keyboard shortcuts

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