mocks

package
v2.0.5-beta.5 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 6 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) AnnounceTask added in v2.0.3

func (m *MockClient) AnnounceTask(arg0 context.Context, arg1 *scheduler.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) GetState added in v2.0.3

func (m *MockClient) GetState() []dfnet.NetAddr

GetState mocks base method.

func (*MockClient) LeaveTask added in v2.0.3

func (m *MockClient) LeaveTask(arg0 context.Context, arg1 *scheduler.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 *scheduler.PeerTaskRequest, arg2 ...grpc.CallOption) (*scheduler.RegisterResult, error)

RegisterPeerTask mocks base method.

func (*MockClient) ReportPeerResult added in v2.0.3

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

ReportPeerResult mocks base method.

func (*MockClient) ReportPieceResult added in v2.0.3

ReportPieceResult mocks base method.

func (*MockClient) StatTask added in v2.0.3

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

StatTask mocks base method.

func (*MockClient) UpdateState added in v2.0.3

func (m *MockClient) UpdateState(arg0 []dfnet.NetAddr)

UpdateState 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) 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) GetState added in v2.0.3

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

GetState indicates an expected call of GetState.

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.

func (*MockClientMockRecorder) UpdateState added in v2.0.3

func (mr *MockClientMockRecorder) UpdateState(arg0 interface{}) *gomock.Call

UpdateState indicates an expected call of UpdateState.

Jump to

Keyboard shortcuts

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