vaultManager

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const VaultData = "data"
View Source
const VaultMetadata = "metadata"

Variables

This section is empty.

Functions

This section is empty.

Types

type VaultManager

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

func MakeVaultManager

func MakeVaultManager(log slog.Instance, prefix string) *VaultManager

MakeVaultManager creates an instance of VaultManager

func (*VaultManager) Delete

func (vm *VaultManager) Delete(key string) error

Delete deletes a key from the vault

func (*VaultManager) HealthStatus

func (vm *VaultManager) HealthStatus() (*api.HealthResponse, error)

func (*VaultManager) List

func (vm *VaultManager) List() ([]string, error)

func (*VaultManager) Name

func (vm *VaultManager) Name() string

func (*VaultManager) Path

func (vm *VaultManager) Path() string

func (*VaultManager) Read

func (vm *VaultManager) Read(key string) (data string, metadata string, err error)

func (*VaultManager) Save

func (vm *VaultManager) Save(key, data string) error

func (*VaultManager) SaveWithMetadata

func (vm *VaultManager) SaveWithMetadata(key, data, metadata string) error

type VaultToken

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

Jump to

Keyboard shortcuts

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