v1

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

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

The Factory will return a vault implementation of creds.Variables.

func NewFactory

func NewFactory(sr SecretReader, prefix string) *Factory

func (*Factory) NewVariables

func (factory *Factory) NewVariables() vault.Variables

NewVariables will block until the loggedIn channel passed to the constructor signals a successful login.

type SecretReader

type SecretReader interface {
	Read(path string) (*vaultapi.Secret, error)
}

A SecretReader reads a vault secret from the given path. It should be thread safe!

type V1

type V1 struct {
	SecretReader SecretReader
	PathPrefix   string
}

func (V1) Get

func (v V1) Get(varDef template.VariableDefinition) (interface{}, bool, error)

func (V1) List

func (v V1) List() ([]template.VariableDefinition, error)

Jump to

Keyboard shortcuts

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