Help us shape the future of Go! Take the 2026 Go Developer Survey

vault

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func NewProvider

func NewProvider(cfg map[string]interface{}) (provider.Provider, error)

Types

type AppRoleAuth

type AppRoleAuth struct {
	RoleID           string `json:"role_id" yaml:"role_id" split_words:"true"`
	SecretID         string `json:"secret_id" yaml:"secret_id" split_words:"true"`
	ResponseWrapping bool   `json:"response_wrapping" yaml:"response_wrapping" split_words:"true"`
}

type AuthN

type AuthN struct {
	Token      TokenAuth      `json:"token" yaml:"token"`
	AppRole    AppRoleAuth    `json:"approle" yaml:"approle"`
	Kubernetes KubernetesAuth `json:"kubernetes" yaml:"kubernetes"`
}

type KubernetesAuth

type KubernetesAuth struct {
	Role      string `json:"role" yaml:"role"`
	TokenPath string `json:"token_path" yaml:"token_path" split_words:"true"`
}

type TokenAuth

type TokenAuth struct {
	Token string `json:"token" yaml:"token"`
}

type VaultProvider

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

func (*VaultProvider) GetValue

func (p *VaultProvider) GetValue(ctx context.Context, key string, properties map[string]string) (string, error)

Jump to

Keyboard shortcuts

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