Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockV1
- func (m *MockV1) CheckHealth(arg0 context.Context, arg1 ...grpc.CallOption) error
- func (m *MockV1) Close() error
- func (m *MockV1) DeleteTask(arg0 context.Context, arg1 *dfdaemon.DeleteTaskRequest, ...) error
- func (m *MockV1) Download(arg0 context.Context, arg1 *dfdaemon.DownRequest, arg2 ...grpc.CallOption) (dfdaemon.Daemon_DownloadClient, error)
- func (m *MockV1) EXPECT() *MockV1MockRecorder
- func (m *MockV1) ExportTask(arg0 context.Context, arg1 *dfdaemon.ExportTaskRequest, ...) error
- func (m *MockV1) GetPieceTasks(arg0 context.Context, arg1 *common.PieceTaskRequest, arg2 ...grpc.CallOption) (*common.PiecePacket, error)
- func (m *MockV1) ImportTask(arg0 context.Context, arg1 *dfdaemon.ImportTaskRequest, ...) error
- func (m *MockV1) StatTask(arg0 context.Context, arg1 *dfdaemon.StatTaskRequest, arg2 ...grpc.CallOption) error
- func (m *MockV1) SyncPieceTasks(arg0 context.Context, arg1 *common.PieceTaskRequest, arg2 ...grpc.CallOption) (dfdaemon.Daemon_SyncPieceTasksClient, error)
- type MockV1MockRecorder
- func (mr *MockV1MockRecorder) CheckHealth(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockV1MockRecorder) Close() *gomock.Call
- func (mr *MockV1MockRecorder) DeleteTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockV1MockRecorder) Download(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockV1MockRecorder) ExportTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockV1MockRecorder) GetPieceTasks(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockV1MockRecorder) ImportTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockV1MockRecorder) StatTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockV1MockRecorder) SyncPieceTasks(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type MockV2
- func (m *MockV2) Close() error
- func (m *MockV2) DeleteTask(arg0 context.Context, arg1 *dfdaemon.DeleteTaskRequest, ...) error
- func (m *MockV2) DownloadTask(arg0 context.Context, arg1 *dfdaemon.DownloadTaskRequest, ...) error
- func (m *MockV2) EXPECT() *MockV2MockRecorder
- func (m *MockV2) StatTask(arg0 context.Context, arg1 *dfdaemon.StatTaskRequest, arg2 ...grpc.CallOption) (*common.Task, error)
- func (m *MockV2) SyncPieces(arg0 context.Context, arg1 ...grpc.CallOption) (dfdaemon.Dfdaemon_SyncPiecesClient, error)
- func (m *MockV2) UploadTask(arg0 context.Context, arg1 *dfdaemon.UploadTaskRequest, ...) error
- type MockV2MockRecorder
- func (mr *MockV2MockRecorder) Close() *gomock.Call
- func (mr *MockV2MockRecorder) DeleteTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockV2MockRecorder) DownloadTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockV2MockRecorder) StatTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockV2MockRecorder) SyncPieces(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockV2MockRecorder) UploadTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockV1 ¶
type MockV1 struct {
// contains filtered or unexported fields
}
MockV1 is a mock of V1 interface.
func NewMockV1 ¶
func NewMockV1(ctrl *gomock.Controller) *MockV1
NewMockV1 creates a new mock instance.
func (*MockV1) CheckHealth ¶
CheckHealth mocks base method.
func (*MockV1) DeleteTask ¶
func (m *MockV1) DeleteTask(arg0 context.Context, arg1 *dfdaemon.DeleteTaskRequest, arg2 ...grpc.CallOption) error
DeleteTask mocks base method.
func (*MockV1) Download ¶
func (m *MockV1) Download(arg0 context.Context, arg1 *dfdaemon.DownRequest, arg2 ...grpc.CallOption) (dfdaemon.Daemon_DownloadClient, error)
Download mocks base method.
func (*MockV1) EXPECT ¶
func (m *MockV1) EXPECT() *MockV1MockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockV1) ExportTask ¶
func (m *MockV1) ExportTask(arg0 context.Context, arg1 *dfdaemon.ExportTaskRequest, arg2 ...grpc.CallOption) error
ExportTask mocks base method.
func (*MockV1) GetPieceTasks ¶
func (m *MockV1) GetPieceTasks(arg0 context.Context, arg1 *common.PieceTaskRequest, arg2 ...grpc.CallOption) (*common.PiecePacket, error)
GetPieceTasks mocks base method.
func (*MockV1) ImportTask ¶
func (m *MockV1) ImportTask(arg0 context.Context, arg1 *dfdaemon.ImportTaskRequest, arg2 ...grpc.CallOption) error
ImportTask mocks base method.
func (*MockV1) StatTask ¶
func (m *MockV1) StatTask(arg0 context.Context, arg1 *dfdaemon.StatTaskRequest, arg2 ...grpc.CallOption) error
StatTask mocks base method.
func (*MockV1) SyncPieceTasks ¶
func (m *MockV1) SyncPieceTasks(arg0 context.Context, arg1 *common.PieceTaskRequest, arg2 ...grpc.CallOption) (dfdaemon.Daemon_SyncPieceTasksClient, error)
SyncPieceTasks mocks base method.
type MockV1MockRecorder ¶
type MockV1MockRecorder struct {
// contains filtered or unexported fields
}
MockV1MockRecorder is the mock recorder for MockV1.
func (*MockV1MockRecorder) CheckHealth ¶
func (mr *MockV1MockRecorder) CheckHealth(arg0 interface{}, arg1 ...interface{}) *gomock.Call
CheckHealth indicates an expected call of CheckHealth.
func (*MockV1MockRecorder) Close ¶
func (mr *MockV1MockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockV1MockRecorder) DeleteTask ¶
func (mr *MockV1MockRecorder) DeleteTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
DeleteTask indicates an expected call of DeleteTask.
func (*MockV1MockRecorder) Download ¶
func (mr *MockV1MockRecorder) Download(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Download indicates an expected call of Download.
func (*MockV1MockRecorder) ExportTask ¶
func (mr *MockV1MockRecorder) ExportTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ExportTask indicates an expected call of ExportTask.
func (*MockV1MockRecorder) GetPieceTasks ¶
func (mr *MockV1MockRecorder) GetPieceTasks(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetPieceTasks indicates an expected call of GetPieceTasks.
func (*MockV1MockRecorder) ImportTask ¶
func (mr *MockV1MockRecorder) ImportTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ImportTask indicates an expected call of ImportTask.
func (*MockV1MockRecorder) StatTask ¶
func (mr *MockV1MockRecorder) StatTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
StatTask indicates an expected call of StatTask.
func (*MockV1MockRecorder) SyncPieceTasks ¶
func (mr *MockV1MockRecorder) SyncPieceTasks(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
SyncPieceTasks indicates an expected call of SyncPieceTasks.
type MockV2 ¶
type MockV2 struct {
// contains filtered or unexported fields
}
MockV2 is a mock of V2 interface.
func NewMockV2 ¶
func NewMockV2(ctrl *gomock.Controller) *MockV2
NewMockV2 creates a new mock instance.
func (*MockV2) DeleteTask ¶
func (m *MockV2) DeleteTask(arg0 context.Context, arg1 *dfdaemon.DeleteTaskRequest, arg2 ...grpc.CallOption) error
DeleteTask mocks base method.
func (*MockV2) DownloadTask ¶
func (m *MockV2) DownloadTask(arg0 context.Context, arg1 *dfdaemon.DownloadTaskRequest, arg2 ...grpc.CallOption) error
DownloadTask mocks base method.
func (*MockV2) EXPECT ¶
func (m *MockV2) EXPECT() *MockV2MockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockV2) StatTask ¶
func (m *MockV2) StatTask(arg0 context.Context, arg1 *dfdaemon.StatTaskRequest, arg2 ...grpc.CallOption) (*common.Task, error)
StatTask mocks base method.
func (*MockV2) SyncPieces ¶
func (m *MockV2) SyncPieces(arg0 context.Context, arg1 ...grpc.CallOption) (dfdaemon.Dfdaemon_SyncPiecesClient, error)
SyncPieces mocks base method.
func (*MockV2) UploadTask ¶
func (m *MockV2) UploadTask(arg0 context.Context, arg1 *dfdaemon.UploadTaskRequest, arg2 ...grpc.CallOption) error
UploadTask mocks base method.
type MockV2MockRecorder ¶
type MockV2MockRecorder struct {
// contains filtered or unexported fields
}
MockV2MockRecorder is the mock recorder for MockV2.
func (*MockV2MockRecorder) Close ¶
func (mr *MockV2MockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockV2MockRecorder) DeleteTask ¶
func (mr *MockV2MockRecorder) DeleteTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
DeleteTask indicates an expected call of DeleteTask.
func (*MockV2MockRecorder) DownloadTask ¶
func (mr *MockV2MockRecorder) DownloadTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
DownloadTask indicates an expected call of DownloadTask.
func (*MockV2MockRecorder) StatTask ¶
func (mr *MockV2MockRecorder) StatTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
StatTask indicates an expected call of StatTask.
func (*MockV2MockRecorder) SyncPieces ¶
func (mr *MockV2MockRecorder) SyncPieces(arg0 interface{}, arg1 ...interface{}) *gomock.Call
SyncPieces indicates an expected call of SyncPieces.
func (*MockV2MockRecorder) UploadTask ¶
func (mr *MockV2MockRecorder) UploadTask(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
UploadTask indicates an expected call of UploadTask.