Documentation
¶
Index ¶
- Constants
- func CacheDirectory(subPath string) string
- func ConfigFilePath(vaultName string) string
- func NewAES256Vault(name, storagePath, keyEnv, keyFile, logLevel string)
- func NewAgeVault(name, storagePath, recipients, identityKey, identityFile string)
- func NewExternalVault(providerConfigFile string)
- func NewKeyringVault(name string)
- func NewUnencryptedVault(name, storagePath string)
- func RefToParts(ref SecretRef) (vaultName, key string, err error)
- func ValidateIdentifier(reference string) error
- func VaultFromName(name string) (*VaultConfig, Vault, error)
- type Secret
- type SecretList
- func (l SecretList) AsObfuscatedText() SecretList
- func (l SecretList) AsPlaintext() SecretList
- func (l SecretList) FindByName(name string) Secret
- func (l SecretList) Items() []*types.EntityInfo
- func (l SecretList) JSON() (string, error)
- func (l SecretList) JSONWithMode(plaintext bool) (string, error)
- func (l SecretList) Plural() string
- func (l SecretList) Singular() string
- func (l SecretList) YAML() (string, error)
- func (l SecretList) YAMLWithMode(plaintext bool) (string, error)
- type SecretRef
- type SecretValue
- type Vault
- type VaultConfig
Constants ¶
View Source
const ( DefaultVaultKeyEnv = "FLOW_VAULT_KEY" DefaultVaultIdentityEnv = "FLOW_VAULT_IDENTITY" )
View Source
const DemoVaultReservedName = "demo"
Variables ¶
This section is empty.
Functions ¶
func CacheDirectory ¶ added in v1.1.0
func ConfigFilePath ¶ added in v1.1.0
func NewAES256Vault ¶ added in v1.1.0
func NewAES256Vault(name, storagePath, keyEnv, keyFile, logLevel string)
func NewAgeVault ¶ added in v1.1.0
func NewAgeVault(name, storagePath, recipients, identityKey, identityFile string)
func NewExternalVault ¶ added in v1.1.0
func NewExternalVault(providerConfigFile string)
func NewKeyringVault ¶ added in v1.1.0
func NewKeyringVault(name string)
func NewUnencryptedVault ¶ added in v1.1.0
func NewUnencryptedVault(name, storagePath string)
func RefToParts ¶ added in v1.1.0
func ValidateIdentifier ¶ added in v1.1.0
func VaultFromName ¶ added in v1.1.0
func VaultFromName(name string) (*VaultConfig, Vault, error)
Types ¶
type Secret ¶
type SecretList ¶
type SecretList []Secret
func NewSecretList ¶ added in v1.1.0
func NewSecretList(vaultName string, v Vault) (SecretList, error)
func (SecretList) AsObfuscatedText ¶ added in v1.1.0
func (l SecretList) AsObfuscatedText() SecretList
func (SecretList) AsPlaintext ¶ added in v1.1.0
func (l SecretList) AsPlaintext() SecretList
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) JSONWithMode ¶ added in v1.1.0
func (l SecretList) JSONWithMode(plaintext bool) (string, error)
JSONWithMode allows explicit control over plaintext vs obfuscated serialization
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)
func (SecretList) YAMLWithMode ¶ added in v1.1.0
func (l SecretList) YAMLWithMode(plaintext bool) (string, error)
YAMLWithMode allows explicit control over plaintext vs obfuscated serialization
type SecretValue ¶
type SecretValue = vault.SecretValue
func NewSecretValue ¶ added in v1.1.0
func NewSecretValue(value []byte) *SecretValue
type VaultConfig ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.