vaultclient

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 7 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 WrappedVaultClient added in v0.11.0

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