vault

package
v0.8.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(store model.ConfigStore, opts ...Opts) (secrets.Plugin, error)

New returns a new store with secrets loaded from vault.

Types

type Opts

type Opts func(v *vault)

Opts sets custom options for the vault client.

func WithAuth added in v0.8.6

func WithAuth(method string) Opts

WithAuth returns an options that sets the vault method to use for authentication

func WithKubernetesAuth added in v0.8.6

func WithKubernetesAuth(addr, role, mount string) Opts

WithKubernetes returns an options that sets kubernetes-auth parameters required to retrieve an initial vault token

func WithRenewal

func WithRenewal(d time.Duration) Opts

WithRenewal returns an options that sets the renewal period used to refresh periodic tokens

func WithTTL

func WithTTL(d time.Duration) Opts

WithTTL returns an options that sets a TTL used to refresh periodic tokens.

Jump to

Keyboard shortcuts

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