Documentation ¶
Index ¶
- Constants
- type List
- type Vault
- func (v *Vault) Init() (err error)
- func (v Vault) ListSecret(path string) (*api.Secret, error)
- func (v Vault) ListSecretJSON(path string) ([]byte, error)
- func (v Vault) ListSecretStruct(path string) (List, error)
- func (v Vault) ReadSecret(path string) (*api.Secret, error)
- func (v Vault) ReadSecretJSON(path string) ([]byte, error)
- func (v Vault) WriteSecret(payload []byte, path string) error
Constants ¶
View Source
const VERSION = "0.1.0"
VERSION is the library version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List struct {
Keys []string
}
List represents the structured data returned by the list command
type Vault ¶
Vault represents the Vault configuration
func (Vault) ListSecret ¶
ListSecret lists secrets at a given path
func (Vault) ListSecretJSON ¶
ListSecretJSON returns a secret endcoded in json
func (Vault) ListSecretStruct ¶
ListSecretStruct returns a list secret as a List object
func (Vault) ReadSecret ¶
ReadSecret returns a secret
func (Vault) ReadSecretJSON ¶
ReadSecretJSON returns a secret endcoded in json
Click to show internal directories.
Click to hide internal directories.