kmsmocks

package
v0.114.6 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient

func NewMockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClient

NewMockClient creates a new instance of MockClient. 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 (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

func (*MockClient) GetPublicKey

func (_mock *MockClient) GetPublicKey(input *kms.GetPublicKeyInput) (*kms.GetPublicKeyOutput, error)

GetPublicKey provides a mock function for the type MockClient

func (*MockClient) Sign

func (_mock *MockClient) Sign(input *kms.SignInput) (*kms.SignOutput, error)

Sign provides a mock function for the type MockClient

type MockClient_Expecter

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

func (*MockClient_Expecter) GetPublicKey

func (_e *MockClient_Expecter) GetPublicKey(input interface{}) *MockClient_GetPublicKey_Call

GetPublicKey is a helper method to define mock.On call

  • input *kms.GetPublicKeyInput

func (*MockClient_Expecter) Sign

func (_e *MockClient_Expecter) Sign(input interface{}) *MockClient_Sign_Call

Sign is a helper method to define mock.On call

  • input *kms.SignInput

type MockClient_GetPublicKey_Call

type MockClient_GetPublicKey_Call struct {
	*mock.Call
}

MockClient_GetPublicKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublicKey'

func (*MockClient_GetPublicKey_Call) Return

func (*MockClient_GetPublicKey_Call) Run

func (*MockClient_GetPublicKey_Call) RunAndReturn

type MockClient_Sign_Call

type MockClient_Sign_Call struct {
	*mock.Call
}

MockClient_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign'

func (*MockClient_Sign_Call) Return

func (_c *MockClient_Sign_Call) Return(signOutput *kms.SignOutput, err error) *MockClient_Sign_Call

func (*MockClient_Sign_Call) Run

func (_c *MockClient_Sign_Call) Run(run func(input *kms.SignInput)) *MockClient_Sign_Call

func (*MockClient_Sign_Call) RunAndReturn

func (_c *MockClient_Sign_Call) RunAndReturn(run func(input *kms.SignInput) (*kms.SignOutput, error)) *MockClient_Sign_Call

type MockEd25519Client added in v0.114.6

type MockEd25519Client struct {
	mock.Mock
}

MockEd25519Client is an autogenerated mock type for the Ed25519Client type

func NewMockEd25519Client added in v0.114.6

func NewMockEd25519Client(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEd25519Client

NewMockEd25519Client creates a new instance of MockEd25519Client. 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 (*MockEd25519Client) EXPECT added in v0.114.6

func (*MockEd25519Client) GetPublicKey added in v0.114.6

func (_mock *MockEd25519Client) GetPublicKey(ctx context.Context, in *kms.GetPublicKeyInput, optFns ...func(*kms.Options)) (*kms.GetPublicKeyOutput, error)

GetPublicKey provides a mock function for the type MockEd25519Client

func (*MockEd25519Client) Sign added in v0.114.6

func (_mock *MockEd25519Client) Sign(ctx context.Context, in *kms.SignInput, optFns ...func(*kms.Options)) (*kms.SignOutput, error)

Sign provides a mock function for the type MockEd25519Client

type MockEd25519Client_Expecter added in v0.114.6

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

func (*MockEd25519Client_Expecter) GetPublicKey added in v0.114.6

func (_e *MockEd25519Client_Expecter) GetPublicKey(ctx interface{}, in interface{}, optFns ...interface{}) *MockEd25519Client_GetPublicKey_Call

GetPublicKey is a helper method to define mock.On call

  • ctx context.Context
  • in *kms.GetPublicKeyInput
  • optFns ...func(*kms.Options)

func (*MockEd25519Client_Expecter) Sign added in v0.114.6

func (_e *MockEd25519Client_Expecter) Sign(ctx interface{}, in interface{}, optFns ...interface{}) *MockEd25519Client_Sign_Call

Sign is a helper method to define mock.On call

  • ctx context.Context
  • in *kms.SignInput
  • optFns ...func(*kms.Options)

type MockEd25519Client_GetPublicKey_Call added in v0.114.6

type MockEd25519Client_GetPublicKey_Call struct {
	*mock.Call
}

MockEd25519Client_GetPublicKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPublicKey'

func (*MockEd25519Client_GetPublicKey_Call) Return added in v0.114.6

func (*MockEd25519Client_GetPublicKey_Call) Run added in v0.114.6

func (*MockEd25519Client_GetPublicKey_Call) RunAndReturn added in v0.114.6

type MockEd25519Client_Sign_Call added in v0.114.6

type MockEd25519Client_Sign_Call struct {
	*mock.Call
}

MockEd25519Client_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign'

func (*MockEd25519Client_Sign_Call) Return added in v0.114.6

func (*MockEd25519Client_Sign_Call) Run added in v0.114.6

func (_c *MockEd25519Client_Sign_Call) Run(run func(ctx context.Context, in *kms.SignInput, optFns ...func(*kms.Options))) *MockEd25519Client_Sign_Call

func (*MockEd25519Client_Sign_Call) RunAndReturn added in v0.114.6

func (_c *MockEd25519Client_Sign_Call) RunAndReturn(run func(ctx context.Context, in *kms.SignInput, optFns ...func(*kms.Options)) (*kms.SignOutput, error)) *MockEd25519Client_Sign_Call

Jump to

Keyboard shortcuts

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