vault

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: UPL-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultClient

type VaultClient struct {
	Provider common.ConfigurationProvider
	Log      logr.Logger
	KeyId    string
	VaultId  string
}

func NewVaultClient

func NewVaultClient(provider common.ConfigurationProvider, log logr.Logger, keyId string, vaultId string) *VaultClient

func (*VaultClient) CreateSecret

func (v *VaultClient) CreateSecret(ctx context.Context, secretName string, secretNamespace string, labels map[string]string,
	data map[string][]byte) (bool, error)

func (*VaultClient) DeleteSecret

func (v *VaultClient) DeleteSecret(ctx context.Context, secretName string, secretNamespace string) (bool, error)

func (*VaultClient) GetSecret

func (v *VaultClient) GetSecret(ctx context.Context, secretName string, secretNamespace string) (map[string][]byte, error)

Jump to

Keyboard shortcuts

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