vault

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSecretNotFound = errors.New("secret not found")
)

Functions

func ExtractSecret

func ExtractSecret(vaultAddress, vaultMountPath, secretName string, dst any) error

Types

type Vault

type Vault interface {
	GetSecret(secretName string, clearSecret bool) (*vaultapi.KVSecret, error)
	GetSecretData(secretName string, clearSecret bool) (map[string]interface{}, error)
	FigureOutSecret(secretName string, dst any, clearSecret bool) error
}

func NewVault

func NewVault(secrets map[string]*vaultapi.KVSecret) Vault

type Vaulter

type Vaulter interface {
	Vault() Vault
}

func NewVaulter

func NewVaulter(getter kv.Getter) Vaulter

Jump to

Keyboard shortcuts

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