Documentation ¶
Overview ¶
Package volumegroup is a generated GoMock package.
Index ¶
- func NewManager(cli client.Client, informersCache runtimecache.Cache) apisv1alpha1.VolumeGroupManager
- type MockVolumeGroupManager
- func (m *MockVolumeGroupManager) EXPECT() *MockVolumeGroupManagerMockRecorder
- func (m *MockVolumeGroupManager) GetLocalVolumeGroupByLocalVolume(nameSpace, lvName string) (*v1alpha1.LocalVolumeGroup, error)
- func (m *MockVolumeGroupManager) GetLocalVolumeGroupByName(nameSpace, lvgName string) (*v1alpha1.LocalVolumeGroup, error)
- func (m *MockVolumeGroupManager) GetLocalVolumeGroupByPVC(pvcName, pvcNamespace string) (*v1alpha1.LocalVolumeGroup, error)
- func (m *MockVolumeGroupManager) Init(stopCh <-chan struct{})
- func (m *MockVolumeGroupManager) ReconcileVolumeGroup(volGroup *v1alpha1.LocalVolumeGroup)
- type MockVolumeGroupManagerMockRecorder
- func (mr *MockVolumeGroupManagerMockRecorder) GetLocalVolumeGroupByLocalVolume(nameSpace, lvName interface{}) *gomock.Call
- func (mr *MockVolumeGroupManagerMockRecorder) GetLocalVolumeGroupByName(nameSpace, lvgName interface{}) *gomock.Call
- func (mr *MockVolumeGroupManagerMockRecorder) GetLocalVolumeGroupByPVC(pvcName, pvcNamespace interface{}) *gomock.Call
- func (mr *MockVolumeGroupManagerMockRecorder) Init(stopCh interface{}) *gomock.Call
- func (mr *MockVolumeGroupManagerMockRecorder) ReconcileVolumeGroup(volGroup interface{}) *gomock.Call
- type MockVolumeScheduler
- func (m *MockVolumeScheduler) Allocate(vol *v1alpha1.LocalVolume) (*v1alpha1.VolumeConfig, error)
- func (m *MockVolumeScheduler) EXPECT() *MockVolumeSchedulerMockRecorder
- func (m *MockVolumeScheduler) GetNodeCandidates(vols []*v1alpha1.LocalVolume) []*v1alpha1.LocalStorageNode
- func (m *MockVolumeScheduler) Init()
- type MockVolumeSchedulerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManager ¶
func NewManager(cli client.Client, informersCache runtimecache.Cache) apisv1alpha1.VolumeGroupManager
Types ¶
type MockVolumeGroupManager ¶
type MockVolumeGroupManager struct {
// contains filtered or unexported fields
}
MockVolumeGroupManager is a mock of VolumeGroupManager interface.
func NewMockVolumeGroupManager ¶
func NewMockVolumeGroupManager(ctrl *gomock.Controller) *MockVolumeGroupManager
NewMockVolumeGroupManager creates a new mock instance.
func (*MockVolumeGroupManager) EXPECT ¶
func (m *MockVolumeGroupManager) EXPECT() *MockVolumeGroupManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVolumeGroupManager) GetLocalVolumeGroupByLocalVolume ¶
func (m *MockVolumeGroupManager) GetLocalVolumeGroupByLocalVolume(nameSpace, lvName string) (*v1alpha1.LocalVolumeGroup, error)
GetLocalVolumeGroupByLocalVolume mocks base method.
func (*MockVolumeGroupManager) GetLocalVolumeGroupByName ¶
func (m *MockVolumeGroupManager) GetLocalVolumeGroupByName(nameSpace, lvgName string) (*v1alpha1.LocalVolumeGroup, error)
GetLocalVolumeGroupByName mocks base method.
func (*MockVolumeGroupManager) GetLocalVolumeGroupByPVC ¶
func (m *MockVolumeGroupManager) GetLocalVolumeGroupByPVC(pvcName, pvcNamespace string) (*v1alpha1.LocalVolumeGroup, error)
GetLocalVolumeGroupByPVC mocks base method.
func (*MockVolumeGroupManager) Init ¶
func (m *MockVolumeGroupManager) Init(stopCh <-chan struct{})
Init mocks base method.
func (*MockVolumeGroupManager) ReconcileVolumeGroup ¶
func (m *MockVolumeGroupManager) ReconcileVolumeGroup(volGroup *v1alpha1.LocalVolumeGroup)
ReconcileVolumeGroup mocks base method.
type MockVolumeGroupManagerMockRecorder ¶
type MockVolumeGroupManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockVolumeGroupManagerMockRecorder is the mock recorder for MockVolumeGroupManager.
func (*MockVolumeGroupManagerMockRecorder) GetLocalVolumeGroupByLocalVolume ¶
func (mr *MockVolumeGroupManagerMockRecorder) GetLocalVolumeGroupByLocalVolume(nameSpace, lvName interface{}) *gomock.Call
GetLocalVolumeGroupByLocalVolume indicates an expected call of GetLocalVolumeGroupByLocalVolume.
func (*MockVolumeGroupManagerMockRecorder) GetLocalVolumeGroupByName ¶
func (mr *MockVolumeGroupManagerMockRecorder) GetLocalVolumeGroupByName(nameSpace, lvgName interface{}) *gomock.Call
GetLocalVolumeGroupByName indicates an expected call of GetLocalVolumeGroupByName.
func (*MockVolumeGroupManagerMockRecorder) GetLocalVolumeGroupByPVC ¶
func (mr *MockVolumeGroupManagerMockRecorder) GetLocalVolumeGroupByPVC(pvcName, pvcNamespace interface{}) *gomock.Call
GetLocalVolumeGroupByPVC indicates an expected call of GetLocalVolumeGroupByPVC.
func (*MockVolumeGroupManagerMockRecorder) Init ¶
func (mr *MockVolumeGroupManagerMockRecorder) Init(stopCh interface{}) *gomock.Call
Init indicates an expected call of Init.
func (*MockVolumeGroupManagerMockRecorder) ReconcileVolumeGroup ¶
func (mr *MockVolumeGroupManagerMockRecorder) ReconcileVolumeGroup(volGroup interface{}) *gomock.Call
ReconcileVolumeGroup indicates an expected call of ReconcileVolumeGroup.
type MockVolumeScheduler ¶
type MockVolumeScheduler struct {
// contains filtered or unexported fields
}
MockVolumeScheduler is a mock of VolumeScheduler interface.
func NewMockVolumeScheduler ¶
func NewMockVolumeScheduler(ctrl *gomock.Controller) *MockVolumeScheduler
NewMockVolumeScheduler creates a new mock instance.
func (*MockVolumeScheduler) Allocate ¶
func (m *MockVolumeScheduler) Allocate(vol *v1alpha1.LocalVolume) (*v1alpha1.VolumeConfig, error)
Allocate mocks base method.
func (*MockVolumeScheduler) EXPECT ¶
func (m *MockVolumeScheduler) EXPECT() *MockVolumeSchedulerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVolumeScheduler) GetNodeCandidates ¶
func (m *MockVolumeScheduler) GetNodeCandidates(vols []*v1alpha1.LocalVolume) []*v1alpha1.LocalStorageNode
GetNodeCandidates mocks base method.
type MockVolumeSchedulerMockRecorder ¶
type MockVolumeSchedulerMockRecorder struct {
// contains filtered or unexported fields
}
MockVolumeSchedulerMockRecorder is the mock recorder for MockVolumeScheduler.
func (*MockVolumeSchedulerMockRecorder) Allocate ¶
func (mr *MockVolumeSchedulerMockRecorder) Allocate(vol interface{}) *gomock.Call
Allocate indicates an expected call of Allocate.
func (*MockVolumeSchedulerMockRecorder) GetNodeCandidates ¶
func (mr *MockVolumeSchedulerMockRecorder) GetNodeCandidates(vols interface{}) *gomock.Call
GetNodeCandidates indicates an expected call of GetNodeCandidates.
func (*MockVolumeSchedulerMockRecorder) Init ¶
func (mr *MockVolumeSchedulerMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init.