Documentation
¶
Index ¶
- Constants
- func RegisterEncryptionKey(key string) error
- func ValidateReference(reference string) error
- type Secret
- type SecretList
- type SecretValue
- type Vaultdeprecated
- func (v *Vault) DeleteSecret(reference string) error
- func (v *Vault) GetAllSecrets() (map[string]SecretValue, error)
- func (v *Vault) GetSecret(reference string) (SecretValue, error)
- func (v *Vault) RenameSecret(oldRef string, newRef string) error
- func (v *Vault) SetSecret(reference string, secret SecretValue) error
Constants ¶
View Source
const (
EncryptionKeyEnvVar = "FLOW_VAULT_KEY"
)
Variables ¶
This section is empty.
Functions ¶
func RegisterEncryptionKey ¶
func ValidateReference ¶
Types ¶
type Secret ¶
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 (*Vault) DeleteSecret ¶
func (*Vault) GetAllSecrets ¶
func (v *Vault) GetAllSecrets() (map[string]SecretValue, error)
Click to show internal directories.
Click to hide internal directories.