vault

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Noprompt bool
	Address  string
	Username string
	Logger
}

type Logger added in v0.0.2

type Logger interface {
	Debug(args ...interface{})
	Info(args ...interface{})
}

type Vault added in v0.0.2

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

func New added in v0.0.2

func New(config *Config) (*Vault, error)

func (*Vault) Debug added in v0.0.2

func (v *Vault) Debug(message string)

func (*Vault) GetSecretKey added in v0.0.2

func (v *Vault) GetSecretKey(path string, key string) (string, error)

Pulls a single key from a secret path and returns the value as a string

func (*Vault) GetSecretKeys added in v0.0.2

func (v *Vault) GetSecretKeys(path string) (map[string]string, error)

Pulls all keys from a secret path and returns the value as a map[string]string

func (*Vault) GetUser added in v0.0.2

func (v *Vault) GetUser() string

func (*Vault) Info added in v0.0.2

func (v *Vault) Info(message string)

func (*Vault) ListSecrets added in v0.0.2

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

Pulls all keys from a secret path and returns the value as a map[string]string

func (*Vault) Login added in v0.0.2

func (v *Vault) Login() error

This is the main Login function

Jump to

Keyboard shortcuts

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