Documentation
¶
Index ¶
- type Client
- func (client *Client) DeleteSecretMetadataWithAppRole(secretPath string) error
- func (client *Client) DeleteSecretWithAppRole(secretPath string) error
- func (client *Client) DestroySecretWithAppRole(secretPath string) error
- func (client *Client) GetSecretWithAppRole(secretPath string) (map[string]interface{}, error)
- func (client *Client) ListSecretWithAppRole(secretPath string) ([]string, error)
- func (client *Client) PutSecretWithAppRole(secretPath string, data map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
APIClient *vaultApi.Client
Config config.Vault
Token string // Store the token
TokenTTL time.Time // Store the token expiry time
}
var (
GlobalClient *Client
)
func (*Client) DeleteSecretMetadataWithAppRole ¶
DeleteSecretMetadataWithAppRole permanently deletes the metadata and all versions of a secret.
func (*Client) DeleteSecretWithAppRole ¶
Delete a key-value secret (kv-v2) after authenticating via AppRole.
func (*Client) DestroySecretWithAppRole ¶
Delete permanently a key-value secret (kv-v2) after authenticating via AppRole.
func (*Client) GetSecretWithAppRole ¶
Fetches a key-value secret (kv-v2) after authenticating via AppRole.
func (*Client) ListSecretWithAppRole ¶
List a key-value secret (kv-v2) after authenticating via AppRole.
Click to show internal directories.
Click to hide internal directories.