Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockCDNMgr
- type MockCDNMgrMockRecorder
- type MockGCMgr
- type MockGCMgrMockRecorder
- type MockSeedProgressMgr
- func (m *MockSeedProgressMgr) Clear(arg0 string) error
- func (m *MockSeedProgressMgr) EXPECT() *MockSeedProgressMgrMockRecorder
- func (m *MockSeedProgressMgr) GetPieces(arg0 context.Context, arg1 string) ([]*types.SeedPiece, error)
- func (m *MockSeedProgressMgr) InitSeedProgress(arg0 context.Context, arg1 string)
- func (m *MockSeedProgressMgr) PublishPiece(arg0 context.Context, arg1 string, arg2 *types.SeedPiece) error
- func (m *MockSeedProgressMgr) PublishTask(arg0 context.Context, arg1 string, arg2 *types.SeedTask) error
- func (m *MockSeedProgressMgr) SetTaskMgr(arg0 supervisor.SeedTaskMgr)
- func (m *MockSeedProgressMgr) WatchSeedProgress(arg0 context.Context, arg1 string) (<-chan *types.SeedPiece, error)
- type MockSeedProgressMgrMockRecorder
- func (mr *MockSeedProgressMgrMockRecorder) Clear(arg0 interface{}) *gomock.Call
- func (mr *MockSeedProgressMgrMockRecorder) GetPieces(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSeedProgressMgrMockRecorder) InitSeedProgress(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSeedProgressMgrMockRecorder) PublishPiece(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSeedProgressMgrMockRecorder) PublishTask(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSeedProgressMgrMockRecorder) SetTaskMgr(arg0 interface{}) *gomock.Call
- func (mr *MockSeedProgressMgrMockRecorder) WatchSeedProgress(arg0, arg1 interface{}) *gomock.Call
- type MockSeedTaskMgr
- func (m *MockSeedTaskMgr) Delete(arg0 string) error
- func (m *MockSeedTaskMgr) EXPECT() *MockSeedTaskMgrMockRecorder
- func (m *MockSeedTaskMgr) Exist(arg0 string) (*types.SeedTask, bool)
- func (m *MockSeedTaskMgr) Get(arg0 string) (*types.SeedTask, error)
- func (m *MockSeedTaskMgr) GetPieces(arg0 context.Context, arg1 string) ([]*types.SeedPiece, error)
- func (m *MockSeedTaskMgr) Register(arg0 context.Context, arg1 *types.TaskRegisterRequest) (<-chan *types.SeedPiece, error)
- type MockSeedTaskMgrMockRecorder
- func (mr *MockSeedTaskMgrMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockSeedTaskMgrMockRecorder) Exist(arg0 interface{}) *gomock.Call
- func (mr *MockSeedTaskMgrMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockSeedTaskMgrMockRecorder) GetPieces(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSeedTaskMgrMockRecorder) Register(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCDNMgr ¶
type MockCDNMgr struct {
// contains filtered or unexported fields
}
MockCDNMgr is a mock of CDNMgr interface.
func NewMockCDNMgr ¶
func NewMockCDNMgr(ctrl *gomock.Controller) *MockCDNMgr
NewMockCDNMgr creates a new mock instance.
func (*MockCDNMgr) Delete ¶
func (m *MockCDNMgr) Delete(arg0 string) error
Delete mocks base method.
func (*MockCDNMgr) EXPECT ¶
func (m *MockCDNMgr) EXPECT() *MockCDNMgrMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCDNMgr) TriggerCDN ¶
func (m *MockCDNMgr) TriggerCDN(arg0 context.Context, arg1 *types.SeedTask) (*types.SeedTask, error)
TriggerCDN mocks base method.
func (*MockCDNMgr) TryFreeSpace ¶
func (m *MockCDNMgr) TryFreeSpace(arg0 int64) (bool, error)
TryFreeSpace mocks base method.
type MockCDNMgrMockRecorder ¶
type MockCDNMgrMockRecorder struct {
// contains filtered or unexported fields
}
MockCDNMgrMockRecorder is the mock recorder for MockCDNMgr.
func (*MockCDNMgrMockRecorder) Delete ¶
func (mr *MockCDNMgrMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockCDNMgrMockRecorder) TriggerCDN ¶
func (mr *MockCDNMgrMockRecorder) TriggerCDN(arg0, arg1 interface{}) *gomock.Call
TriggerCDN indicates an expected call of TriggerCDN.
func (*MockCDNMgrMockRecorder) TryFreeSpace ¶
func (mr *MockCDNMgrMockRecorder) TryFreeSpace(arg0 interface{}) *gomock.Call
TryFreeSpace indicates an expected call of TryFreeSpace.
type MockGCMgr ¶
type MockGCMgr struct {
// contains filtered or unexported fields
}
MockGCMgr is a mock of GCMgr interface.
func NewMockGCMgr ¶
func NewMockGCMgr(ctrl *gomock.Controller) *MockGCMgr
NewMockGCMgr creates a new mock instance.
func (*MockGCMgr) EXPECT ¶
func (m *MockGCMgr) EXPECT() *MockGCMgrMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGCMgrMockRecorder ¶
type MockGCMgrMockRecorder struct {
// contains filtered or unexported fields
}
MockGCMgrMockRecorder is the mock recorder for MockGCMgr.
func (*MockGCMgrMockRecorder) GCTask ¶
func (mr *MockGCMgrMockRecorder) GCTask(arg0, arg1 interface{}) *gomock.Call
GCTask indicates an expected call of GCTask.
func (*MockGCMgrMockRecorder) StartGC ¶
func (mr *MockGCMgrMockRecorder) StartGC(arg0 interface{}) *gomock.Call
StartGC indicates an expected call of StartGC.
type MockSeedProgressMgr ¶
type MockSeedProgressMgr struct {
// contains filtered or unexported fields
}
MockSeedProgressMgr is a mock of SeedProgressMgr interface.
func NewMockSeedProgressMgr ¶
func NewMockSeedProgressMgr(ctrl *gomock.Controller) *MockSeedProgressMgr
NewMockSeedProgressMgr creates a new mock instance.
func (*MockSeedProgressMgr) Clear ¶
func (m *MockSeedProgressMgr) Clear(arg0 string) error
Clear mocks base method.
func (*MockSeedProgressMgr) EXPECT ¶
func (m *MockSeedProgressMgr) EXPECT() *MockSeedProgressMgrMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSeedProgressMgr) GetPieces ¶
func (m *MockSeedProgressMgr) GetPieces(arg0 context.Context, arg1 string) ([]*types.SeedPiece, error)
GetPieces mocks base method.
func (*MockSeedProgressMgr) InitSeedProgress ¶
func (m *MockSeedProgressMgr) InitSeedProgress(arg0 context.Context, arg1 string)
InitSeedProgress mocks base method.
func (*MockSeedProgressMgr) PublishPiece ¶
func (m *MockSeedProgressMgr) PublishPiece(arg0 context.Context, arg1 string, arg2 *types.SeedPiece) error
PublishPiece mocks base method.
func (*MockSeedProgressMgr) PublishTask ¶
func (m *MockSeedProgressMgr) PublishTask(arg0 context.Context, arg1 string, arg2 *types.SeedTask) error
PublishTask mocks base method.
func (*MockSeedProgressMgr) SetTaskMgr ¶
func (m *MockSeedProgressMgr) SetTaskMgr(arg0 supervisor.SeedTaskMgr)
SetTaskMgr mocks base method.
func (*MockSeedProgressMgr) WatchSeedProgress ¶
func (m *MockSeedProgressMgr) WatchSeedProgress(arg0 context.Context, arg1 string) (<-chan *types.SeedPiece, error)
WatchSeedProgress mocks base method.
type MockSeedProgressMgrMockRecorder ¶
type MockSeedProgressMgrMockRecorder struct {
// contains filtered or unexported fields
}
MockSeedProgressMgrMockRecorder is the mock recorder for MockSeedProgressMgr.
func (*MockSeedProgressMgrMockRecorder) Clear ¶
func (mr *MockSeedProgressMgrMockRecorder) Clear(arg0 interface{}) *gomock.Call
Clear indicates an expected call of Clear.
func (*MockSeedProgressMgrMockRecorder) GetPieces ¶
func (mr *MockSeedProgressMgrMockRecorder) GetPieces(arg0, arg1 interface{}) *gomock.Call
GetPieces indicates an expected call of GetPieces.
func (*MockSeedProgressMgrMockRecorder) InitSeedProgress ¶
func (mr *MockSeedProgressMgrMockRecorder) InitSeedProgress(arg0, arg1 interface{}) *gomock.Call
InitSeedProgress indicates an expected call of InitSeedProgress.
func (*MockSeedProgressMgrMockRecorder) PublishPiece ¶
func (mr *MockSeedProgressMgrMockRecorder) PublishPiece(arg0, arg1, arg2 interface{}) *gomock.Call
PublishPiece indicates an expected call of PublishPiece.
func (*MockSeedProgressMgrMockRecorder) PublishTask ¶
func (mr *MockSeedProgressMgrMockRecorder) PublishTask(arg0, arg1, arg2 interface{}) *gomock.Call
PublishTask indicates an expected call of PublishTask.
func (*MockSeedProgressMgrMockRecorder) SetTaskMgr ¶
func (mr *MockSeedProgressMgrMockRecorder) SetTaskMgr(arg0 interface{}) *gomock.Call
SetTaskMgr indicates an expected call of SetTaskMgr.
func (*MockSeedProgressMgrMockRecorder) WatchSeedProgress ¶
func (mr *MockSeedProgressMgrMockRecorder) WatchSeedProgress(arg0, arg1 interface{}) *gomock.Call
WatchSeedProgress indicates an expected call of WatchSeedProgress.
type MockSeedTaskMgr ¶
type MockSeedTaskMgr struct {
// contains filtered or unexported fields
}
MockSeedTaskMgr is a mock of SeedTaskMgr interface.
func NewMockSeedTaskMgr ¶
func NewMockSeedTaskMgr(ctrl *gomock.Controller) *MockSeedTaskMgr
NewMockSeedTaskMgr creates a new mock instance.
func (*MockSeedTaskMgr) Delete ¶
func (m *MockSeedTaskMgr) Delete(arg0 string) error
Delete mocks base method.
func (*MockSeedTaskMgr) EXPECT ¶
func (m *MockSeedTaskMgr) EXPECT() *MockSeedTaskMgrMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSeedTaskMgr) Exist ¶
func (m *MockSeedTaskMgr) Exist(arg0 string) (*types.SeedTask, bool)
Exist mocks base method.
func (*MockSeedTaskMgr) Get ¶
func (m *MockSeedTaskMgr) Get(arg0 string) (*types.SeedTask, error)
Get mocks base method.
func (*MockSeedTaskMgr) Register ¶
func (m *MockSeedTaskMgr) Register(arg0 context.Context, arg1 *types.TaskRegisterRequest) (<-chan *types.SeedPiece, error)
Register mocks base method.
type MockSeedTaskMgrMockRecorder ¶
type MockSeedTaskMgrMockRecorder struct {
// contains filtered or unexported fields
}
MockSeedTaskMgrMockRecorder is the mock recorder for MockSeedTaskMgr.
func (*MockSeedTaskMgrMockRecorder) Delete ¶
func (mr *MockSeedTaskMgrMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSeedTaskMgrMockRecorder) Exist ¶
func (mr *MockSeedTaskMgrMockRecorder) Exist(arg0 interface{}) *gomock.Call
Exist indicates an expected call of Exist.
func (*MockSeedTaskMgrMockRecorder) Get ¶
func (mr *MockSeedTaskMgrMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockSeedTaskMgrMockRecorder) GetPieces ¶
func (mr *MockSeedTaskMgrMockRecorder) GetPieces(arg0, arg1 interface{}) *gomock.Call
GetPieces indicates an expected call of GetPieces.
func (*MockSeedTaskMgrMockRecorder) Register ¶
func (mr *MockSeedTaskMgrMockRecorder) Register(arg0, arg1 interface{}) *gomock.Call
Register indicates an expected call of Register.