vault

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 14 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 struct {
	Reference string `json:"reference" yaml:"reference"`
	Secret    string `json:"value"     yaml:"value"`
}

func NewSecret added in v0.2.2

func NewSecret(reference string, secret string) *Secret

func (*Secret) JSON added in v0.2.2

func (c *Secret) JSON() (string, error)

func (*Secret) Markdown added in v0.2.2

func (c *Secret) Markdown() string

func (*Secret) YAML added in v0.2.2

func (c *Secret) YAML() (string, error)

type SecretList added in v0.2.2

type SecretList []Secret

func (SecretList) FindByName added in v0.2.2

func (l SecretList) FindByName(name string) *Secret

func (SecretList) Items added in v0.2.2

func (l SecretList) Items() []*types.EntityInfo

func (SecretList) JSON added in v0.2.2

func (l SecretList) JSON() (string, error)

func (SecretList) Plural added in v0.2.2

func (l SecretList) Plural() string

func (SecretList) Singular added in v0.2.2

func (l SecretList) Singular() string

func (SecretList) YAML added in v0.2.2

func (l SecretList) YAML() (string, error)

type SecretValue added in v0.2.2

type SecretValue string

func (SecretValue) Empty added in v0.2.2

func (s SecretValue) Empty() bool

func (SecretValue) ObfuscatedString added in v0.2.2

func (s SecretValue) ObfuscatedString() string

func (SecretValue) PlainTextString added in v0.2.2

func (s SecretValue) PlainTextString() string

func (SecretValue) String added in v0.2.2

func (s SecretValue) 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]SecretValue, error)

func (*Vault) GetSecret

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

func (*Vault) RenameSecret added in v0.2.2

func (v *Vault) RenameSecret(oldRef string, newRef string) error

func (*Vault) SetSecret

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

Jump to

Keyboard shortcuts

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