vault

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dummy = false

VaultDummy enables a built in dummy

Functions

func GetUnsealCommand

func GetUnsealCommand(vaultKey string) (*exec.Cmd, error)

func GetVaultVersion

func GetVaultVersion() (version string, err error)

GetVaultVersion get the version of the installed vault command line program

func LocalIsRunning

func LocalIsRunning() bool

func LocalIsSetUp

func LocalIsSetUp(folder string) bool

func LocalSetEnv

func LocalSetEnv()

func LocalSetup

func LocalSetup(folder string) error

func LocalStart

func LocalStart(folder string) (cmd *exec.Cmd, chanVaultErr chan error)

func Read

func Read(path string) (secret map[string]string, err error)

Read data from a vault - env vars need to be set

func Tree

func Tree(path string, level int) (err error)

Tree a tree of secrets

func WriteHtpasswdFiles

func WriteHtpasswdFiles(configFile string, hashAlgorithm htpasswd.HashAlgorithm) (err error)

WriteHtpasswdFiles write them to files or update them

Types

type HtpasswdConfig

type HtpasswdConfig map[string][]string

HtpasswdConfig config for htpasswd files

func ReadHtpasswdConfigFromFile

func ReadHtpasswdConfigFromFile(filename string) (config HtpasswdConfig, err error)

ReadHtpasswdConfigFromFile read htpasswd config from a file

type Version

type Version struct {
	Major, Minor, Release int
}

func GetVaultVersionParsed

func GetVaultVersionParsed() (version Version, err error)

Jump to

Keyboard shortcuts

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