vault

package
v0.0.0-...-d88ec87 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrimaryToken string

PrimaryToken is exposed default token obtained by environment variables

Functions

This section is empty.

Types

type Client

type Client interface {
	Read(path string) (map[string]interface{}, error)
	Write(path string, data map[string]interface{}) error
}

Client returns key-value store client

var DefaultClient Client

DefaultClient is initialized with environment variables: VAULT_CONFIG_VAR_NAME points to env var with raw yaml map with following keys: : Address : Token : Timeout : MaxRetries : Prefix

type Settings

type Settings struct {
	Address    string           `yaml:"Address"`
	Timeout    metrics.Interval `yaml:"Timeout"`
	MaxRetries int              `yaml:"MaxRetries"`
	Token      string           `yaml:"Token"`
	Prefix     string           `yaml:"Prefix"`
}

Settings keeps vault client settings

Jump to

Keyboard shortcuts

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