kmsmock

package
v4.0.0-...-cb4bf2f Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KMSMock

type KMSMock struct {
	// contains filtered or unexported fields
}

KMSMock Define a simple mock of the KMS client

func New

func New() *KMSMock

New creates a new KMSMock instance

func (*KMSMock) CreateAlias

func (m *KMSMock) CreateAlias(_ context.Context, input *kms.CreateAliasInput, _ ...func(*kms.Options)) (*kms.CreateAliasOutput, error)

CreateAlias mocks of the KMS CreateAlias method. Returns a valid CreateAliasOutput response

func (*KMSMock) CreateKey

func (m *KMSMock) CreateKey(_ context.Context, input *kms.CreateKeyInput, _ ...func(*kms.Options)) (*kms.CreateKeyOutput, error)

CreateKey mocks of the KMS CreateKey method. Returns a valid CreateKeyOutput response

func (*KMSMock) DeleteAlias

func (m *KMSMock) DeleteAlias(_ context.Context, input *kms.DeleteAliasInput, _ ...func(*kms.Options)) (*kms.DeleteAliasOutput, error)

DeleteAlias mocks of the KMS DeleteAlias method. Returns a valid DeleteAliasOutput response

func (*KMSMock) DescribeKey

func (m *KMSMock) DescribeKey(_ context.Context, input *kms.DescribeKeyInput, _ ...func(*kms.Options)) (*kms.DescribeKeyOutput, error)

DescribeKey mocks of the KMS DescribeKey method. Returns a valid DescribeKeyOutput response

func (*KMSMock) GetPublicKey

func (m *KMSMock) GetPublicKey(_ context.Context, input *kms.GetPublicKeyInput, _ ...func(*kms.Options)) (*kms.GetPublicKeyOutput, error)

GetPublicKey mocks of the KMS GetPublicKey method.

func (*KMSMock) ListResourceTags

func (m *KMSMock) ListResourceTags(_ context.Context, input *kms.ListResourceTagsInput, _ ...func(*kms.Options)) (*kms.ListResourceTagsOutput, error)

ListResourceTags mocks of the KMS ListResourceTags method.

func (*KMSMock) ScheduleKeyDeletion

func (m *KMSMock) ScheduleKeyDeletion(_ context.Context, input *kms.ScheduleKeyDeletionInput, _ ...func(*kms.Options)) (*kms.ScheduleKeyDeletionOutput, error)

ScheduleKeyDeletion mocks of the KMS ScheduleKeyDeletion method.

func (*KMSMock) Sign

func (m *KMSMock) Sign(_ context.Context, input *kms.SignInput, _ ...func(*kms.Options)) (*kms.SignOutput, error)

Sign mocks of the KMS Sign method.

Jump to

Keyboard shortcuts

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