Documentation ¶
Index ¶
- Constants
- func RegisterEncryptionKey(key string) error
- func ValidateReference(reference string) error
- type Secret
- type SecretList
- type SecretValue
- type Vault
- 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 ¶ 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 (*Vault) DeleteSecret ¶
func (*Vault) GetAllSecrets ¶
func (v *Vault) GetAllSecrets() (map[string]SecretValue, error)
func (*Vault) RenameSecret ¶ added in v0.2.2
Click to show internal directories.
Click to hide internal directories.