Documentation
¶
Index ¶
- type VaultClient
- func (vc *VaultClient) GetSecret(path string) (map[string]interface{}, error)
- func (vc *VaultClient) GetSecretKvV2(path string) (map[string]interface{}, error)
- func (vc *VaultClient) ListSecretPath(path string) ([]string, error)
- func (vc *VaultClient) ListSecretPathKvV2(path string) ([]string, error)
- func (vc *VaultClient) ReadSecret(path string, field string) (string, error)
- func (vc *VaultClient) ReadSecretKvV2(path string, field string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VaultClient ¶
type VaultClient struct {
// contains filtered or unexported fields
}
func CreateClient ¶
func CreateClient() (*VaultClient, error)
func (*VaultClient) GetSecret ¶ added in v1.1.0
func (vc *VaultClient) GetSecret(path string) (map[string]interface{}, error)
func (*VaultClient) GetSecretKvV2 ¶ added in v1.1.0
func (vc *VaultClient) GetSecretKvV2(path string) (map[string]interface{}, error)
func (*VaultClient) ListSecretPath ¶ added in v1.0.0
func (vc *VaultClient) ListSecretPath(path string) ([]string, error)
func (*VaultClient) ListSecretPathKvV2 ¶ added in v1.0.0
func (vc *VaultClient) ListSecretPathKvV2(path string) ([]string, error)
func (*VaultClient) ReadSecret ¶
func (vc *VaultClient) ReadSecret(path string, field string) (string, error)
func (*VaultClient) ReadSecretKvV2 ¶ added in v1.0.0
func (vc *VaultClient) ReadSecretKvV2(path string, field string) (string, error)
Click to show internal directories.
Click to hide internal directories.