Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(ctx context.Context, path string) (*vault.Secret, error)
- func (c *Client) Get(ctx context.Context, path string) (*vault.Secret, error)
- func (c *Client) List(ctx context.Context, path string) (*vault.Secret, error)
- func (c *Client) Post(ctx context.Context, path string, data []byte) (*vault.Secret, error)
- func (c *Client) Put(ctx context.Context, path string, data []byte) (*vault.Secret, error)
- func (c *Client) Transit() Transit
- type ClientOption
- type Config
- type Transit
- type TransitKey
- type TransitKeyRing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type ClientOption ¶
type ClientOption func(*Client)
func WithClientAuthFunction ¶
func WithClientAuthFunction(authFunction func(context.Context, *Client) error) ClientOption
type Config ¶
func (Config) ValidateConfigFields ¶
type Transit ¶
type Transit interface {
Enable(ctx context.Context) error
ListKeys(ctx context.Context) ([]string, error)
ReadKeyRing(ctx context.Context, key string) (TransitKey, error)
AddKeyRing(ctx context.Context, key string) error
DeleteKeyRing(ctx context.Context, key string) error
TransitKeyRing(key string) TransitKeyRing
}
type TransitKey ¶
type TransitKey struct {
Name string `json:"name"`
Type string `json:"type"`
Keys map[any]interface{} `json:"keys"`
MinDecryptionVersion int `json:"min_decrytion_version"`
MinEncryptionVersion int `json:"min_encryption_version"`
LatestVersion int `json:"latest_version"`
DeletionAllowed bool `json:"deletion_allowed"`
Derived bool `json:"derived"`
Exportable bool `json:"exportable"`
AllowPlaintextBackup bool `json:"allow_plaintext_backup"`
SupportsEncryption bool `json:"supports_encryption"`
SupportsDecryption bool `json:"supports_decryption"`
SupportsDerivation bool `json:"supports_derivation"`
SupportsSigning bool `json:"supports_signing"`
AutoRotatePeriod int `json:"auto_rotate_period"`
ImportedKey bool `json:"imported_key"`
MinAvailableVersion int `json:"min_available_version"`
}
type TransitKeyRing ¶
Click to show internal directories.
Click to hide internal directories.