kmsmock

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKMSServiceMock

func CreateKMSServiceMock(options ...KMSServiceMockOption) *kmsServiceMock

CreateKMSServiceMock creates a new instance of the KMS service mock with the provided options.

func CreateKMSServiceMockFactory

func CreateKMSServiceMockFactory(
	options ...KMSServiceMockOption,
) func(awsConfig *aws.Config, providerContext provider.Context) kmsservice.Service

CreateKMSServiceMockFactory returns a service factory bound to a single mock instance.

Types

type KMSServiceMockOption

type KMSServiceMockOption func(*kmsServiceMock)

KMSServiceMockOption is a function type for configuring the KMS service mock.

func WithCreateGrantError

func WithCreateGrantError(err error) KMSServiceMockOption

func WithCreateGrantOutput

func WithCreateGrantOutput(output *kms.CreateGrantOutput) KMSServiceMockOption

func WithListGrantsError

func WithListGrantsError(err error) KMSServiceMockOption

func WithListGrantsOutput

func WithListGrantsOutput(output *kms.ListGrantsOutput) KMSServiceMockOption

func WithRevokeGrantError

func WithRevokeGrantError(err error) KMSServiceMockOption

func WithRevokeGrantOutput

func WithRevokeGrantOutput(output *kms.RevokeGrantOutput) KMSServiceMockOption

Jump to

Keyboard shortcuts

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