vaultclient

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientOptions

type ClientOptions struct {
	Enabled             bool
	Addr                string
	AuthMode            string
	Token               string
	Namespace           string
	Timeout             time.Duration
	KVMount             string
	KVVersion           int
	AppRoleMount        string
	AppRoleRoleID       string
	AppRoleSecretID     string
	SecretPathAllowlist []string
	HTTPClient          *http.Client
}

ClientOptions configures the Vault read-only client.

type SecretReader

type SecretReader interface {
	ReadKV(ctx context.Context, secretPath string) (map[string]string, error)
}

SecretReader reads secrets from a backing store.

func New

func New(opts ClientOptions) (SecretReader, error)

New builds a read-only Vault client.

Jump to

Keyboard shortcuts

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