Documentation ¶
Overview ¶
Package mockkms provides a partial implementation of AWS' KMS interface sufficient to satisfy the KMSClient interface.
Index ¶
- type KeyType
- type MockKMS
- func (k *MockKMS) GenerateKey(kt KeyType) (string, error)
- func (k *MockKMS) GetPublicKeyWithContext(ctx aws.Context, in *kms.GetPublicKeyInput, opts ...request.Option) (*kms.GetPublicKeyOutput, error)
- func (k *MockKMS) SignWithContext(ctx aws.Context, in *kms.SignInput, opts ...request.Option) (*kms.SignOutput, error)
- func (k *MockKMS) VerifyWithContext(ctx aws.Context, in *kms.VerifyInput, opts ...request.Option) (*kms.VerifyOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockKMS ¶
type MockKMS struct {
// contains filtered or unexported fields
}
MockKMS implements the KMSClient interface backed by in-memory storage. It is safe for concurrent use.
func (*MockKMS) GenerateKey ¶
GenerateKey generates a key of the type described by kt and returns the KeyId which can be used by subsequent calls to refer to the generated key.
func (*MockKMS) GetPublicKeyWithContext ¶
func (k *MockKMS) GetPublicKeyWithContext(ctx aws.Context, in *kms.GetPublicKeyInput, opts ...request.Option) (*kms.GetPublicKeyOutput, error)
func (*MockKMS) SignWithContext ¶
func (*MockKMS) VerifyWithContext ¶
func (k *MockKMS) VerifyWithContext(ctx aws.Context, in *kms.VerifyInput, opts ...request.Option) (*kms.VerifyOutput, error)
Click to show internal directories.
Click to hide internal directories.