Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Kvv2Client PluginClient SetToken(token string) UnwrapToken(token string) (*hashicorp.Secret, error) Mount(path string, mountInfo *hashicorp.MountInput) error HealthCheck() error }
type Kvv2Client ¶
type Kvv2Client interface { ReadData(id string, data map[string][]string) (*hashicorp.Secret, error) ReadMetadata(id string) (*hashicorp.Secret, error) SetSecret(id string, data map[string]interface{}) (*hashicorp.Secret, error) ListSecrets() (*hashicorp.Secret, error) DeleteSecret(id string, data map[string][]string) error RestoreSecret(id string, data map[string][]string) error DestroySecret(id string, data map[string][]string) error }
type PluginClient ¶
type PluginClient interface { GetKey(id string) (*hashicorp.Secret, error) CreateKey(data map[string]interface{}) (*hashicorp.Secret, error) ImportKey(data map[string]interface{}) (*hashicorp.Secret, error) ListKeys() (*hashicorp.Secret, error) UpdateKey(id string, data map[string]interface{}) (*hashicorp.Secret, error) DestroyKey(id string) error Sign(id string, data []byte) (*hashicorp.Secret, error) }
Click to show internal directories.
Click to hide internal directories.