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) GetPublicKey(_ context.Context, in *kms.GetPublicKeyInput, _ ...func(*kms.Options)) (*kms.GetPublicKeyOutput, error)
- func (k *MockKMS) Sign(_ context.Context, in *kms.SignInput, _ ...func(*kms.Options)) (*kms.SignOutput, error)
- func (k *MockKMS) Verify(ctx context.Context, in *kms.VerifyInput, optFns ...func(*kms.Options)) (*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) GetPublicKey ¶
func (k *MockKMS) GetPublicKey(_ context.Context, in *kms.GetPublicKeyInput, _ ...func(*kms.Options)) (*kms.GetPublicKeyOutput, error)
Click to show internal directories.
Click to hide internal directories.