Documentation ¶
Index ¶
- type Vault
- func (v *Vault) DisableKV2Engine(rootPath string) error
- func (v *Vault) EnableKV2Engine(rootPath string) error
- func (v *Vault) ListRecursive(rootPath, subPath string) error
- func (v *Vault) ListSecrets(rootPath, subPath string) ([]string, error)
- func (v *Vault) ReadSecrets(rootPath, subPath string) (map[string]interface{}, error)
- func (v *Vault) WriteSecrets(rootPath, subPath string, secrets map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vault ¶
Vault represents a vault struct used for reading and writing secrets.
func NewClient ¶
NewClient returns a new vault client wrapper. VAULT_ADDR and VAULT_TOKEN are required VAULT_SKIP_VERIFY is considered, if defined reads the proxy configuration via HTTP_PROXY and HTTPS_PROXY.
func (*Vault) DisableKV2Engine ¶ added in v0.0.2
DisableKV2Engine disables the kv2 engine at a specified path.
func (*Vault) EnableKV2Engine ¶ added in v0.0.2
EnableKV2Engine enables the kv2 engine at a specified path.
func (*Vault) ListRecursive ¶ added in v0.0.2
ListRecursive returns secrets to a path recursive.
func (*Vault) ListSecrets ¶ added in v0.0.2
ListSecrets returns all keys from vault kv secret path.
func (*Vault) ReadSecrets ¶
ReadSecrets returns a map with all secrets from a kv engine path.
Click to show internal directories.
Click to hide internal directories.