mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IClient

type IClient struct {
	mock.Mock
}

IClient is an autogenerated mock type for the IClient type

func NewIClient

func NewIClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *IClient

NewIClient creates a new instance of IClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IClient) CancelKeyDeletion

func (_m *IClient) CancelKeyDeletion(ctx context.Context, params *kms.CancelKeyDeletionInput, optFns ...func(*kms.Options)) (*kms.CancelKeyDeletionOutput, error)

CancelKeyDeletion provides a mock function with given fields: ctx, params, optFns

func (*IClient) ConnectCustomKeyStore

func (_m *IClient) ConnectCustomKeyStore(ctx context.Context, params *kms.ConnectCustomKeyStoreInput, optFns ...func(*kms.Options)) (*kms.ConnectCustomKeyStoreOutput, error)

ConnectCustomKeyStore provides a mock function with given fields: ctx, params, optFns

func (*IClient) CreateAlias

func (_m *IClient) CreateAlias(ctx context.Context, params *kms.CreateAliasInput, optFns ...func(*kms.Options)) (*kms.CreateAliasOutput, error)

CreateAlias provides a mock function with given fields: ctx, params, optFns

func (*IClient) CreateCustomKeyStore

func (_m *IClient) CreateCustomKeyStore(ctx context.Context, params *kms.CreateCustomKeyStoreInput, optFns ...func(*kms.Options)) (*kms.CreateCustomKeyStoreOutput, error)

CreateCustomKeyStore provides a mock function with given fields: ctx, params, optFns

func (*IClient) CreateGrant

func (_m *IClient) CreateGrant(ctx context.Context, params *kms.CreateGrantInput, optFns ...func(*kms.Options)) (*kms.CreateGrantOutput, error)

CreateGrant provides a mock function with given fields: ctx, params, optFns

func (*IClient) CreateKey

func (_m *IClient) CreateKey(ctx context.Context, params *kms.CreateKeyInput, optFns ...func(*kms.Options)) (*kms.CreateKeyOutput, error)

CreateKey provides a mock function with given fields: ctx, params, optFns

func (*IClient) Decrypt

func (_m *IClient) Decrypt(ctx context.Context, params *kms.DecryptInput, optFns ...func(*kms.Options)) (*kms.DecryptOutput, error)

Decrypt provides a mock function with given fields: ctx, params, optFns

func (*IClient) DeleteAlias

func (_m *IClient) DeleteAlias(ctx context.Context, params *kms.DeleteAliasInput, optFns ...func(*kms.Options)) (*kms.DeleteAliasOutput, error)

DeleteAlias provides a mock function with given fields: ctx, params, optFns

func (*IClient) DeleteCustomKeyStore

func (_m *IClient) DeleteCustomKeyStore(ctx context.Context, params *kms.DeleteCustomKeyStoreInput, optFns ...func(*kms.Options)) (*kms.DeleteCustomKeyStoreOutput, error)

DeleteCustomKeyStore provides a mock function with given fields: ctx, params, optFns

func (*IClient) DeleteImportedKeyMaterial

func (_m *IClient) DeleteImportedKeyMaterial(ctx context.Context, params *kms.DeleteImportedKeyMaterialInput, optFns ...func(*kms.Options)) (*kms.DeleteImportedKeyMaterialOutput, error)

DeleteImportedKeyMaterial provides a mock function with given fields: ctx, params, optFns

func (*IClient) DeriveSharedSecret

func (_m *IClient) DeriveSharedSecret(ctx context.Context, params *kms.DeriveSharedSecretInput, optFns ...func(*kms.Options)) (*kms.DeriveSharedSecretOutput, error)

DeriveSharedSecret provides a mock function with given fields: ctx, params, optFns

func (*IClient) DescribeCustomKeyStores

func (_m *IClient) DescribeCustomKeyStores(ctx context.Context, params *kms.DescribeCustomKeyStoresInput, optFns ...func(*kms.Options)) (*kms.DescribeCustomKeyStoresOutput, error)

DescribeCustomKeyStores provides a mock function with given fields: ctx, params, optFns

func (*IClient) DescribeKey

func (_m *IClient) DescribeKey(ctx context.Context, params *kms.DescribeKeyInput, optFns ...func(*kms.Options)) (*kms.DescribeKeyOutput, error)

DescribeKey provides a mock function with given fields: ctx, params, optFns

func (*IClient) DisableKey

func (_m *IClient) DisableKey(ctx context.Context, params *kms.DisableKeyInput, optFns ...func(*kms.Options)) (*kms.DisableKeyOutput, error)

DisableKey provides a mock function with given fields: ctx, params, optFns

func (*IClient) DisableKeyRotation

func (_m *IClient) DisableKeyRotation(ctx context.Context, params *kms.DisableKeyRotationInput, optFns ...func(*kms.Options)) (*kms.DisableKeyRotationOutput, error)

DisableKeyRotation provides a mock function with given fields: ctx, params, optFns

func (*IClient) DisconnectCustomKeyStore

func (_m *IClient) DisconnectCustomKeyStore(ctx context.Context, params *kms.DisconnectCustomKeyStoreInput, optFns ...func(*kms.Options)) (*kms.DisconnectCustomKeyStoreOutput, error)

DisconnectCustomKeyStore provides a mock function with given fields: ctx, params, optFns

func (*IClient) EnableKey

func (_m *IClient) EnableKey(ctx context.Context, params *kms.EnableKeyInput, optFns ...func(*kms.Options)) (*kms.EnableKeyOutput, error)

EnableKey provides a mock function with given fields: ctx, params, optFns

func (*IClient) EnableKeyRotation

func (_m *IClient) EnableKeyRotation(ctx context.Context, params *kms.EnableKeyRotationInput, optFns ...func(*kms.Options)) (*kms.EnableKeyRotationOutput, error)

EnableKeyRotation provides a mock function with given fields: ctx, params, optFns

func (*IClient) Encrypt

func (_m *IClient) Encrypt(ctx context.Context, params *kms.EncryptInput, optFns ...func(*kms.Options)) (*kms.EncryptOutput, error)

Encrypt provides a mock function with given fields: ctx, params, optFns

func (*IClient) GenerateDataKey

func (_m *IClient) GenerateDataKey(ctx context.Context, params *kms.GenerateDataKeyInput, optFns ...func(*kms.Options)) (*kms.GenerateDataKeyOutput, error)

GenerateDataKey provides a mock function with given fields: ctx, params, optFns

func (*IClient) GenerateDataKeyPair

func (_m *IClient) GenerateDataKeyPair(ctx context.Context, params *kms.GenerateDataKeyPairInput, optFns ...func(*kms.Options)) (*kms.GenerateDataKeyPairOutput, error)

GenerateDataKeyPair provides a mock function with given fields: ctx, params, optFns

func (*IClient) GenerateDataKeyPairWithoutPlaintext

func (_m *IClient) GenerateDataKeyPairWithoutPlaintext(ctx context.Context, params *kms.GenerateDataKeyPairWithoutPlaintextInput, optFns ...func(*kms.Options)) (*kms.GenerateDataKeyPairWithoutPlaintextOutput, error)

GenerateDataKeyPairWithoutPlaintext provides a mock function with given fields: ctx, params, optFns

func (*IClient) GenerateDataKeyWithoutPlaintext

func (_m *IClient) GenerateDataKeyWithoutPlaintext(ctx context.Context, params *kms.GenerateDataKeyWithoutPlaintextInput, optFns ...func(*kms.Options)) (*kms.GenerateDataKeyWithoutPlaintextOutput, error)

GenerateDataKeyWithoutPlaintext provides a mock function with given fields: ctx, params, optFns

func (*IClient) GenerateMac

func (_m *IClient) GenerateMac(ctx context.Context, params *kms.GenerateMacInput, optFns ...func(*kms.Options)) (*kms.GenerateMacOutput, error)

GenerateMac provides a mock function with given fields: ctx, params, optFns

func (*IClient) GenerateRandom

func (_m *IClient) GenerateRandom(ctx context.Context, params *kms.GenerateRandomInput, optFns ...func(*kms.Options)) (*kms.GenerateRandomOutput, error)

GenerateRandom provides a mock function with given fields: ctx, params, optFns

func (*IClient) GetKeyPolicy

func (_m *IClient) GetKeyPolicy(ctx context.Context, params *kms.GetKeyPolicyInput, optFns ...func(*kms.Options)) (*kms.GetKeyPolicyOutput, error)

GetKeyPolicy provides a mock function with given fields: ctx, params, optFns

func (*IClient) GetKeyRotationStatus

func (_m *IClient) GetKeyRotationStatus(ctx context.Context, params *kms.GetKeyRotationStatusInput, optFns ...func(*kms.Options)) (*kms.GetKeyRotationStatusOutput, error)

GetKeyRotationStatus provides a mock function with given fields: ctx, params, optFns

func (*IClient) GetParametersForImport

func (_m *IClient) GetParametersForImport(ctx context.Context, params *kms.GetParametersForImportInput, optFns ...func(*kms.Options)) (*kms.GetParametersForImportOutput, error)

GetParametersForImport provides a mock function with given fields: ctx, params, optFns

func (*IClient) GetPublicKey

func (_m *IClient) GetPublicKey(ctx context.Context, params *kms.GetPublicKeyInput, optFns ...func(*kms.Options)) (*kms.GetPublicKeyOutput, error)

GetPublicKey provides a mock function with given fields: ctx, params, optFns

func (*IClient) ImportKeyMaterial

func (_m *IClient) ImportKeyMaterial(ctx context.Context, params *kms.ImportKeyMaterialInput, optFns ...func(*kms.Options)) (*kms.ImportKeyMaterialOutput, error)

ImportKeyMaterial provides a mock function with given fields: ctx, params, optFns

func (*IClient) ListAliases

func (_m *IClient) ListAliases(ctx context.Context, params *kms.ListAliasesInput, optFns ...func(*kms.Options)) (*kms.ListAliasesOutput, error)

ListAliases provides a mock function with given fields: ctx, params, optFns

func (*IClient) ListGrants

func (_m *IClient) ListGrants(ctx context.Context, params *kms.ListGrantsInput, optFns ...func(*kms.Options)) (*kms.ListGrantsOutput, error)

ListGrants provides a mock function with given fields: ctx, params, optFns

func (*IClient) ListKeyPolicies

func (_m *IClient) ListKeyPolicies(ctx context.Context, params *kms.ListKeyPoliciesInput, optFns ...func(*kms.Options)) (*kms.ListKeyPoliciesOutput, error)

ListKeyPolicies provides a mock function with given fields: ctx, params, optFns

func (*IClient) ListKeyRotations

func (_m *IClient) ListKeyRotations(ctx context.Context, params *kms.ListKeyRotationsInput, optFns ...func(*kms.Options)) (*kms.ListKeyRotationsOutput, error)

ListKeyRotations provides a mock function with given fields: ctx, params, optFns

func (*IClient) ListKeys

func (_m *IClient) ListKeys(ctx context.Context, params *kms.ListKeysInput, optFns ...func(*kms.Options)) (*kms.ListKeysOutput, error)

ListKeys provides a mock function with given fields: ctx, params, optFns

func (*IClient) ListResourceTags

func (_m *IClient) ListResourceTags(ctx context.Context, params *kms.ListResourceTagsInput, optFns ...func(*kms.Options)) (*kms.ListResourceTagsOutput, error)

ListResourceTags provides a mock function with given fields: ctx, params, optFns

func (*IClient) ListRetirableGrants

func (_m *IClient) ListRetirableGrants(ctx context.Context, params *kms.ListRetirableGrantsInput, optFns ...func(*kms.Options)) (*kms.ListRetirableGrantsOutput, error)

ListRetirableGrants provides a mock function with given fields: ctx, params, optFns

func (*IClient) Options

func (_m *IClient) Options() kms.Options

Options provides a mock function with given fields:

func (*IClient) PutKeyPolicy

func (_m *IClient) PutKeyPolicy(ctx context.Context, params *kms.PutKeyPolicyInput, optFns ...func(*kms.Options)) (*kms.PutKeyPolicyOutput, error)

PutKeyPolicy provides a mock function with given fields: ctx, params, optFns

func (*IClient) ReEncrypt

func (_m *IClient) ReEncrypt(ctx context.Context, params *kms.ReEncryptInput, optFns ...func(*kms.Options)) (*kms.ReEncryptOutput, error)

ReEncrypt provides a mock function with given fields: ctx, params, optFns

func (*IClient) ReplicateKey

func (_m *IClient) ReplicateKey(ctx context.Context, params *kms.ReplicateKeyInput, optFns ...func(*kms.Options)) (*kms.ReplicateKeyOutput, error)

ReplicateKey provides a mock function with given fields: ctx, params, optFns

func (*IClient) RetireGrant

func (_m *IClient) RetireGrant(ctx context.Context, params *kms.RetireGrantInput, optFns ...func(*kms.Options)) (*kms.RetireGrantOutput, error)

RetireGrant provides a mock function with given fields: ctx, params, optFns

func (*IClient) RevokeGrant

func (_m *IClient) RevokeGrant(ctx context.Context, params *kms.RevokeGrantInput, optFns ...func(*kms.Options)) (*kms.RevokeGrantOutput, error)

RevokeGrant provides a mock function with given fields: ctx, params, optFns

func (*IClient) RotateKeyOnDemand

func (_m *IClient) RotateKeyOnDemand(ctx context.Context, params *kms.RotateKeyOnDemandInput, optFns ...func(*kms.Options)) (*kms.RotateKeyOnDemandOutput, error)

RotateKeyOnDemand provides a mock function with given fields: ctx, params, optFns

func (*IClient) ScheduleKeyDeletion

func (_m *IClient) ScheduleKeyDeletion(ctx context.Context, params *kms.ScheduleKeyDeletionInput, optFns ...func(*kms.Options)) (*kms.ScheduleKeyDeletionOutput, error)

ScheduleKeyDeletion provides a mock function with given fields: ctx, params, optFns

func (*IClient) Sign

func (_m *IClient) Sign(ctx context.Context, params *kms.SignInput, optFns ...func(*kms.Options)) (*kms.SignOutput, error)

Sign provides a mock function with given fields: ctx, params, optFns

func (*IClient) TagResource

func (_m *IClient) TagResource(ctx context.Context, params *kms.TagResourceInput, optFns ...func(*kms.Options)) (*kms.TagResourceOutput, error)

TagResource provides a mock function with given fields: ctx, params, optFns

func (*IClient) UntagResource

func (_m *IClient) UntagResource(ctx context.Context, params *kms.UntagResourceInput, optFns ...func(*kms.Options)) (*kms.UntagResourceOutput, error)

UntagResource provides a mock function with given fields: ctx, params, optFns

func (*IClient) UpdateAlias

func (_m *IClient) UpdateAlias(ctx context.Context, params *kms.UpdateAliasInput, optFns ...func(*kms.Options)) (*kms.UpdateAliasOutput, error)

UpdateAlias provides a mock function with given fields: ctx, params, optFns

func (*IClient) UpdateCustomKeyStore

func (_m *IClient) UpdateCustomKeyStore(ctx context.Context, params *kms.UpdateCustomKeyStoreInput, optFns ...func(*kms.Options)) (*kms.UpdateCustomKeyStoreOutput, error)

UpdateCustomKeyStore provides a mock function with given fields: ctx, params, optFns

func (*IClient) UpdateKeyDescription

func (_m *IClient) UpdateKeyDescription(ctx context.Context, params *kms.UpdateKeyDescriptionInput, optFns ...func(*kms.Options)) (*kms.UpdateKeyDescriptionOutput, error)

UpdateKeyDescription provides a mock function with given fields: ctx, params, optFns

func (*IClient) UpdatePrimaryRegion

func (_m *IClient) UpdatePrimaryRegion(ctx context.Context, params *kms.UpdatePrimaryRegionInput, optFns ...func(*kms.Options)) (*kms.UpdatePrimaryRegionOutput, error)

UpdatePrimaryRegion provides a mock function with given fields: ctx, params, optFns

func (*IClient) Verify

func (_m *IClient) Verify(ctx context.Context, params *kms.VerifyInput, optFns ...func(*kms.Options)) (*kms.VerifyOutput, error)

Verify provides a mock function with given fields: ctx, params, optFns

func (*IClient) VerifyMac

func (_m *IClient) VerifyMac(ctx context.Context, params *kms.VerifyMacInput, optFns ...func(*kms.Options)) (*kms.VerifyMacOutput, error)

VerifyMac provides a mock function with given fields: ctx, params, optFns

Jump to

Keyboard shortcuts

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