vault

package
v0.0.0-...-049935a Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigFile = "vault-config.yml"

DefaultConfigFile is the name of the default config file

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// how many key parts exist
	SecretShares int
	// how many of these parts are needed to unseal Vault (secretThreshold <= secretShares)
	SecretThreshold int

	// if this root token is set, the dynamic generated will be invalidated and this created instead
	InitRootToken string
	// should the root token be stored in the keyStore
	StoreRootToken bool
}

Config holds the configuration of the Vault initialization

type Vault

type Vault interface {
	Sealed() (bool, error)
	Unseal() error
	Init() error
	Configure() error
}

Vault is an interface that can be used to attempt to perform actions against a Vault server.

func New

func New(k kv.Service, cl *api.Client, config Config) (Vault, error)

New returns a new vault Vault, or an error.

Jump to

Keyboard shortcuts

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