hashivault

package
v0.0.0-...-0ab1e78 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: MIT, UPL-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MountTypeKVv1     = "kvv1"
	MountTypeKVv2     = "kvv2"
	MountTypeDatabase = "database"
	MountTypeLogical  = "logical"
)

Variables

View Source
var RequiredKeyMissing = errors.New("Required key missing from HashiCorp Vault secret")
View Source
var UnsupportedMountType = errors.New("Unsupported HashiCorp Vault mount type")

Functions

This section is empty.

Types

type HashicorpVaultClient

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

func CreateVaultClient

func CreateVaultClient(logger *slog.Logger, socketPath string) HashicorpVaultClient

CreateVaultClient connects to a vault client, using connection method specified with the parameters. Fatal if fails.

func (HashicorpVaultClient) GetVaultSecret

func (c HashicorpVaultClient) GetVaultSecret(mountType string, mount string, path string, requiredKeys []string) map[string]string

GetVaultSecret fetches secret from vault using specified mount type. Fatal on failure.

Jump to

Keyboard shortcuts

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