vault
import "github.com/betterdoctor/duncan/vault"
Overview
Index
Package files
api.go
func SecretsURL(app, env string) string
SecretsURL returns the Vault API endpoint to GET and POST secrets
for a given app and env
type Secrets struct {
KVPairs map[string]string `json:"data"`
}
Secrets represents Vault key/value pairs for a prefix
func Delete(url string, keys []string, s *Secrets) (*Secrets, error)
Delete removes a key/value pair from the prefix
func Read(url string) (*Secrets, error)
Read displays all key/value pairs at the given prefix if no key is given
If a key is passed will just display the key/value pair for the key
func Write(url string, kvs []string, s *Secrets) (*Secrets, error)
Write sets the given key/value pairs at the provided prefix
Generated by godoc2md