mocks

package
v2.0.8-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 5 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 MockClient added in v2.0.3

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

MockClient is a mock of Client interface.

func NewMockClient added in v2.0.3

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) AnnounceHost added in v2.0.8

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

AnnounceHost mocks base method.

func (*MockClient) AnnounceTask added in v2.0.3

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

AnnounceTask mocks base method.

func (*MockClient) Close added in v2.0.3

func (m *MockClient) Close() error

Close mocks base method.

func (*MockClient) EXPECT added in v2.0.3

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) LeaveHost added in v2.0.8

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

LeaveHost mocks base method.

func (*MockClient) LeaveTask added in v2.0.3

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

LeaveTask mocks base method.

func (*MockClient) RegisterPeerTask added in v2.0.3

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

RegisterPeerTask mocks base method.

func (*MockClient) ReportPeerResult added in v2.0.3

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

ReportPeerResult mocks base method.

func (*MockClient) ReportPieceResult added in v2.0.3

func (m *MockClient) ReportPieceResult(arg0 context.Context, arg1 *v1.PeerTaskRequest, arg2 ...grpc.CallOption) (v1.Scheduler_ReportPieceResultClient, error)

ReportPieceResult mocks base method.

func (*MockClient) StatTask added in v2.0.3

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

StatTask mocks base method.

type MockClientMockRecorder added in v2.0.3

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) AnnounceHost added in v2.0.8

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

AnnounceHost indicates an expected call of AnnounceHost.

func (*MockClientMockRecorder) AnnounceTask added in v2.0.3

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

AnnounceTask indicates an expected call of AnnounceTask.

func (*MockClientMockRecorder) Close added in v2.0.3

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

Close indicates an expected call of Close.

func (*MockClientMockRecorder) LeaveHost added in v2.0.8

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

LeaveHost indicates an expected call of LeaveHost.

func (*MockClientMockRecorder) LeaveTask added in v2.0.3

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

LeaveTask indicates an expected call of LeaveTask.

func (*MockClientMockRecorder) RegisterPeerTask added in v2.0.3

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

RegisterPeerTask indicates an expected call of RegisterPeerTask.

func (*MockClientMockRecorder) ReportPeerResult added in v2.0.3

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

ReportPeerResult indicates an expected call of ReportPeerResult.

func (*MockClientMockRecorder) ReportPieceResult added in v2.0.3

func (mr *MockClientMockRecorder) ReportPieceResult(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ReportPieceResult indicates an expected call of ReportPieceResult.

func (*MockClientMockRecorder) StatTask added in v2.0.3

func (mr *MockClientMockRecorder) StatTask(arg0, arg1 interface{}, arg2 ...interface{}) *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