vault

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 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

func NewSecret(reference string, secret string) *Secret

func (*Secret) JSON

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

func (*Secret) Markdown

func (c *Secret) Markdown() string

func (*Secret) YAML

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

type SecretList

type SecretList []Secret

func (SecretList) FindByName

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

func (SecretList) Items

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

func (SecretList) JSON

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

func (SecretList) Plural

func (l SecretList) Plural() string

func (SecretList) Singular

func (l SecretList) Singular() string

func (SecretList) YAML

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

type SecretValue

type SecretValue string

func (SecretValue) Empty

func (s SecretValue) Empty() bool

func (SecretValue) ObfuscatedString

func (s SecretValue) ObfuscatedString() string

func (SecretValue) PlainTextString

func (s SecretValue) PlainTextString() string

func (SecretValue) String

func (s SecretValue) String() string

type Vault deprecated

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

Deprecated: Use the github.com/flowexec/vault package instead. This vault will be removed in a future release.

func NewVault

func NewVault() *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

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

func (*Vault) SetSecret

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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