mocks

package
v2.0.4-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 8 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 MockDaemonClient

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

MockDaemonClient is a mock of DaemonClient interface.

func NewMockDaemonClient

func NewMockDaemonClient(ctrl *gomock.Controller) *MockDaemonClient

NewMockDaemonClient creates a new mock instance.

func (*MockDaemonClient) CheckHealth

func (m *MockDaemonClient) CheckHealth(ctx context.Context, target dfnet.NetAddr, opts ...grpc.CallOption) error

CheckHealth mocks base method.

func (*MockDaemonClient) Close

func (m *MockDaemonClient) Close() error

Close mocks base method.

func (*MockDaemonClient) DeleteTask added in v2.0.4

func (m *MockDaemonClient) DeleteTask(ctx context.Context, req *dfdaemon.DeleteTaskRequest, opts ...grpc.CallOption) error

DeleteTask mocks base method.

func (*MockDaemonClient) Download

Download mocks base method.

func (*MockDaemonClient) EXPECT

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

func (*MockDaemonClient) ExportTask added in v2.0.4

func (m *MockDaemonClient) ExportTask(ctx context.Context, req *dfdaemon.ExportTaskRequest, opts ...grpc.CallOption) error

ExportTask mocks base method.

func (*MockDaemonClient) GetPieceTasks

func (m *MockDaemonClient) GetPieceTasks(ctx context.Context, addr dfnet.NetAddr, ptr *base.PieceTaskRequest, opts ...grpc.CallOption) (*base.PiecePacket, error)

GetPieceTasks mocks base method.

func (*MockDaemonClient) ImportTask added in v2.0.4

func (m *MockDaemonClient) ImportTask(ctx context.Context, req *dfdaemon.ImportTaskRequest, opts ...grpc.CallOption) error

ImportTask mocks base method.

func (*MockDaemonClient) StatTask added in v2.0.4

func (m *MockDaemonClient) StatTask(ctx context.Context, req *dfdaemon.StatTaskRequest, opts ...grpc.CallOption) error

StatTask mocks base method.

func (*MockDaemonClient) SyncPieceTasks added in v2.0.4

SyncPieceTasks mocks base method.

type MockDaemonClientMockRecorder

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

MockDaemonClientMockRecorder is the mock recorder for MockDaemonClient.

func (*MockDaemonClientMockRecorder) CheckHealth

func (mr *MockDaemonClientMockRecorder) CheckHealth(ctx, target interface{}, opts ...interface{}) *gomock.Call

CheckHealth indicates an expected call of CheckHealth.

func (*MockDaemonClientMockRecorder) Close

Close indicates an expected call of Close.

func (*MockDaemonClientMockRecorder) DeleteTask added in v2.0.4

func (mr *MockDaemonClientMockRecorder) DeleteTask(ctx, req interface{}, opts ...interface{}) *gomock.Call

DeleteTask indicates an expected call of DeleteTask.

func (*MockDaemonClientMockRecorder) Download

func (mr *MockDaemonClientMockRecorder) Download(ctx, req interface{}, opts ...interface{}) *gomock.Call

Download indicates an expected call of Download.

func (*MockDaemonClientMockRecorder) ExportTask added in v2.0.4

func (mr *MockDaemonClientMockRecorder) ExportTask(ctx, req interface{}, opts ...interface{}) *gomock.Call

ExportTask indicates an expected call of ExportTask.

func (*MockDaemonClientMockRecorder) GetPieceTasks

func (mr *MockDaemonClientMockRecorder) GetPieceTasks(ctx, addr, ptr interface{}, opts ...interface{}) *gomock.Call

GetPieceTasks indicates an expected call of GetPieceTasks.

func (*MockDaemonClientMockRecorder) ImportTask added in v2.0.4

func (mr *MockDaemonClientMockRecorder) ImportTask(ctx, req interface{}, opts ...interface{}) *gomock.Call

ImportTask indicates an expected call of ImportTask.

func (*MockDaemonClientMockRecorder) StatTask added in v2.0.4

func (mr *MockDaemonClientMockRecorder) StatTask(ctx, req interface{}, opts ...interface{}) *gomock.Call

StatTask indicates an expected call of StatTask.

func (*MockDaemonClientMockRecorder) SyncPieceTasks added in v2.0.4

func (mr *MockDaemonClientMockRecorder) SyncPieceTasks(ctx, addr, ptr interface{}, opts ...interface{}) *gomock.Call

SyncPieceTasks indicates an expected call of SyncPieceTasks.

Jump to

Keyboard shortcuts

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