kmsmock

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 21 Imported by: 0

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.

Directories

Path Synopsis
Package internal contains modules exported from local-kms in order to avoid rewriting code
Package internal contains modules exported from local-kms in order to avoid rewriting code

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL