Documentation
¶
Index ¶
- type Secrets
- type Vault
- func (v *Vault) DisableKV2Engine(rootPath string) error
- func (v *Vault) EnableKV2Engine(rootPath 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 Secrets ¶ added in v0.0.11
type Secrets map[string]interface{}
Secrets holds all recursive secrets of a certain path.
type Vault ¶
Vault represents a vault struct used for reading and writing secrets.
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) 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.