mocks

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 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) AnnounceHost added in v1.2.5

AnnounceHost mocks base method.

func (*MockSchedulerClient) AnnounceTask

AnnounceTask mocks base method.

func (*MockSchedulerClient) EXPECT

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

func (*MockSchedulerClient) LeaveHost added in v1.2.2

LeaveHost mocks base method.

func (*MockSchedulerClient) LeaveTask

LeaveTask mocks base method.

func (*MockSchedulerClient) RegisterPeerTask

RegisterPeerTask mocks base method.

func (*MockSchedulerClient) ReportPeerResult

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

ReportPeerResult mocks base method.

func (*MockSchedulerClient) ReportPieceResult

ReportPieceResult mocks base method.

func (*MockSchedulerClient) StatTask

StatTask mocks base method.

func (*MockSchedulerClient) SyncProbes added in v1.4.8

SyncProbes mocks base method.

type MockSchedulerClientMockRecorder

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

MockSchedulerClientMockRecorder is the mock recorder for MockSchedulerClient.

func (*MockSchedulerClientMockRecorder) AnnounceHost added in v1.2.5

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

AnnounceHost indicates an expected call of AnnounceHost.

func (*MockSchedulerClientMockRecorder) AnnounceTask

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

AnnounceTask indicates an expected call of AnnounceTask.

func (*MockSchedulerClientMockRecorder) LeaveHost added in v1.2.2

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

LeaveHost indicates an expected call of LeaveHost.

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.

func (*MockSchedulerClientMockRecorder) SyncProbes added in v1.4.8

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

SyncProbes indicates an expected call of SyncProbes.

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) AnnounceHost added in v1.2.5

AnnounceHost mocks base method.

func (*MockSchedulerServer) AnnounceTask

AnnounceTask mocks base method.

func (*MockSchedulerServer) EXPECT

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

func (*MockSchedulerServer) LeaveHost added in v1.2.2

LeaveHost mocks base method.

func (*MockSchedulerServer) LeaveTask

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

LeaveTask mocks base method.

func (*MockSchedulerServer) RegisterPeerTask

RegisterPeerTask mocks base method.

func (*MockSchedulerServer) ReportPeerResult

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

ReportPeerResult mocks base method.

func (*MockSchedulerServer) ReportPieceResult

ReportPieceResult mocks base method.

func (*MockSchedulerServer) StatTask

StatTask mocks base method.

func (*MockSchedulerServer) SyncProbes added in v1.4.8

SyncProbes mocks base method.

type MockSchedulerServerMockRecorder

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

MockSchedulerServerMockRecorder is the mock recorder for MockSchedulerServer.

func (*MockSchedulerServerMockRecorder) AnnounceHost added in v1.2.5

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

AnnounceHost indicates an expected call of AnnounceHost.

func (*MockSchedulerServerMockRecorder) AnnounceTask

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

AnnounceTask indicates an expected call of AnnounceTask.

func (*MockSchedulerServerMockRecorder) LeaveHost added in v1.2.2

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

LeaveHost indicates an expected call of LeaveHost.

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.

func (*MockSchedulerServerMockRecorder) SyncProbes added in v1.4.8

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

SyncProbes indicates an expected call of SyncProbes.

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 MockScheduler_SyncProbesClient added in v1.4.8

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

MockScheduler_SyncProbesClient is a mock of Scheduler_SyncProbesClient interface.

func NewMockScheduler_SyncProbesClient added in v1.4.8

func NewMockScheduler_SyncProbesClient(ctrl *gomock.Controller) *MockScheduler_SyncProbesClient

NewMockScheduler_SyncProbesClient creates a new mock instance.

func (*MockScheduler_SyncProbesClient) CloseSend added in v1.4.8

func (m *MockScheduler_SyncProbesClient) CloseSend() error

CloseSend mocks base method.

func (*MockScheduler_SyncProbesClient) Context added in v1.4.8

Context mocks base method.

func (*MockScheduler_SyncProbesClient) EXPECT added in v1.4.8

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

func (*MockScheduler_SyncProbesClient) Header added in v1.4.8

Header mocks base method.

func (*MockScheduler_SyncProbesClient) Recv added in v1.4.8

Recv mocks base method.

func (*MockScheduler_SyncProbesClient) RecvMsg added in v1.4.8

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

RecvMsg mocks base method.

func (*MockScheduler_SyncProbesClient) Send added in v1.4.8

Send mocks base method.

func (*MockScheduler_SyncProbesClient) SendMsg added in v1.4.8

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

SendMsg mocks base method.

func (*MockScheduler_SyncProbesClient) Trailer added in v1.4.8

Trailer mocks base method.

type MockScheduler_SyncProbesClientMockRecorder added in v1.4.8

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

MockScheduler_SyncProbesClientMockRecorder is the mock recorder for MockScheduler_SyncProbesClient.

func (*MockScheduler_SyncProbesClientMockRecorder) CloseSend added in v1.4.8

CloseSend indicates an expected call of CloseSend.

func (*MockScheduler_SyncProbesClientMockRecorder) Context added in v1.4.8

Context indicates an expected call of Context.

func (*MockScheduler_SyncProbesClientMockRecorder) Header added in v1.4.8

Header indicates an expected call of Header.

func (*MockScheduler_SyncProbesClientMockRecorder) Recv added in v1.4.8

Recv indicates an expected call of Recv.

func (*MockScheduler_SyncProbesClientMockRecorder) RecvMsg added in v1.4.8

func (mr *MockScheduler_SyncProbesClientMockRecorder) RecvMsg(m interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockScheduler_SyncProbesClientMockRecorder) Send added in v1.4.8

func (mr *MockScheduler_SyncProbesClientMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockScheduler_SyncProbesClientMockRecorder) SendMsg added in v1.4.8

func (mr *MockScheduler_SyncProbesClientMockRecorder) SendMsg(m interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockScheduler_SyncProbesClientMockRecorder) Trailer added in v1.4.8

Trailer indicates an expected call of Trailer.

type MockScheduler_SyncProbesServer added in v1.4.8

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

MockScheduler_SyncProbesServer is a mock of Scheduler_SyncProbesServer interface.

func NewMockScheduler_SyncProbesServer added in v1.4.8

func NewMockScheduler_SyncProbesServer(ctrl *gomock.Controller) *MockScheduler_SyncProbesServer

NewMockScheduler_SyncProbesServer creates a new mock instance.

func (*MockScheduler_SyncProbesServer) Context added in v1.4.8

Context mocks base method.

func (*MockScheduler_SyncProbesServer) EXPECT added in v1.4.8

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

func (*MockScheduler_SyncProbesServer) Recv added in v1.4.8

Recv mocks base method.

func (*MockScheduler_SyncProbesServer) RecvMsg added in v1.4.8

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

RecvMsg mocks base method.

func (*MockScheduler_SyncProbesServer) Send added in v1.4.8

Send mocks base method.

func (*MockScheduler_SyncProbesServer) SendHeader added in v1.4.8

func (m *MockScheduler_SyncProbesServer) SendHeader(arg0 metadata.MD) error

SendHeader mocks base method.

func (*MockScheduler_SyncProbesServer) SendMsg added in v1.4.8

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

SendMsg mocks base method.

func (*MockScheduler_SyncProbesServer) SetHeader added in v1.4.8

func (m *MockScheduler_SyncProbesServer) SetHeader(arg0 metadata.MD) error

SetHeader mocks base method.

func (*MockScheduler_SyncProbesServer) SetTrailer added in v1.4.8

func (m *MockScheduler_SyncProbesServer) SetTrailer(arg0 metadata.MD)

SetTrailer mocks base method.

type MockScheduler_SyncProbesServerMockRecorder added in v1.4.8

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

MockScheduler_SyncProbesServerMockRecorder is the mock recorder for MockScheduler_SyncProbesServer.

func (*MockScheduler_SyncProbesServerMockRecorder) Context added in v1.4.8

Context indicates an expected call of Context.

func (*MockScheduler_SyncProbesServerMockRecorder) Recv added in v1.4.8

Recv indicates an expected call of Recv.

func (*MockScheduler_SyncProbesServerMockRecorder) RecvMsg added in v1.4.8

func (mr *MockScheduler_SyncProbesServerMockRecorder) RecvMsg(m interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockScheduler_SyncProbesServerMockRecorder) Send added in v1.4.8

func (mr *MockScheduler_SyncProbesServerMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockScheduler_SyncProbesServerMockRecorder) SendHeader added in v1.4.8

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

SendHeader indicates an expected call of SendHeader.

func (*MockScheduler_SyncProbesServerMockRecorder) SendMsg added in v1.4.8

func (mr *MockScheduler_SyncProbesServerMockRecorder) SendMsg(m interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockScheduler_SyncProbesServerMockRecorder) SetHeader added in v1.4.8

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

SetHeader indicates an expected call of SetHeader.

func (*MockScheduler_SyncProbesServerMockRecorder) SetTrailer added in v1.4.8

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

SetTrailer indicates an expected call of SetTrailer.

type MockUnsafeSchedulerServer added in v1.4.7

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

MockUnsafeSchedulerServer is a mock of UnsafeSchedulerServer interface.

func NewMockUnsafeSchedulerServer added in v1.4.7

func NewMockUnsafeSchedulerServer(ctrl *gomock.Controller) *MockUnsafeSchedulerServer

NewMockUnsafeSchedulerServer creates a new mock instance.

func (*MockUnsafeSchedulerServer) EXPECT added in v1.4.7

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

type MockUnsafeSchedulerServerMockRecorder added in v1.4.7

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

MockUnsafeSchedulerServerMockRecorder is the mock recorder for MockUnsafeSchedulerServer.

Jump to

Keyboard shortcuts

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