Documentation ¶
Overview ¶
Package vault adds a vault client implementation
Index ¶
- type Client
- func (v *Client) DeleteSecret(secretPath string) (*api.Secret, error)
- func (v *Client) ListSecrets(secretPath string) (*SecretList, error)
- func (v *Client) ReadSecret(secretPath string) (*api.Secret, error)
- func (v *Client) WriteSecret(secretPath string, secret map[string]interface{}) (*api.Secret, error)
- type SecretList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an abstraction to github.com/hashicorp/vault/api
func NewVaultClient ¶
NewVaultClient creates a new VaultClient from a VaultConfig
func (*Client) DeleteSecret ¶
DeleteSecret do a logical delete on a given Secret Path
func (*Client) ListSecrets ¶
func (v *Client) ListSecrets(secretPath string) (*SecretList, error)
ListSecrets list secrets on a given Secret Path
func (*Client) ReadSecret ¶
ReadSecret do a logical read on a given Secret Path
Click to show internal directories.
Click to hide internal directories.