Documentation ¶
Index ¶
- type Config
- type HashicorpVaultClient
- func (c *HashicorpVaultClient) CreateKey(data map[string]interface{}) (*api.Secret, error)
- func (c *HashicorpVaultClient) DeleteSecret(id string, data map[string][]string) error
- func (c *HashicorpVaultClient) DestroyKey(id string) error
- func (c *HashicorpVaultClient) DestroySecret(id string, data map[string][]string) error
- func (c *HashicorpVaultClient) GetKey(id string) (*api.Secret, error)
- func (c *HashicorpVaultClient) HealthCheck() error
- func (c *HashicorpVaultClient) ImportKey(data map[string]interface{}) (*api.Secret, error)
- func (c *HashicorpVaultClient) ListKeys() (*api.Secret, error)
- func (c *HashicorpVaultClient) ListSecrets() (*api.Secret, error)
- func (c *HashicorpVaultClient) Mount(path string, mountInfo *api.MountInput) error
- func (c *HashicorpVaultClient) ReadData(id string, data map[string][]string) (*api.Secret, error)
- func (c *HashicorpVaultClient) ReadMetadata(id string) (*api.Secret, error)
- func (c *HashicorpVaultClient) RestoreSecret(id string, data map[string][]string) error
- func (c *HashicorpVaultClient) SetSecret(id string, data map[string]interface{}) (*api.Secret, error)
- func (c *HashicorpVaultClient) SetToken(token string)
- func (c *HashicorpVaultClient) Sign(id string, data []byte) (*api.Secret, error)
- func (c *HashicorpVaultClient) UnwrapToken(token string) (*api.Secret, error)
- func (c *HashicorpVaultClient) UpdateKey(id string, data map[string]interface{}) (*api.Secret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MountPoint string Address string CACert string CAPath string ClientCert string ClientKey string TLSServerName string Namespace string ClientTimeout time.Duration RateLimit float64 BurstLimit int MaxRetries int SkipVerify bool }
Config object that be converted into an api.Config later
func NewConfig ¶
func NewConfig(specs *entities.HashicorpConfig) *Config
type HashicorpVaultClient ¶
type HashicorpVaultClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cfg *Config) (*HashicorpVaultClient, error)
func (*HashicorpVaultClient) CreateKey ¶
func (c *HashicorpVaultClient) CreateKey(data map[string]interface{}) (*api.Secret, error)
func (*HashicorpVaultClient) DeleteSecret ¶
func (c *HashicorpVaultClient) DeleteSecret(id string, data map[string][]string) error
func (*HashicorpVaultClient) DestroyKey ¶
func (c *HashicorpVaultClient) DestroyKey(id string) error
func (*HashicorpVaultClient) DestroySecret ¶
func (c *HashicorpVaultClient) DestroySecret(id string, data map[string][]string) error
func (*HashicorpVaultClient) GetKey ¶
func (c *HashicorpVaultClient) GetKey(id string) (*api.Secret, error)
func (*HashicorpVaultClient) HealthCheck ¶
func (c *HashicorpVaultClient) HealthCheck() error
func (*HashicorpVaultClient) ImportKey ¶
func (c *HashicorpVaultClient) ImportKey(data map[string]interface{}) (*api.Secret, error)
func (*HashicorpVaultClient) ListKeys ¶
func (c *HashicorpVaultClient) ListKeys() (*api.Secret, error)
func (*HashicorpVaultClient) ListSecrets ¶
func (c *HashicorpVaultClient) ListSecrets() (*api.Secret, error)
func (*HashicorpVaultClient) Mount ¶
func (c *HashicorpVaultClient) Mount(path string, mountInfo *api.MountInput) error
func (*HashicorpVaultClient) ReadMetadata ¶
func (c *HashicorpVaultClient) ReadMetadata(id string) (*api.Secret, error)
func (*HashicorpVaultClient) RestoreSecret ¶
func (c *HashicorpVaultClient) RestoreSecret(id string, data map[string][]string) error
func (*HashicorpVaultClient) SetToken ¶
func (c *HashicorpVaultClient) SetToken(token string)
func (*HashicorpVaultClient) UnwrapToken ¶
func (c *HashicorpVaultClient) UnwrapToken(token string) (*api.Secret, error)
Click to show internal directories.
Click to hide internal directories.