client

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VaultPermissionError = "Code: 403"
	EncryptionAction     = "encrypt"
	DecryptionAction     = "decrypt"
)

Variables

View Source
var (
	Create              = NewVaultClient
	Login               = wrappedLogin
	NewClient           = wrappedNewVClient
	ErrVaultMissingKeys = errors.New("no key references passed")
)

Functions

This section is empty.

Types

type VaultClient

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

func NewTestingClient

func NewTestingClient(tb testing.TB) (*VaultClient, func(), error)

NewTestingClient creates a test vault cluster and returns a configured API client and closer function.

func NewVaultClient

func NewVaultClient(settings *VaultSettings, ctx context.Context) (*VaultClient, error)

func (VaultClient) GetSecret

func (v VaultClient) GetSecret(batch []interface{}, keyReference string, action string) (*vaultapi.Secret, error)

func (*VaultClient) RenewClient

func (v *VaultClient) RenewClient(ctx context.Context) error

type VaultSettings

type VaultSettings struct {
	RoleArn   string
	VaultAddr string
}

Jump to

Keyboard shortcuts

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