vault

package module
v0.0.0-...-22dacb7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name      = "vault"
	Separator = "/"
	Prefix    = "secret/data/"
	ValueName = "value"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func New

func New(namespace, appName string, client *api.Client, opts ...SecretOption) *Provider

func (*Provider) Key

func (p *Provider) Key(in []string) (string, string)

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) Value

func (p *Provider) Value(_ context.Context, key ...string) (config.Value, error)

type SecretOption

type SecretOption func(*Provider)

func WithSecretResolve

func WithSecretResolve(f func(key []string) (string, string)) SecretOption

Jump to

Keyboard shortcuts

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