vault

package
v1.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func NewVault

func NewVault() (*_AwsVault, error)

creates a new Vault

func SetLogLevel

func SetLogLevel(level logger.LogLevel)

set log level

Types

type Vault

type Vault interface {
	// GetSecret retrieves a secret from the vault by its name.
	GetSecret(secretName string) (interface{}, error)

	// PutSecret stores a secret in the vault under the given name.
	PutSecret(secretName string, secretValue interface{}) error

	// DeleteSecret deletes a secret from the vault by its name.
	DeleteSecret(secretName string) error

	// GetLocalSecret retrieves a locally stored secret by its name.
	GetLocalSecret(secretName string) (interface{}, bool)

	// PutLocalSecret stores a secret locally within the object.
	PutLocalSecret(secretName string, secretValue interface{}) error

	// DeleteLocalSecret deletes a locally stored secret by its name.
	DeleteLocalSecret(secretName string) error
}

Vault represents an interface for secret management.

Jump to

Keyboard shortcuts

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