Documentation ¶
Index ¶
- func CreateSecret(ctx context.Context, engine, key, value string) error
- func DeleteSecret(ctx context.Context, engine, key string) error
- func GetSecretVersions(ctx context.Context, secretVersions *map[string]int64, secretNames []string) error
- func GetSecrets(ctx context.Context, secretValues *map[string]map[string]string, ...) error
- func ListEngines(ctx context.Context, path string) ([]string, error)
- func NewVaultClient(ctx context.Context, c *config) (*vaultClient, error)
- func NewVaultToken(vc *vaultClient) (string, error)
- func UpdateSecret(ctx context.Context, engine, key, value string) error
- type AuthClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSecret ¶
CreateSecret takes a given key for an engine, and adds a new key/value pair in vault.
func GetSecretVersions ¶
func GetSecretVersions(ctx context.Context, secretVersions *map[string]int64, secretNames []string) error
GetSecretVersions fills a map with the versions of secrets pulled from Vault.
func GetSecrets ¶
func GetSecrets(ctx context.Context, secretValues *map[string]map[string]string, secretNames []string) error
GetSecrets fills a map with the values of secrets pulled from Vault.
func ListEngines ¶
ListEngines fills a map with the secrets engines pulled from Vault.
func NewVaultClient ¶
NewVaultClient configures and returns an initialized vault client.
func NewVaultToken ¶
NewVaultToken uses a github token or service account to get a vault auth token
Types ¶
type AuthClient ¶
AuthClient is a type that satifies the necesary authorization layer for a vault client.
func NewAuthClient ¶
func NewAuthClient(c *config) AuthClient
func NewGcpAuthClient ¶
func NewGcpAuthClient() AuthClient
NewAuthClient returns a new instance of an auth client
func NewGithubAuthClient ¶
func NewGithubAuthClient() AuthClient
NewAuthClient returns a new instance of an auth client
Click to show internal directories.
Click to hide internal directories.