vault

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EncryptionKeyEnvVar = "FLOW_VAULT_KEY"
)

Variables

This section is empty.

Functions

func RegisterEncryptionKey

func RegisterEncryptionKey(key string) error

func ValidateReference

func ValidateReference(reference string) error

Types

type Secret

type Secret string

func (Secret) Empty

func (s Secret) Empty() bool

func (Secret) ObfuscatedString

func (s Secret) ObfuscatedString() string

func (Secret) PlainTextString

func (s Secret) PlainTextString() string

func (Secret) String

func (s Secret) String() string

type Vault

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

func NewVault

func NewVault(logger *io.Logger) *Vault

func (*Vault) DeleteSecret

func (v *Vault) DeleteSecret(reference string) error

func (*Vault) GetAllSecrets

func (v *Vault) GetAllSecrets() (map[string]Secret, error)

func (*Vault) GetSecret

func (v *Vault) GetSecret(reference string) (Secret, error)

func (*Vault) SetSecret

func (v *Vault) SetSecret(reference string, secret Secret) error

Jump to

Keyboard shortcuts

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