Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an implementation of kms.KMS with mock capabilities
func (*Client) Decrypt ¶
func (m *Client) Decrypt(params *kms.DecryptInput) (*kms.DecryptOutput, error)
Decrypt is meant to replace kms.Decrypt
client := &mock.Client{} client.On("Decrypt", testKeyCiphertext, testContext).Return(testKeyID, testKeyPlaintext, nil)
func (*Client) GenerateDataKey ¶
func (m *Client) GenerateDataKey(params *kms.GenerateDataKeyInput) (*kms.GenerateDataKeyOutput, error)
GenerateDataKey is meant to replace kms.GenerateDataKey
client := &mock.Client{} client.On("GenerateDataKey", testKeyID, testContext).Return(testKeyCiphertext, testKeyPlaintext, nil)
Click to show internal directories.
Click to hide internal directories.