mocks

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSchedulerClient

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

MockSchedulerClient is a mock of SchedulerClient interface.

func NewMockSchedulerClient

func NewMockSchedulerClient(ctrl *gomock.Controller) *MockSchedulerClient

NewMockSchedulerClient creates a new mock instance.

func (*MockSchedulerClient) AnnounceTask

func (m *MockSchedulerClient) AnnounceTask(ctx context.Context, in *v1.AnnounceTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

AnnounceTask mocks base method.

func (*MockSchedulerClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSchedulerClient) LeaveTask

func (m *MockSchedulerClient) LeaveTask(ctx context.Context, in *v1.PeerTarget, opts ...grpc.CallOption) (*emptypb.Empty, error)

LeaveTask mocks base method.

func (*MockSchedulerClient) RegisterPeerTask

func (m *MockSchedulerClient) RegisterPeerTask(ctx context.Context, in *v1.PeerTaskRequest, opts ...grpc.CallOption) (*v1.RegisterResult, error)

RegisterPeerTask mocks base method.

func (*MockSchedulerClient) ReportPeerResult

func (m *MockSchedulerClient) ReportPeerResult(ctx context.Context, in *v1.PeerResult, opts ...grpc.CallOption) (*emptypb.Empty, error)

ReportPeerResult mocks base method.

func (*MockSchedulerClient) ReportPieceResult

ReportPieceResult mocks base method.

func (*MockSchedulerClient) StatTask

func (m *MockSchedulerClient) StatTask(ctx context.Context, in *v1.StatTaskRequest, opts ...grpc.CallOption) (*v1.Task, error)

StatTask mocks base method.

type MockSchedulerClientMockRecorder

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

MockSchedulerClientMockRecorder is the mock recorder for MockSchedulerClient.

func (*MockSchedulerClientMockRecorder) AnnounceTask

func (mr *MockSchedulerClientMockRecorder) AnnounceTask(ctx, in interface{}, opts ...interface{}) *gomock.Call

AnnounceTask indicates an expected call of AnnounceTask.

func (*MockSchedulerClientMockRecorder) LeaveTask

func (mr *MockSchedulerClientMockRecorder) LeaveTask(ctx, in interface{}, opts ...interface{}) *gomock.Call

LeaveTask indicates an expected call of LeaveTask.

func (*MockSchedulerClientMockRecorder) RegisterPeerTask

func (mr *MockSchedulerClientMockRecorder) RegisterPeerTask(ctx, in interface{}, opts ...interface{}) *gomock.Call

RegisterPeerTask indicates an expected call of RegisterPeerTask.

func (*MockSchedulerClientMockRecorder) ReportPeerResult

func (mr *MockSchedulerClientMockRecorder) ReportPeerResult(ctx, in interface{}, opts ...interface{}) *gomock.Call

ReportPeerResult indicates an expected call of ReportPeerResult.

func (*MockSchedulerClientMockRecorder) ReportPieceResult

func (mr *MockSchedulerClientMockRecorder) ReportPieceResult(ctx interface{}, opts ...interface{}) *gomock.Call

ReportPieceResult indicates an expected call of ReportPieceResult.

func (*MockSchedulerClientMockRecorder) StatTask

func (mr *MockSchedulerClientMockRecorder) StatTask(ctx, in interface{}, opts ...interface{}) *gomock.Call

StatTask indicates an expected call of StatTask.

type MockSchedulerServer

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

MockSchedulerServer is a mock of SchedulerServer interface.

func NewMockSchedulerServer

func NewMockSchedulerServer(ctrl *gomock.Controller) *MockSchedulerServer

NewMockSchedulerServer creates a new mock instance.

func (*MockSchedulerServer) AnnounceTask

func (m *MockSchedulerServer) AnnounceTask(arg0 context.Context, arg1 *v1.AnnounceTaskRequest) (*emptypb.Empty, error)

AnnounceTask mocks base method.

func (*MockSchedulerServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSchedulerServer) LeaveTask

func (m *MockSchedulerServer) LeaveTask(arg0 context.Context, arg1 *v1.PeerTarget) (*emptypb.Empty, error)

LeaveTask mocks base method.

func (*MockSchedulerServer) RegisterPeerTask

func (m *MockSchedulerServer) RegisterPeerTask(arg0 context.Context, arg1 *v1.PeerTaskRequest) (*v1.RegisterResult, error)

RegisterPeerTask mocks base method.

func (*MockSchedulerServer) ReportPeerResult

func (m *MockSchedulerServer) ReportPeerResult(arg0 context.Context, arg1 *v1.PeerResult) (*emptypb.Empty, error)

ReportPeerResult mocks base method.

func (*MockSchedulerServer) ReportPieceResult

ReportPieceResult mocks base method.

func (*MockSchedulerServer) StatTask

func (m *MockSchedulerServer) StatTask(arg0 context.Context, arg1 *v1.StatTaskRequest) (*v1.Task, error)

StatTask mocks base method.

type MockSchedulerServerMockRecorder

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

MockSchedulerServerMockRecorder is the mock recorder for MockSchedulerServer.

func (*MockSchedulerServerMockRecorder) AnnounceTask

func (mr *MockSchedulerServerMockRecorder) AnnounceTask(arg0, arg1 interface{}) *gomock.Call

AnnounceTask indicates an expected call of AnnounceTask.

func (*MockSchedulerServerMockRecorder) LeaveTask

func (mr *MockSchedulerServerMockRecorder) LeaveTask(arg0, arg1 interface{}) *gomock.Call

LeaveTask indicates an expected call of LeaveTask.

func (*MockSchedulerServerMockRecorder) RegisterPeerTask

func (mr *MockSchedulerServerMockRecorder) RegisterPeerTask(arg0, arg1 interface{}) *gomock.Call

RegisterPeerTask indicates an expected call of RegisterPeerTask.

func (*MockSchedulerServerMockRecorder) ReportPeerResult

func (mr *MockSchedulerServerMockRecorder) ReportPeerResult(arg0, arg1 interface{}) *gomock.Call

ReportPeerResult indicates an expected call of ReportPeerResult.

func (*MockSchedulerServerMockRecorder) ReportPieceResult

func (mr *MockSchedulerServerMockRecorder) ReportPieceResult(arg0 interface{}) *gomock.Call

ReportPieceResult indicates an expected call of ReportPieceResult.

func (*MockSchedulerServerMockRecorder) StatTask

func (mr *MockSchedulerServerMockRecorder) StatTask(arg0, arg1 interface{}) *gomock.Call

StatTask indicates an expected call of StatTask.

type MockScheduler_ReportPieceResultClient

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

MockScheduler_ReportPieceResultClient is a mock of Scheduler_ReportPieceResultClient interface.

func NewMockScheduler_ReportPieceResultClient

func NewMockScheduler_ReportPieceResultClient(ctrl *gomock.Controller) *MockScheduler_ReportPieceResultClient

NewMockScheduler_ReportPieceResultClient creates a new mock instance.

func (*MockScheduler_ReportPieceResultClient) CloseSend

CloseSend mocks base method.

func (*MockScheduler_ReportPieceResultClient) Context

Context mocks base method.

func (*MockScheduler_ReportPieceResultClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockScheduler_ReportPieceResultClient) Header

Header mocks base method.

func (*MockScheduler_ReportPieceResultClient) Recv

Recv mocks base method.

func (*MockScheduler_ReportPieceResultClient) RecvMsg

func (m_2 *MockScheduler_ReportPieceResultClient) RecvMsg(m interface{}) error

RecvMsg mocks base method.

func (*MockScheduler_ReportPieceResultClient) Send

Send mocks base method.

func (*MockScheduler_ReportPieceResultClient) SendMsg

func (m_2 *MockScheduler_ReportPieceResultClient) SendMsg(m interface{}) error

SendMsg mocks base method.

func (*MockScheduler_ReportPieceResultClient) Trailer

Trailer mocks base method.

type MockScheduler_ReportPieceResultClientMockRecorder

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

MockScheduler_ReportPieceResultClientMockRecorder is the mock recorder for MockScheduler_ReportPieceResultClient.

func (*MockScheduler_ReportPieceResultClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockScheduler_ReportPieceResultClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockScheduler_ReportPieceResultClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockScheduler_ReportPieceResultClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockScheduler_ReportPieceResultClientMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockScheduler_ReportPieceResultClientMockRecorder) Send

Send indicates an expected call of Send.

func (*MockScheduler_ReportPieceResultClientMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockScheduler_ReportPieceResultClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockScheduler_ReportPieceResultServer

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

MockScheduler_ReportPieceResultServer is a mock of Scheduler_ReportPieceResultServer interface.

func NewMockScheduler_ReportPieceResultServer

func NewMockScheduler_ReportPieceResultServer(ctrl *gomock.Controller) *MockScheduler_ReportPieceResultServer

NewMockScheduler_ReportPieceResultServer creates a new mock instance.

func (*MockScheduler_ReportPieceResultServer) Context

Context mocks base method.

func (*MockScheduler_ReportPieceResultServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockScheduler_ReportPieceResultServer) Recv

Recv mocks base method.

func (*MockScheduler_ReportPieceResultServer) RecvMsg

func (m_2 *MockScheduler_ReportPieceResultServer) RecvMsg(m interface{}) error

RecvMsg mocks base method.

func (*MockScheduler_ReportPieceResultServer) Send

Send mocks base method.

func (*MockScheduler_ReportPieceResultServer) SendHeader

SendHeader mocks base method.

func (*MockScheduler_ReportPieceResultServer) SendMsg

func (m_2 *MockScheduler_ReportPieceResultServer) SendMsg(m interface{}) error

SendMsg mocks base method.

func (*MockScheduler_ReportPieceResultServer) SetHeader

SetHeader mocks base method.

func (*MockScheduler_ReportPieceResultServer) SetTrailer

SetTrailer mocks base method.

type MockScheduler_ReportPieceResultServerMockRecorder

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

MockScheduler_ReportPieceResultServerMockRecorder is the mock recorder for MockScheduler_ReportPieceResultServer.

func (*MockScheduler_ReportPieceResultServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockScheduler_ReportPieceResultServerMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockScheduler_ReportPieceResultServerMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockScheduler_ReportPieceResultServerMockRecorder) Send

Send indicates an expected call of Send.

func (*MockScheduler_ReportPieceResultServerMockRecorder) SendHeader

func (mr *MockScheduler_ReportPieceResultServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call

SendHeader indicates an expected call of SendHeader.

func (*MockScheduler_ReportPieceResultServerMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockScheduler_ReportPieceResultServerMockRecorder) SetHeader

func (mr *MockScheduler_ReportPieceResultServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call

SetHeader indicates an expected call of SetHeader.

func (*MockScheduler_ReportPieceResultServerMockRecorder) SetTrailer

func (mr *MockScheduler_ReportPieceResultServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call

SetTrailer indicates an expected call of SetTrailer.

type MockisPeerPacket_Errordetails

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

MockisPeerPacket_Errordetails is a mock of isPeerPacket_Errordetails interface.

func NewMockisPeerPacket_Errordetails

func NewMockisPeerPacket_Errordetails(ctrl *gomock.Controller) *MockisPeerPacket_Errordetails

NewMockisPeerPacket_Errordetails creates a new mock instance.

func (*MockisPeerPacket_Errordetails) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockisPeerPacket_ErrordetailsMockRecorder

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

MockisPeerPacket_ErrordetailsMockRecorder is the mock recorder for MockisPeerPacket_Errordetails.

type MockisPeerResult_Errordetails

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

MockisPeerResult_Errordetails is a mock of isPeerResult_Errordetails interface.

func NewMockisPeerResult_Errordetails

func NewMockisPeerResult_Errordetails(ctrl *gomock.Controller) *MockisPeerResult_Errordetails

NewMockisPeerResult_Errordetails creates a new mock instance.

func (*MockisPeerResult_Errordetails) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockisPeerResult_ErrordetailsMockRecorder

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

MockisPeerResult_ErrordetailsMockRecorder is the mock recorder for MockisPeerResult_Errordetails.

type MockisRegisterResult_DirectPiece

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

MockisRegisterResult_DirectPiece is a mock of isRegisterResult_DirectPiece interface.

func NewMockisRegisterResult_DirectPiece

func NewMockisRegisterResult_DirectPiece(ctrl *gomock.Controller) *MockisRegisterResult_DirectPiece

NewMockisRegisterResult_DirectPiece creates a new mock instance.

func (*MockisRegisterResult_DirectPiece) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockisRegisterResult_DirectPieceMockRecorder

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

MockisRegisterResult_DirectPieceMockRecorder is the mock recorder for MockisRegisterResult_DirectPiece.

Jump to

Keyboard shortcuts

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