Documentation
¶
Overview ¶
Package base is a generated GoMock package.
Index ¶
- type MockEngine
- func (m *MockEngine) CreateVolume() error
- func (m *MockEngine) DeleteVolume() error
- func (m *MockEngine) EXPECT() *MockEngineMockRecorder
- func (m *MockEngine) ID() string
- func (m *MockEngine) Setup(ctx runtime.ReconcileRequestContext) (bool, error)
- func (m *MockEngine) Shutdown() error
- func (m *MockEngine) Sync(ctx runtime.ReconcileRequestContext) error
- type MockEngineMockRecorder
- func (mr *MockEngineMockRecorder) CreateVolume() *gomock.Call
- func (mr *MockEngineMockRecorder) DeleteVolume() *gomock.Call
- func (mr *MockEngineMockRecorder) ID() *gomock.Call
- func (mr *MockEngineMockRecorder) Setup(ctx interface{}) *gomock.Call
- func (mr *MockEngineMockRecorder) Shutdown() *gomock.Call
- func (mr *MockEngineMockRecorder) Sync(ctx interface{}) *gomock.Call
- type MockImplement
- func (m *MockImplement) AssignNodesToCache(desiredNum int32) (int32, error)
- func (m *MockImplement) CheckAndUpdateRuntimeStatus() (bool, error)
- func (m *MockImplement) CheckMasterReady() (bool, error)
- func (m *MockImplement) CheckRuntimeHealthy() error
- func (m *MockImplement) CheckWorkersReady() (bool, error)
- func (m *MockImplement) CreateVolume() error
- func (m *MockImplement) DeleteVolume() error
- func (m *MockImplement) EXPECT() *MockImplementMockRecorder
- func (m *MockImplement) FreeStorageBytes() (int64, error)
- func (m *MockImplement) IsSetupDone() (bool, error)
- func (m *MockImplement) PrepareUFS() error
- func (m *MockImplement) SetupMaster() error
- func (m *MockImplement) SetupWorkers() error
- func (m *MockImplement) ShouldCheckUFS() (bool, error)
- func (m *MockImplement) ShouldSetupMaster() (bool, error)
- func (m *MockImplement) ShouldSetupWorkers() (bool, error)
- func (m *MockImplement) Shutdown() error
- func (m *MockImplement) SyncReplicas(ctx runtime.ReconcileRequestContext) error
- func (m *MockImplement) TotalFileNums() (int64, error)
- func (m *MockImplement) TotalStorageBytes() (int64, error)
- func (m *MockImplement) UpdateCacheOfDataset() error
- func (m *MockImplement) UpdateDatasetStatus(phase v1alpha1.DatasetPhase) error
- func (m *MockImplement) UsedStorageBytes() (int64, error)
- type MockImplementMockRecorder
- func (mr *MockImplementMockRecorder) AssignNodesToCache(desiredNum interface{}) *gomock.Call
- func (mr *MockImplementMockRecorder) CheckAndUpdateRuntimeStatus() *gomock.Call
- func (mr *MockImplementMockRecorder) CheckMasterReady() *gomock.Call
- func (mr *MockImplementMockRecorder) CheckRuntimeHealthy() *gomock.Call
- func (mr *MockImplementMockRecorder) CheckWorkersReady() *gomock.Call
- func (mr *MockImplementMockRecorder) CreateVolume() *gomock.Call
- func (mr *MockImplementMockRecorder) DeleteVolume() *gomock.Call
- func (mr *MockImplementMockRecorder) FreeStorageBytes() *gomock.Call
- func (mr *MockImplementMockRecorder) IsSetupDone() *gomock.Call
- func (mr *MockImplementMockRecorder) PrepareUFS() *gomock.Call
- func (mr *MockImplementMockRecorder) SetupMaster() *gomock.Call
- func (mr *MockImplementMockRecorder) SetupWorkers() *gomock.Call
- func (mr *MockImplementMockRecorder) ShouldCheckUFS() *gomock.Call
- func (mr *MockImplementMockRecorder) ShouldSetupMaster() *gomock.Call
- func (mr *MockImplementMockRecorder) ShouldSetupWorkers() *gomock.Call
- func (mr *MockImplementMockRecorder) Shutdown() *gomock.Call
- func (mr *MockImplementMockRecorder) SyncReplicas(ctx interface{}) *gomock.Call
- func (mr *MockImplementMockRecorder) TotalFileNums() *gomock.Call
- func (mr *MockImplementMockRecorder) TotalStorageBytes() *gomock.Call
- func (mr *MockImplementMockRecorder) UpdateCacheOfDataset() *gomock.Call
- func (mr *MockImplementMockRecorder) UpdateDatasetStatus(phase interface{}) *gomock.Call
- func (mr *MockImplementMockRecorder) UsedStorageBytes() *gomock.Call
- type MockUnderFileSystemService
- func (m *MockUnderFileSystemService) EXPECT() *MockUnderFileSystemServiceMockRecorder
- func (m *MockUnderFileSystemService) FreeStorageBytes() (int64, error)
- func (m *MockUnderFileSystemService) TotalFileNums() (int64, error)
- func (m *MockUnderFileSystemService) TotalStorageBytes() (int64, error)
- func (m *MockUnderFileSystemService) UsedStorageBytes() (int64, error)
- type MockUnderFileSystemServiceMockRecorder
- func (mr *MockUnderFileSystemServiceMockRecorder) FreeStorageBytes() *gomock.Call
- func (mr *MockUnderFileSystemServiceMockRecorder) TotalFileNums() *gomock.Call
- func (mr *MockUnderFileSystemServiceMockRecorder) TotalStorageBytes() *gomock.Call
- func (mr *MockUnderFileSystemServiceMockRecorder) UsedStorageBytes() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEngine ¶
type MockEngine struct {
// contains filtered or unexported fields
}
MockEngine is a mock of Engine interface
func NewMockEngine ¶
func NewMockEngine(ctrl *gomock.Controller) *MockEngine
NewMockEngine creates a new mock instance
func (*MockEngine) CreateVolume ¶
func (m *MockEngine) CreateVolume() error
CreateVolume mocks base method
func (*MockEngine) DeleteVolume ¶
func (m *MockEngine) DeleteVolume() error
DeleteVolume mocks base method
func (*MockEngine) EXPECT ¶
func (m *MockEngine) EXPECT() *MockEngineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockEngine) Setup ¶
func (m *MockEngine) Setup(ctx runtime.ReconcileRequestContext) (bool, error)
Setup mocks base method
func (*MockEngine) Sync ¶
func (m *MockEngine) Sync(ctx runtime.ReconcileRequestContext) error
Sync mocks base method
type MockEngineMockRecorder ¶
type MockEngineMockRecorder struct {
// contains filtered or unexported fields
}
MockEngineMockRecorder is the mock recorder for MockEngine
func (*MockEngineMockRecorder) CreateVolume ¶
func (mr *MockEngineMockRecorder) CreateVolume() *gomock.Call
CreateVolume indicates an expected call of CreateVolume
func (*MockEngineMockRecorder) DeleteVolume ¶
func (mr *MockEngineMockRecorder) DeleteVolume() *gomock.Call
DeleteVolume indicates an expected call of DeleteVolume
func (*MockEngineMockRecorder) ID ¶
func (mr *MockEngineMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID
func (*MockEngineMockRecorder) Setup ¶
func (mr *MockEngineMockRecorder) Setup(ctx interface{}) *gomock.Call
Setup indicates an expected call of Setup
func (*MockEngineMockRecorder) Shutdown ¶
func (mr *MockEngineMockRecorder) Shutdown() *gomock.Call
Shutdown indicates an expected call of Shutdown
func (*MockEngineMockRecorder) Sync ¶
func (mr *MockEngineMockRecorder) Sync(ctx interface{}) *gomock.Call
Sync indicates an expected call of Sync
type MockImplement ¶
type MockImplement struct {
// contains filtered or unexported fields
}
MockImplement is a mock of Implement interface
func NewMockImplement ¶
func NewMockImplement(ctrl *gomock.Controller) *MockImplement
NewMockImplement creates a new mock instance
func (*MockImplement) AssignNodesToCache ¶
func (m *MockImplement) AssignNodesToCache(desiredNum int32) (int32, error)
AssignNodesToCache mocks base method
func (*MockImplement) CheckAndUpdateRuntimeStatus ¶
func (m *MockImplement) CheckAndUpdateRuntimeStatus() (bool, error)
CheckAndUpdateRuntimeStatus mocks base method
func (*MockImplement) CheckMasterReady ¶
func (m *MockImplement) CheckMasterReady() (bool, error)
CheckMasterReady mocks base method
func (*MockImplement) CheckRuntimeHealthy ¶
func (m *MockImplement) CheckRuntimeHealthy() error
CheckRuntimeHealthy mocks base method
func (*MockImplement) CheckWorkersReady ¶
func (m *MockImplement) CheckWorkersReady() (bool, error)
CheckWorkersReady mocks base method
func (*MockImplement) CreateVolume ¶
func (m *MockImplement) CreateVolume() error
CreateVolume mocks base method
func (*MockImplement) DeleteVolume ¶
func (m *MockImplement) DeleteVolume() error
DeleteVolume mocks base method
func (*MockImplement) EXPECT ¶
func (m *MockImplement) EXPECT() *MockImplementMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockImplement) FreeStorageBytes ¶
func (m *MockImplement) FreeStorageBytes() (int64, error)
FreeStorageBytes mocks base method
func (*MockImplement) IsSetupDone ¶
func (m *MockImplement) IsSetupDone() (bool, error)
IsSetupDone mocks base method
func (*MockImplement) PrepareUFS ¶
func (m *MockImplement) PrepareUFS() error
PrepareUFS mocks base method
func (*MockImplement) SetupMaster ¶
func (m *MockImplement) SetupMaster() error
SetupMaster mocks base method
func (*MockImplement) SetupWorkers ¶
func (m *MockImplement) SetupWorkers() error
SetupWorkers mocks base method
func (*MockImplement) ShouldCheckUFS ¶
func (m *MockImplement) ShouldCheckUFS() (bool, error)
ShouldCheckUFS mocks base method
func (*MockImplement) ShouldSetupMaster ¶
func (m *MockImplement) ShouldSetupMaster() (bool, error)
ShouldSetupMaster mocks base method
func (*MockImplement) ShouldSetupWorkers ¶
func (m *MockImplement) ShouldSetupWorkers() (bool, error)
ShouldSetupWorkers mocks base method
func (*MockImplement) Shutdown ¶
func (m *MockImplement) Shutdown() error
Shutdown mocks base method
func (*MockImplement) SyncReplicas ¶
func (m *MockImplement) SyncReplicas(ctx runtime.ReconcileRequestContext) error
SyncReplicas mocks base method
func (*MockImplement) TotalFileNums ¶
func (m *MockImplement) TotalFileNums() (int64, error)
TotalFileNums mocks base method
func (*MockImplement) TotalStorageBytes ¶
func (m *MockImplement) TotalStorageBytes() (int64, error)
TotalStorageBytes mocks base method
func (*MockImplement) UpdateCacheOfDataset ¶
func (m *MockImplement) UpdateCacheOfDataset() error
UpdateCacheOfDataset mocks base method
func (*MockImplement) UpdateDatasetStatus ¶
func (m *MockImplement) UpdateDatasetStatus(phase v1alpha1.DatasetPhase) error
UpdateDatasetStatus mocks base method
func (*MockImplement) UsedStorageBytes ¶
func (m *MockImplement) UsedStorageBytes() (int64, error)
UsedStorageBytes mocks base method
type MockImplementMockRecorder ¶
type MockImplementMockRecorder struct {
// contains filtered or unexported fields
}
MockImplementMockRecorder is the mock recorder for MockImplement
func (*MockImplementMockRecorder) AssignNodesToCache ¶
func (mr *MockImplementMockRecorder) AssignNodesToCache(desiredNum interface{}) *gomock.Call
AssignNodesToCache indicates an expected call of AssignNodesToCache
func (*MockImplementMockRecorder) CheckAndUpdateRuntimeStatus ¶
func (mr *MockImplementMockRecorder) CheckAndUpdateRuntimeStatus() *gomock.Call
CheckAndUpdateRuntimeStatus indicates an expected call of CheckAndUpdateRuntimeStatus
func (*MockImplementMockRecorder) CheckMasterReady ¶
func (mr *MockImplementMockRecorder) CheckMasterReady() *gomock.Call
CheckMasterReady indicates an expected call of CheckMasterReady
func (*MockImplementMockRecorder) CheckRuntimeHealthy ¶
func (mr *MockImplementMockRecorder) CheckRuntimeHealthy() *gomock.Call
CheckRuntimeHealthy indicates an expected call of CheckRuntimeHealthy
func (*MockImplementMockRecorder) CheckWorkersReady ¶
func (mr *MockImplementMockRecorder) CheckWorkersReady() *gomock.Call
CheckWorkersReady indicates an expected call of CheckWorkersReady
func (*MockImplementMockRecorder) CreateVolume ¶
func (mr *MockImplementMockRecorder) CreateVolume() *gomock.Call
CreateVolume indicates an expected call of CreateVolume
func (*MockImplementMockRecorder) DeleteVolume ¶
func (mr *MockImplementMockRecorder) DeleteVolume() *gomock.Call
DeleteVolume indicates an expected call of DeleteVolume
func (*MockImplementMockRecorder) FreeStorageBytes ¶
func (mr *MockImplementMockRecorder) FreeStorageBytes() *gomock.Call
FreeStorageBytes indicates an expected call of FreeStorageBytes
func (*MockImplementMockRecorder) IsSetupDone ¶
func (mr *MockImplementMockRecorder) IsSetupDone() *gomock.Call
IsSetupDone indicates an expected call of IsSetupDone
func (*MockImplementMockRecorder) PrepareUFS ¶
func (mr *MockImplementMockRecorder) PrepareUFS() *gomock.Call
PrepareUFS indicates an expected call of PrepareUFS
func (*MockImplementMockRecorder) SetupMaster ¶
func (mr *MockImplementMockRecorder) SetupMaster() *gomock.Call
SetupMaster indicates an expected call of SetupMaster
func (*MockImplementMockRecorder) SetupWorkers ¶
func (mr *MockImplementMockRecorder) SetupWorkers() *gomock.Call
SetupWorkers indicates an expected call of SetupWorkers
func (*MockImplementMockRecorder) ShouldCheckUFS ¶
func (mr *MockImplementMockRecorder) ShouldCheckUFS() *gomock.Call
ShouldCheckUFS indicates an expected call of ShouldCheckUFS
func (*MockImplementMockRecorder) ShouldSetupMaster ¶
func (mr *MockImplementMockRecorder) ShouldSetupMaster() *gomock.Call
ShouldSetupMaster indicates an expected call of ShouldSetupMaster
func (*MockImplementMockRecorder) ShouldSetupWorkers ¶
func (mr *MockImplementMockRecorder) ShouldSetupWorkers() *gomock.Call
ShouldSetupWorkers indicates an expected call of ShouldSetupWorkers
func (*MockImplementMockRecorder) Shutdown ¶
func (mr *MockImplementMockRecorder) Shutdown() *gomock.Call
Shutdown indicates an expected call of Shutdown
func (*MockImplementMockRecorder) SyncReplicas ¶
func (mr *MockImplementMockRecorder) SyncReplicas(ctx interface{}) *gomock.Call
SyncReplicas indicates an expected call of SyncReplicas
func (*MockImplementMockRecorder) TotalFileNums ¶
func (mr *MockImplementMockRecorder) TotalFileNums() *gomock.Call
TotalFileNums indicates an expected call of TotalFileNums
func (*MockImplementMockRecorder) TotalStorageBytes ¶
func (mr *MockImplementMockRecorder) TotalStorageBytes() *gomock.Call
TotalStorageBytes indicates an expected call of TotalStorageBytes
func (*MockImplementMockRecorder) UpdateCacheOfDataset ¶
func (mr *MockImplementMockRecorder) UpdateCacheOfDataset() *gomock.Call
UpdateCacheOfDataset indicates an expected call of UpdateCacheOfDataset
func (*MockImplementMockRecorder) UpdateDatasetStatus ¶
func (mr *MockImplementMockRecorder) UpdateDatasetStatus(phase interface{}) *gomock.Call
UpdateDatasetStatus indicates an expected call of UpdateDatasetStatus
func (*MockImplementMockRecorder) UsedStorageBytes ¶
func (mr *MockImplementMockRecorder) UsedStorageBytes() *gomock.Call
UsedStorageBytes indicates an expected call of UsedStorageBytes
type MockUnderFileSystemService ¶
type MockUnderFileSystemService struct {
// contains filtered or unexported fields
}
MockUnderFileSystemService is a mock of UnderFileSystemService interface
func NewMockUnderFileSystemService ¶
func NewMockUnderFileSystemService(ctrl *gomock.Controller) *MockUnderFileSystemService
NewMockUnderFileSystemService creates a new mock instance
func (*MockUnderFileSystemService) EXPECT ¶
func (m *MockUnderFileSystemService) EXPECT() *MockUnderFileSystemServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockUnderFileSystemService) FreeStorageBytes ¶
func (m *MockUnderFileSystemService) FreeStorageBytes() (int64, error)
FreeStorageBytes mocks base method
func (*MockUnderFileSystemService) TotalFileNums ¶
func (m *MockUnderFileSystemService) TotalFileNums() (int64, error)
TotalFileNums mocks base method
func (*MockUnderFileSystemService) TotalStorageBytes ¶
func (m *MockUnderFileSystemService) TotalStorageBytes() (int64, error)
TotalStorageBytes mocks base method
func (*MockUnderFileSystemService) UsedStorageBytes ¶
func (m *MockUnderFileSystemService) UsedStorageBytes() (int64, error)
UsedStorageBytes mocks base method
type MockUnderFileSystemServiceMockRecorder ¶
type MockUnderFileSystemServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockUnderFileSystemServiceMockRecorder is the mock recorder for MockUnderFileSystemService
func (*MockUnderFileSystemServiceMockRecorder) FreeStorageBytes ¶
func (mr *MockUnderFileSystemServiceMockRecorder) FreeStorageBytes() *gomock.Call
FreeStorageBytes indicates an expected call of FreeStorageBytes
func (*MockUnderFileSystemServiceMockRecorder) TotalFileNums ¶
func (mr *MockUnderFileSystemServiceMockRecorder) TotalFileNums() *gomock.Call
TotalFileNums indicates an expected call of TotalFileNums
func (*MockUnderFileSystemServiceMockRecorder) TotalStorageBytes ¶
func (mr *MockUnderFileSystemServiceMockRecorder) TotalStorageBytes() *gomock.Call
TotalStorageBytes indicates an expected call of TotalStorageBytes
func (*MockUnderFileSystemServiceMockRecorder) UsedStorageBytes ¶
func (mr *MockUnderFileSystemServiceMockRecorder) UsedStorageBytes() *gomock.Call
UsedStorageBytes indicates an expected call of UsedStorageBytes