vault

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Read(path string) (*hvault.Secret, error)
	Write(path string, data map[string]interface{}) (*hvault.Secret, error)
	Delete(path string) (*hvault.Secret, error)
	Address() string
}

func New

func New(address, role string, skipVerify bool, options ...Option) (Client, error)

type Option

type Option func(*vaultClient) error

Option is a type of options for Vault Client

func ContextWithCancelFN

func ContextWithCancelFN(ctx context.Context, cancelFn context.CancelFunc) Option

ContextWithCancelFN is option function to set channel for termination notifications from renew and also set upstream context

func Logger

func Logger(logger logr.Logger) Option

Logger will add logger to Vault client

Jump to

Keyboard shortcuts

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