Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateKey(ctx context.Context, params CreateKeyParams) (*KeyMetadata, error)
- func (c *Client) Decrypt(ctx context.Context, keyID string, params DecryptParams) (*DecryptResponse, error)
- func (c *Client) DecryptDEK(ctx context.Context, keyID string, params DecryptDataKeyParams) (*DecryptDataKeyResponse, error)
- func (c *Client) DisableKey(ctx context.Context, keyID string) (*KeyMetadata, error)
- func (c *Client) EnableKey(ctx context.Context, keyID string) (*KeyMetadata, error)
- func (c *Client) Encrypt(ctx context.Context, keyID string, params EncryptParams) (*EncryptResponse, error)
- func (c *Client) GenerateDEK(ctx context.Context, keyID string, params GenerateDataParams) (*GenerateDataKeyResponse, error)
- func (c *Client) RotateKey(ctx context.Context, keyID string) (*RotateKeyResponse, error)
- type CreateKeyParams
- type CreateKeyResponse
- type DecryptDataKeyParams
- type DecryptDataKeyResponse
- type DecryptParams
- type DecryptResponse
- type DisableReponse
- type EnableReponse
- type EncryptParams
- type EncryptResponse
- type ErrorResponse
- type GenerateDataKeyResponse
- type GenerateDataParams
- type KeyMetadata
- type RotateKeyResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateKey ¶
func (c *Client) CreateKey(ctx context.Context, params CreateKeyParams) (*KeyMetadata, error)
func (*Client) Decrypt ¶
func (c *Client) Decrypt(ctx context.Context, keyID string, params DecryptParams) (*DecryptResponse, error)
func (*Client) DecryptDEK ¶
func (c *Client) DecryptDEK(ctx context.Context, keyID string, params DecryptDataKeyParams) (*DecryptDataKeyResponse, error)
func (*Client) DisableKey ¶
func (*Client) Encrypt ¶
func (c *Client) Encrypt(ctx context.Context, keyID string, params EncryptParams) (*EncryptResponse, error)
func (*Client) GenerateDEK ¶
func (c *Client) GenerateDEK(ctx context.Context, keyID string, params GenerateDataParams) (*GenerateDataKeyResponse, error)
type CreateKeyParams ¶
type CreateKeyResponse ¶
type CreateKeyResponse struct {
KeyMetadata KeyMetadata `json:"keyMetadata"`
}
type DecryptDataKeyParams ¶
type DecryptDataKeyResponse ¶
type DecryptDataKeyResponse struct {
PlaintextDEK []byte `json:"plaintextDEK"`
}
type DecryptParams ¶
type DecryptResponse ¶
type DecryptResponse struct {
Plaintext []byte `json:"plaintext"`
}
type DisableReponse ¶
type DisableReponse struct {
KeyMetadata KeyMetadata `json:"keyMetadata"`
}
type EnableReponse ¶
type EnableReponse struct {
KeyMetadata KeyMetadata `json:"keyMetadata"`
}
type EncryptParams ¶
type EncryptResponse ¶
type ErrorResponse ¶
func (ErrorResponse) Error ¶
func (e ErrorResponse) Error() string
type GenerateDataKeyResponse ¶
type GenerateDataParams ¶
type GenerateDataParams struct {
AdditionalData []byte `json:"additionalData,omitempty"`
}
type KeyMetadata ¶
type RotateKeyResponse ¶
type RotateKeyResponse struct {
Version uint32 `json:"version"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.