vault

package
v3.11.0-beta3+incompat... Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package vault contains the logic for using Vault as a remote config source

How to use auth methods with Vault Go client: https://groups.google.com/forum/#!msg/vault-tool/cS7J2KbAwZg/7pu6PYSRAAAJ

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conf *Config) (types.ConfigSource, error)

New creates a new vault ConfigSource

Types

type Config

type Config struct {
	// The Vault Address.  Can also be provided by the standard Vault envvar
	// `VAULT_ADDR`.  This option takes priority over the envvar if provided.
	VaultAddr string `yaml:"vaultAddr"`
	// The Vault token, can also be provided by it the standard Vault envvar
	// `VAULT_TOKEN`.  This option takes priority over the envvar if provided.
	VaultToken string `yaml:"vaultToken" neverLog:"true"`
	// The polling interval for checking KV V2 secrets for a new version.  This
	// can be any string value that can be parsed by
	// https://golang.org/pkg/time/#ParseDuration.
	KVV2PollInterval time.Duration `yaml:"kvV2PollInterval" default:"60s"`
}

Config for the vault remote config

func (*Config) New

func (c *Config) New() (types.ConfigSource, error)

New creates a new Vault remote config source from the target config

func (*Config) Validate

func (c *Config) Validate() error

Validate the config

Jump to

Keyboard shortcuts

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