kmsmock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 10 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 {
	kmsiface.KMSAPI
	// 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(input *kms.CreateAliasInput) (*kms.CreateAliasOutput, error)

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

func (*KMSMock) CreateKey

func (m *KMSMock) CreateKey(input *kms.CreateKeyInput) (*kms.CreateKeyOutput, error)

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

func (*KMSMock) DeleteAlias

func (m *KMSMock) DeleteAlias(input *kms.DeleteAliasInput) (*kms.DeleteAliasOutput, error)

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

func (*KMSMock) DescribeKey

func (m *KMSMock) DescribeKey(input *kms.DescribeKeyInput) (*kms.DescribeKeyOutput, error)

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

func (*KMSMock) GetPublicKey

func (m *KMSMock) GetPublicKey(input *kms.GetPublicKeyInput) (*kms.GetPublicKeyOutput, error)

GetPublicKey mocks of the KMS GetPublicKey method.

func (*KMSMock) ListResourceTags

func (m *KMSMock) ListResourceTags(input *kms.ListResourceTagsInput) (*kms.ListResourceTagsOutput, error)

ListResourceTags mocks of the KMS ListResourceTags method.

func (*KMSMock) ScheduleKeyDeletion

func (m *KMSMock) ScheduleKeyDeletion(input *kms.ScheduleKeyDeletionInput) (*kms.ScheduleKeyDeletionOutput, error)

ScheduleKeyDeletion mocks of the KMS ScheduleKeyDeletion method.

func (*KMSMock) Sign

func (m *KMSMock) Sign(input *kms.SignInput) (*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