vault

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const VaultDefaultField = "value"

VaultDefaultField is the default value returned by the provider from the hash returned by the Vault.

Variables

This section is empty.

Functions

func ProviderFactory

func ProviderFactory(options plugin_v1.ProviderOptions) (plugin_v1.Provider, error)

ProviderFactory constructs a Provider. The API client is configured from environment variables.

Types

type Provider

type Provider struct {
	Name   string
	Client *vault.Client
}

Provider provides data values from the Conjur vault.

func (*Provider) GetName

func (p *Provider) GetName() string

GetName returns the name of the provider

func (*Provider) GetValue

func (p *Provider) GetValue(id string) (value []byte, err error)

GetValue obtains a value by id. Any secret which is stored in the vault is recognized. The datatype returned by Vault is map[string]interface{}. Therefore this provider needs to know which field to return from the map. By default, it returns the 'value'. An alternative field can be obtained by appending '#fieldName' to the id argument.

Jump to

Keyboard shortcuts

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