hashivault

package
v0.0.0-...-d103b23 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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