mocks

package
v2.1.65 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

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 MockV1 added in v2.0.9

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

MockV1 is a mock of V1 interface.

func NewMockV1 added in v2.0.9

func NewMockV1(ctrl *gomock.Controller) *MockV1

NewMockV1 creates a new mock instance.

func (*MockV1) AnnounceHost added in v2.0.9

func (m *MockV1) AnnounceHost(arg0 context.Context, arg1 *scheduler.AnnounceHostRequest, arg2 ...grpc.CallOption) error

AnnounceHost mocks base method.

func (*MockV1) AnnounceTask added in v2.0.9

func (m *MockV1) AnnounceTask(arg0 context.Context, arg1 *scheduler.AnnounceTaskRequest, arg2 ...grpc.CallOption) error

AnnounceTask mocks base method.

func (*MockV1) Close added in v2.0.9

func (m *MockV1) Close() error

Close mocks base method.

func (*MockV1) EXPECT added in v2.0.9

func (m *MockV1) EXPECT() *MockV1MockRecorder

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

func (*MockV1) LeaveHost added in v2.0.9

func (m *MockV1) LeaveHost(arg0 context.Context, arg1 *scheduler.LeaveHostRequest, arg2 ...grpc.CallOption) error

LeaveHost mocks base method.

func (*MockV1) LeaveTask added in v2.0.9

func (m *MockV1) LeaveTask(arg0 context.Context, arg1 *scheduler.PeerTarget, arg2 ...grpc.CallOption) error

LeaveTask mocks base method.

func (*MockV1) RegisterPeerTask added in v2.0.9

func (m *MockV1) RegisterPeerTask(arg0 context.Context, arg1 *scheduler.PeerTaskRequest, arg2 ...grpc.CallOption) (*scheduler.RegisterResult, error)

RegisterPeerTask mocks base method.

func (*MockV1) ReportPeerResult added in v2.0.9

func (m *MockV1) ReportPeerResult(arg0 context.Context, arg1 *scheduler.PeerResult, arg2 ...grpc.CallOption) error

ReportPeerResult mocks base method.

func (*MockV1) ReportPieceResult added in v2.0.9

ReportPieceResult mocks base method.

func (*MockV1) StatTask added in v2.0.9

func (m *MockV1) StatTask(arg0 context.Context, arg1 *scheduler.StatTaskRequest, arg2 ...grpc.CallOption) (*scheduler.Task, error)

StatTask mocks base method.

type MockV1MockRecorder added in v2.0.9

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

MockV1MockRecorder is the mock recorder for MockV1.

func (*MockV1MockRecorder) AnnounceHost added in v2.0.9

func (mr *MockV1MockRecorder) AnnounceHost(arg0, arg1 any, arg2 ...any) *gomock.Call

AnnounceHost indicates an expected call of AnnounceHost.

func (*MockV1MockRecorder) AnnounceTask added in v2.0.9

func (mr *MockV1MockRecorder) AnnounceTask(arg0, arg1 any, arg2 ...any) *gomock.Call

AnnounceTask indicates an expected call of AnnounceTask.

func (*MockV1MockRecorder) Close added in v2.0.9

func (mr *MockV1MockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockV1MockRecorder) LeaveHost added in v2.0.9

func (mr *MockV1MockRecorder) LeaveHost(arg0, arg1 any, arg2 ...any) *gomock.Call

LeaveHost indicates an expected call of LeaveHost.

func (*MockV1MockRecorder) LeaveTask added in v2.0.9

func (mr *MockV1MockRecorder) LeaveTask(arg0, arg1 any, arg2 ...any) *gomock.Call

LeaveTask indicates an expected call of LeaveTask.

func (*MockV1MockRecorder) RegisterPeerTask added in v2.0.9

func (mr *MockV1MockRecorder) RegisterPeerTask(arg0, arg1 any, arg2 ...any) *gomock.Call

RegisterPeerTask indicates an expected call of RegisterPeerTask.

func (*MockV1MockRecorder) ReportPeerResult added in v2.0.9

func (mr *MockV1MockRecorder) ReportPeerResult(arg0, arg1 any, arg2 ...any) *gomock.Call

ReportPeerResult indicates an expected call of ReportPeerResult.

func (*MockV1MockRecorder) ReportPieceResult added in v2.0.9

func (mr *MockV1MockRecorder) ReportPieceResult(arg0, arg1 any, arg2 ...any) *gomock.Call

ReportPieceResult indicates an expected call of ReportPieceResult.

func (*MockV1MockRecorder) StatTask added in v2.0.9

func (mr *MockV1MockRecorder) StatTask(arg0, arg1 any, arg2 ...any) *gomock.Call

StatTask indicates an expected call of StatTask.

type MockV2 added in v2.0.9

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

MockV2 is a mock of V2 interface.

func NewMockV2 added in v2.0.9

func NewMockV2(ctrl *gomock.Controller) *MockV2

NewMockV2 creates a new mock instance.

func (*MockV2) AnnounceHost added in v2.0.9

func (m *MockV2) AnnounceHost(arg0 context.Context, arg1 *scheduler.AnnounceHostRequest, arg2 ...grpc.CallOption) error

AnnounceHost mocks base method.

func (*MockV2) AnnouncePeer added in v2.0.9

func (m *MockV2) AnnouncePeer(arg0 context.Context, arg1 string, arg2 ...grpc.CallOption) (scheduler.Scheduler_AnnouncePeerClient, error)

AnnouncePeer mocks base method.

func (*MockV2) Close added in v2.0.9

func (m *MockV2) Close() error

Close mocks base method.

func (*MockV2) DeleteHost added in v2.1.49

func (m *MockV2) DeleteHost(arg0 context.Context, arg1 *scheduler.DeleteHostRequest, arg2 ...grpc.CallOption) error

DeleteHost mocks base method.

func (*MockV2) DeletePeer added in v2.1.49

func (m *MockV2) DeletePeer(arg0 context.Context, arg1 *scheduler.DeletePeerRequest, arg2 ...grpc.CallOption) error

DeletePeer mocks base method.

func (*MockV2) DeleteTask added in v2.1.49

func (m *MockV2) DeleteTask(arg0 context.Context, arg1 *scheduler.DeleteTaskRequest, arg2 ...grpc.CallOption) error

DeleteTask mocks base method.

func (*MockV2) EXPECT added in v2.0.9

func (m *MockV2) EXPECT() *MockV2MockRecorder

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

func (*MockV2) ListHosts added in v2.1.62

func (m *MockV2) ListHosts(ctx context.Context, taskID string, opts ...grpc.CallOption) (*scheduler.ListHostsResponse, error)

ListHosts mocks base method.

func (*MockV2) StatPeer added in v2.0.9

func (m *MockV2) StatPeer(arg0 context.Context, arg1 *scheduler.StatPeerRequest, arg2 ...grpc.CallOption) (*common.Peer, error)

StatPeer mocks base method.

func (*MockV2) StatTask added in v2.0.9

func (m *MockV2) StatTask(arg0 context.Context, arg1 *scheduler.StatTaskRequest, arg2 ...grpc.CallOption) (*common.Task, error)

StatTask mocks base method.

type MockV2MockRecorder added in v2.0.9

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

MockV2MockRecorder is the mock recorder for MockV2.

func (*MockV2MockRecorder) AnnounceHost added in v2.0.9

func (mr *MockV2MockRecorder) AnnounceHost(arg0, arg1 any, arg2 ...any) *gomock.Call

AnnounceHost indicates an expected call of AnnounceHost.

func (*MockV2MockRecorder) AnnouncePeer added in v2.0.9

func (mr *MockV2MockRecorder) AnnouncePeer(arg0, arg1 any, arg2 ...any) *gomock.Call

AnnouncePeer indicates an expected call of AnnouncePeer.

func (*MockV2MockRecorder) Close added in v2.0.9

func (mr *MockV2MockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockV2MockRecorder) DeleteHost added in v2.1.49

func (mr *MockV2MockRecorder) DeleteHost(arg0, arg1 any, arg2 ...any) *gomock.Call

DeleteHost indicates an expected call of DeleteHost.

func (*MockV2MockRecorder) DeletePeer added in v2.1.49

func (mr *MockV2MockRecorder) DeletePeer(arg0, arg1 any, arg2 ...any) *gomock.Call

DeletePeer indicates an expected call of DeletePeer.

func (*MockV2MockRecorder) DeleteTask added in v2.1.49

func (mr *MockV2MockRecorder) DeleteTask(arg0, arg1 any, arg2 ...any) *gomock.Call

DeleteTask indicates an expected call of DeleteTask.

func (*MockV2MockRecorder) ListHosts added in v2.1.62

func (mr *MockV2MockRecorder) ListHosts(ctx, taskID any, opts ...any) *gomock.Call

ListHosts indicates an expected call of ListHosts.

func (*MockV2MockRecorder) StatPeer added in v2.0.9

func (mr *MockV2MockRecorder) StatPeer(arg0, arg1 any, arg2 ...any) *gomock.Call

StatPeer indicates an expected call of StatPeer.

func (*MockV2MockRecorder) StatTask added in v2.0.9

func (mr *MockV2MockRecorder) StatTask(arg0, arg1 any, arg2 ...any) *gomock.Call

StatTask indicates an expected call of StatTask.

Jump to

Keyboard shortcuts

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