provider

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidConfig = errors.New("invalid config")

Functions

func CfgFilePath

func CfgFilePath() string

Types

type Config

type Config struct {
	// Token is a token that is used to authenticate with Vault.
	Token string `yaml:"token,omitempty"`
	// Address is the address of the Vault server.
	Address string `yaml:"address,omitempty"`
	// Prefix will be prepended to any secret that is passed in
	Prefix string `yaml:"prefix,omitempty"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Provider

type Provider struct {
	Logger *log.Logger
}

func New

func New() *Provider

func (*Provider) LoadSecretStore

func (p *Provider) LoadSecretStore() (secrets.SecretStore, error)

func (*Provider) SetConfigKey

func (p *Provider) SetConfigKey(key, value string) error

Jump to

Keyboard shortcuts

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