mocks

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MPCKeyServiceClient

type MPCKeyServiceClient struct {
	mock.Mock
}

MPCKeyServiceClient is an autogenerated mock type for the MPCKeyServiceClient type

func NewMPCKeyServiceClient

func NewMPCKeyServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MPCKeyServiceClient

NewMPCKeyServiceClient creates a new instance of MPCKeyServiceClient. 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 (*MPCKeyServiceClient) AddDevice

AddDevice provides a mock function with given fields: ctx, in, opts

func (*MPCKeyServiceClient) CreateDeviceGroup

CreateDeviceGroup provides a mock function with given fields: ctx, in, opts

func (*MPCKeyServiceClient) CreateMPCKey

func (_m *MPCKeyServiceClient) CreateMPCKey(ctx context.Context, in *v1.CreateMPCKeyRequest, opts ...grpc.CallOption) (*v1.MPCKey, error)

CreateMPCKey provides a mock function with given fields: ctx, in, opts

func (*MPCKeyServiceClient) CreateSignature

CreateSignature provides a mock function with given fields: ctx, in, opts

func (*MPCKeyServiceClient) GetDevice

func (_m *MPCKeyServiceClient) GetDevice(ctx context.Context, in *v1.GetDeviceRequest, opts ...grpc.CallOption) (*v1.Device, error)

GetDevice provides a mock function with given fields: ctx, in, opts

func (*MPCKeyServiceClient) GetDeviceGroup

func (_m *MPCKeyServiceClient) GetDeviceGroup(ctx context.Context, in *v1.GetDeviceGroupRequest, opts ...grpc.CallOption) (*v1.DeviceGroup, error)

GetDeviceGroup provides a mock function with given fields: ctx, in, opts

func (*MPCKeyServiceClient) GetMPCKey

func (_m *MPCKeyServiceClient) GetMPCKey(ctx context.Context, in *v1.GetMPCKeyRequest, opts ...grpc.CallOption) (*v1.MPCKey, error)

GetMPCKey provides a mock function with given fields: ctx, in, opts

func (*MPCKeyServiceClient) ListMPCOperations

ListMPCOperations provides a mock function with given fields: ctx, in, opts

func (*MPCKeyServiceClient) PrepareDeviceArchive

PrepareDeviceArchive provides a mock function with given fields: ctx, in, opts

func (*MPCKeyServiceClient) PrepareDeviceBackup

PrepareDeviceBackup provides a mock function with given fields: ctx, in, opts

func (*MPCKeyServiceClient) RegisterDevice

func (_m *MPCKeyServiceClient) RegisterDevice(ctx context.Context, in *v1.RegisterDeviceRequest, opts ...grpc.CallOption) (*v1.Device, error)

RegisterDevice provides a mock function with given fields: ctx, in, opts

func (*MPCKeyServiceClient) RevokeDevice

func (_m *MPCKeyServiceClient) RevokeDevice(ctx context.Context, in *v1.RevokeDeviceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

RevokeDevice provides a mock function with given fields: ctx, in, opts

type MPCKeyServiceServer

type MPCKeyServiceServer struct {
	mock.Mock
}

MPCKeyServiceServer is an autogenerated mock type for the MPCKeyServiceServer type

func NewMPCKeyServiceServer

func NewMPCKeyServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MPCKeyServiceServer

NewMPCKeyServiceServer creates a new instance of MPCKeyServiceServer. 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 (*MPCKeyServiceServer) AddDevice

AddDevice provides a mock function with given fields: _a0, _a1

func (*MPCKeyServiceServer) CreateDeviceGroup

CreateDeviceGroup provides a mock function with given fields: _a0, _a1

func (*MPCKeyServiceServer) CreateMPCKey

func (_m *MPCKeyServiceServer) CreateMPCKey(_a0 context.Context, _a1 *v1.CreateMPCKeyRequest) (*v1.MPCKey, error)

CreateMPCKey provides a mock function with given fields: _a0, _a1

func (*MPCKeyServiceServer) CreateSignature

CreateSignature provides a mock function with given fields: _a0, _a1

func (*MPCKeyServiceServer) GetDevice

func (_m *MPCKeyServiceServer) GetDevice(_a0 context.Context, _a1 *v1.GetDeviceRequest) (*v1.Device, error)

GetDevice provides a mock function with given fields: _a0, _a1

func (*MPCKeyServiceServer) GetDeviceGroup

func (_m *MPCKeyServiceServer) GetDeviceGroup(_a0 context.Context, _a1 *v1.GetDeviceGroupRequest) (*v1.DeviceGroup, error)

GetDeviceGroup provides a mock function with given fields: _a0, _a1

func (*MPCKeyServiceServer) GetMPCKey

func (_m *MPCKeyServiceServer) GetMPCKey(_a0 context.Context, _a1 *v1.GetMPCKeyRequest) (*v1.MPCKey, error)

GetMPCKey provides a mock function with given fields: _a0, _a1

func (*MPCKeyServiceServer) ListMPCOperations

ListMPCOperations provides a mock function with given fields: _a0, _a1

func (*MPCKeyServiceServer) PrepareDeviceArchive

PrepareDeviceArchive provides a mock function with given fields: _a0, _a1

func (*MPCKeyServiceServer) PrepareDeviceBackup

PrepareDeviceBackup provides a mock function with given fields: _a0, _a1

func (*MPCKeyServiceServer) RegisterDevice

func (_m *MPCKeyServiceServer) RegisterDevice(_a0 context.Context, _a1 *v1.RegisterDeviceRequest) (*v1.Device, error)

RegisterDevice provides a mock function with given fields: _a0, _a1

func (*MPCKeyServiceServer) RevokeDevice

func (_m *MPCKeyServiceServer) RevokeDevice(_a0 context.Context, _a1 *v1.RevokeDeviceRequest) (*emptypb.Empty, error)

RevokeDevice provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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