Documentation ¶
Overview ¶
Package kmsmock sets up a mock kms server that is used for testing our kms driver TODO: we should consider moving this to a common testutils/mocking folder or something internal to avoid exporting
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockKMSService ¶
type MockKMSService struct {
// contains filtered or unexported fields
}
MockKMSService is a mocked kms service.
func NewMockKMS ¶
func NewMockKMS(ctx context.Context, tb testing.TB) *MockKMSService
NewMockKMS creates a mocked kms server locally. The context must remain alive for the life of the kms service.
func (*MockKMSService) Client ¶
func (k *MockKMSService) Client() *kms.Client
Client retrieves a kms client connected to the mock url.
Click to show internal directories.
Click to hide internal directories.