vaultclient

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(config Config) (*vaultapi.Client, error)

Types

type Config

type Config struct {
	Address string `json:"addr"`
	Token   string `json:"token"`
	CAPath  string `json:"caPath"`
}

type ExecutionFailedError

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

func (*ExecutionFailedError) Error

func (e *ExecutionFailedError) Error() string

func (*ExecutionFailedError) Is

func (e *ExecutionFailedError) Is(target error) bool

type WrappedVaultClient

type WrappedVaultClient struct {
	Wrapped                *vaultapi.Client
	ConfigurationValidator func() error
}

func NewClientUsingEnv

func NewClientUsingEnv(ctx context.Context) (*WrappedVaultClient, error)

func NewClientUsingK8sSecret

func NewClientUsingK8sSecret(ctx context.Context, namespace, name string) (*WrappedVaultClient, error)

Jump to

Keyboard shortcuts

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