Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockManager
- func (m *MockManager) AppendPieceMetaData(arg0 string, arg1 *storage.PieceMetaRecord) error
- func (m *MockManager) CreateUploadLink(arg0 string) error
- func (m *MockManager) DeleteTask(arg0 string) error
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) Initialize(arg0 supervisor.SeedTaskMgr)
- func (m *MockManager) ReadDownloadFile(arg0 string) (io.ReadCloser, error)
- func (m *MockManager) ReadFileMetaData(arg0 string) (*storage.FileMetaData, error)
- func (m *MockManager) ReadPieceMetaRecords(arg0 string) ([]*storage.PieceMetaRecord, error)
- func (m *MockManager) ResetRepo(arg0 *types.SeedTask) error
- func (m *MockManager) StatDownloadFile(arg0 string) (*storedriver.StorageInfo, error)
- func (m *MockManager) TryFreeSpace(arg0 int64) (bool, error)
- func (m *MockManager) WriteDownloadFile(arg0 string, arg1, arg2 int64, arg3 io.Reader) error
- func (m *MockManager) WriteFileMetaData(arg0 string, arg1 *storage.FileMetaData) error
- func (m *MockManager) WritePieceMetaRecords(arg0 string, arg1 []*storage.PieceMetaRecord) error
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) AppendPieceMetaData(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) CreateUploadLink(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) DeleteTask(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) Initialize(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) ReadDownloadFile(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) ReadFileMetaData(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) ReadPieceMetaRecords(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) ResetRepo(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) StatDownloadFile(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) TryFreeSpace(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) WriteDownloadFile(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) WriteFileMetaData(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) WritePieceMetaRecords(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) AppendPieceMetaData ¶
func (m *MockManager) AppendPieceMetaData(arg0 string, arg1 *storage.PieceMetaRecord) error
AppendPieceMetaData mocks base method.
func (*MockManager) CreateUploadLink ¶
func (m *MockManager) CreateUploadLink(arg0 string) error
CreateUploadLink mocks base method.
func (*MockManager) DeleteTask ¶
func (m *MockManager) DeleteTask(arg0 string) error
DeleteTask mocks base method.
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) Initialize ¶
func (m *MockManager) Initialize(arg0 supervisor.SeedTaskMgr)
Initialize mocks base method.
func (*MockManager) ReadDownloadFile ¶
func (m *MockManager) ReadDownloadFile(arg0 string) (io.ReadCloser, error)
ReadDownloadFile mocks base method.
func (*MockManager) ReadFileMetaData ¶
func (m *MockManager) ReadFileMetaData(arg0 string) (*storage.FileMetaData, error)
ReadFileMetaData mocks base method.
func (*MockManager) ReadPieceMetaRecords ¶
func (m *MockManager) ReadPieceMetaRecords(arg0 string) ([]*storage.PieceMetaRecord, error)
ReadPieceMetaRecords mocks base method.
func (*MockManager) ResetRepo ¶
func (m *MockManager) ResetRepo(arg0 *types.SeedTask) error
ResetRepo mocks base method.
func (*MockManager) StatDownloadFile ¶
func (m *MockManager) StatDownloadFile(arg0 string) (*storedriver.StorageInfo, error)
StatDownloadFile mocks base method.
func (*MockManager) TryFreeSpace ¶
func (m *MockManager) TryFreeSpace(arg0 int64) (bool, error)
TryFreeSpace mocks base method.
func (*MockManager) WriteDownloadFile ¶
WriteDownloadFile mocks base method.
func (*MockManager) WriteFileMetaData ¶
func (m *MockManager) WriteFileMetaData(arg0 string, arg1 *storage.FileMetaData) error
WriteFileMetaData mocks base method.
func (*MockManager) WritePieceMetaRecords ¶
func (m *MockManager) WritePieceMetaRecords(arg0 string, arg1 []*storage.PieceMetaRecord) error
WritePieceMetaRecords mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) AppendPieceMetaData ¶
func (mr *MockManagerMockRecorder) AppendPieceMetaData(arg0, arg1 interface{}) *gomock.Call
AppendPieceMetaData indicates an expected call of AppendPieceMetaData.
func (*MockManagerMockRecorder) CreateUploadLink ¶
func (mr *MockManagerMockRecorder) CreateUploadLink(arg0 interface{}) *gomock.Call
CreateUploadLink indicates an expected call of CreateUploadLink.
func (*MockManagerMockRecorder) DeleteTask ¶
func (mr *MockManagerMockRecorder) DeleteTask(arg0 interface{}) *gomock.Call
DeleteTask indicates an expected call of DeleteTask.
func (*MockManagerMockRecorder) Initialize ¶
func (mr *MockManagerMockRecorder) Initialize(arg0 interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockManagerMockRecorder) ReadDownloadFile ¶
func (mr *MockManagerMockRecorder) ReadDownloadFile(arg0 interface{}) *gomock.Call
ReadDownloadFile indicates an expected call of ReadDownloadFile.
func (*MockManagerMockRecorder) ReadFileMetaData ¶
func (mr *MockManagerMockRecorder) ReadFileMetaData(arg0 interface{}) *gomock.Call
ReadFileMetaData indicates an expected call of ReadFileMetaData.
func (*MockManagerMockRecorder) ReadPieceMetaRecords ¶
func (mr *MockManagerMockRecorder) ReadPieceMetaRecords(arg0 interface{}) *gomock.Call
ReadPieceMetaRecords indicates an expected call of ReadPieceMetaRecords.
func (*MockManagerMockRecorder) ResetRepo ¶
func (mr *MockManagerMockRecorder) ResetRepo(arg0 interface{}) *gomock.Call
ResetRepo indicates an expected call of ResetRepo.
func (*MockManagerMockRecorder) StatDownloadFile ¶
func (mr *MockManagerMockRecorder) StatDownloadFile(arg0 interface{}) *gomock.Call
StatDownloadFile indicates an expected call of StatDownloadFile.
func (*MockManagerMockRecorder) TryFreeSpace ¶
func (mr *MockManagerMockRecorder) TryFreeSpace(arg0 interface{}) *gomock.Call
TryFreeSpace indicates an expected call of TryFreeSpace.
func (*MockManagerMockRecorder) WriteDownloadFile ¶
func (mr *MockManagerMockRecorder) WriteDownloadFile(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
WriteDownloadFile indicates an expected call of WriteDownloadFile.
func (*MockManagerMockRecorder) WriteFileMetaData ¶
func (mr *MockManagerMockRecorder) WriteFileMetaData(arg0, arg1 interface{}) *gomock.Call
WriteFileMetaData indicates an expected call of WriteFileMetaData.
func (*MockManagerMockRecorder) WritePieceMetaRecords ¶
func (mr *MockManagerMockRecorder) WritePieceMetaRecords(arg0, arg1 interface{}) *gomock.Call
WritePieceMetaRecords indicates an expected call of WritePieceMetaRecords.