Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockDaemonClient
- func (m *MockDaemonClient) CheckHealth(ctx context.Context, target dfnet.NetAddr, opts ...grpc.CallOption) error
- func (m *MockDaemonClient) Close() error
- func (m *MockDaemonClient) DeleteTask(ctx context.Context, req *dfdaemon.DeleteTaskRequest, opts ...grpc.CallOption) error
- func (m *MockDaemonClient) Download(ctx context.Context, req *dfdaemon.DownRequest, opts ...grpc.CallOption) (*client.DownResultStream, error)
- func (m *MockDaemonClient) EXPECT() *MockDaemonClientMockRecorder
- func (m *MockDaemonClient) ExportTask(ctx context.Context, req *dfdaemon.ExportTaskRequest, opts ...grpc.CallOption) error
- func (m *MockDaemonClient) GetPieceTasks(ctx context.Context, addr dfnet.NetAddr, ptr *base.PieceTaskRequest, ...) (*base.PiecePacket, error)
- func (m *MockDaemonClient) ImportTask(ctx context.Context, req *dfdaemon.ImportTaskRequest, opts ...grpc.CallOption) error
- func (m *MockDaemonClient) StatTask(ctx context.Context, req *dfdaemon.StatTaskRequest, opts ...grpc.CallOption) error
- func (m *MockDaemonClient) SyncPieceTasks(ctx context.Context, addr dfnet.NetAddr, ptr *base.PieceTaskRequest, ...) (dfdaemon.Daemon_SyncPieceTasksClient, error)
- type MockDaemonClientMockRecorder
- func (mr *MockDaemonClientMockRecorder) CheckHealth(ctx, target interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) Close() *gomock.Call
- func (mr *MockDaemonClientMockRecorder) DeleteTask(ctx, req interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) Download(ctx, req interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) ExportTask(ctx, req interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) GetPieceTasks(ctx, addr, ptr interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) ImportTask(ctx, req interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) StatTask(ctx, req interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockDaemonClientMockRecorder) SyncPieceTasks(ctx, addr, ptr interface{}, opts ...interface{}) *gomock.Call
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) 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 ¶
func (m *MockDaemonClient) Download(ctx context.Context, req *dfdaemon.DownRequest, opts ...grpc.CallOption) (*client.DownResultStream, error)
Download mocks base method.
func (*MockDaemonClient) EXPECT ¶
func (m *MockDaemonClient) EXPECT() *MockDaemonClientMockRecorder
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
func (m *MockDaemonClient) SyncPieceTasks(ctx context.Context, addr dfnet.NetAddr, ptr *base.PieceTaskRequest, opts ...grpc.CallOption) (dfdaemon.Daemon_SyncPieceTasksClient, error)
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 ¶
func (mr *MockDaemonClientMockRecorder) Close() *gomock.Call
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.