processor

package
v0.0.0-...-1d4acb1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

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

Env handles variables consumed to and written to env vars / a file containing env vars

func NewEnv

func NewEnv(logger *logrus.Entry, env []string, envFile, leasesFile string) *Env

NewEnv returns a new Env processor instance

func (*Env) Process

func (p *Env) Process(logicalClient vaultLogicalClient) error

Process reads a list of environment variables and fetches the referenced secrets from vault, storing the results in a file using the bash export syntax.

type Processor

type Processor interface {
	Process(logger *logrus.Entry, client vaultLogicalClient) error
}

Processor processes env var requirements of an application and renders the result

Jump to

Keyboard shortcuts

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