Documentation ¶
Index ¶
- Variables
- func Authenticate(e UserEnv, st bool) *api.Client
- func DeleteSecret(c *api.Client, key string) (bool, error)
- func ListSecrets(c *api.Client, path string) ([]*api.Secret, []error)
- func ReadSecret(c *api.Client, key string) (map[string]interface{}, error)
- func WriteSecret(c *api.Client, key string, data map[string]interface{}) (bool, error)
- type UserEnv
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// RenewThreshold is used to compare against the token expiration time
RenewThreshold = "168h"
)
Functions ¶
func Authenticate ¶ added in v1.1.0
Authenticate a user with Vault e : user environment st: flag to use the stored token
func DeleteSecret ¶ added in v1.0.1
DeleteSecret removes a secret from Vault
func ListSecrets ¶
ListSecrets reads the list of secrets/data under a path in Vault c : Vault client path : path to secret/data in Vault
func ReadSecret ¶
ReadSecret requests the secret/data from Vault c : Vault client key : the key for the desired secret/data
Types ¶
Click to show internal directories.
Click to hide internal directories.