Documentation ¶
Index ¶
- type Client
- func (c *Client) Delete(path string) (*api.Secret, error)
- func (c *Client) PrivateKey() *stdRsa.PrivateKey
- func (c *Client) RawWrite(path string, data map[string]interface{}) (*api.Secret, error)
- func (c *Client) Read(path string) (*api.Secret, error)
- func (c *Client) SetToken(v string)
- func (c *Client) Write(path string, data map[string]interface{}) (*api.Secret, error)
- type VaultClient
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 enhances official Vault API client that does not provide easy capabilities to determine whether kv1 or kv2 secret engine is used.
func NewClient ¶
func NewClient(logger logger.Logger, vaultClient VaultClient, privateKey *stdRsa.PrivateKey) *Client
func (*Client) Delete ¶
Delete deletes secret at `path` and handles both V1 and V2 KV secret API of Vault.
func (*Client) PrivateKey ¶
func (c *Client) PrivateKey() *stdRsa.PrivateKey
func (*Client) RawWrite ¶
RawWrite writes `data` to `path` and DOES NOT handle both V1 and V2 KV secret API of Vault. It just writes.
type VaultClient ¶
Click to show internal directories.
Click to hide internal directories.