Documentation ¶
Overview ¶
Package controller is a generated GoMock package.
Index ¶
- func New(name string, namespace string, cli client.Client, scheme *runtime.Scheme, ...) (apis.ControllerManager, error)
- type MockControllerManager
- func (m *MockControllerManager) EXPECT() *MockControllerManagerMockRecorder
- func (m *MockControllerManager) ReconcileNode(node *apisv1alpha1.LocalStorageNode)
- func (m *MockControllerManager) ReconcileVolume(vol *apisv1alpha1.LocalVolume)
- func (m *MockControllerManager) ReconcileVolumeConvert(vol *apisv1alpha1.LocalVolumeConvert)
- func (m *MockControllerManager) ReconcileVolumeExpand(vol *apisv1alpha1.LocalVolumeExpand)
- func (m *MockControllerManager) ReconcileVolumeMigrate(vol *apisv1alpha1.LocalVolumeMigrate)
- func (m *MockControllerManager) Run(stopCh <-chan struct{})
- type MockControllerManagerMockRecorder
- func (mr *MockControllerManagerMockRecorder) ReconcileNode(node interface{}) *gomock.Call
- func (mr *MockControllerManagerMockRecorder) ReconcileVolume(vol interface{}) *gomock.Call
- func (mr *MockControllerManagerMockRecorder) ReconcileVolumeConvert(vol interface{}) *gomock.Call
- func (mr *MockControllerManagerMockRecorder) ReconcileVolumeExpand(vol interface{}) *gomock.Call
- func (mr *MockControllerManagerMockRecorder) ReconcileVolumeMigrate(vol interface{}) *gomock.Call
- func (mr *MockControllerManagerMockRecorder) Run(stopCh interface{}) *gomock.Call
- type MockLocalStorageMember
- func (m *MockLocalStorageMember) ConfigureBase(name, namespace string, haSystemConfig apisv1alpha1.SystemConfig, ...) apis.LocalStorageMember
- func (m *MockLocalStorageMember) ConfigureCSIDriver(driverName, sockAddr string) apis.LocalStorageMember
- func (m *MockLocalStorageMember) ConfigureController(scheme *runtime.Scheme) apis.LocalStorageMember
- func (m *MockLocalStorageMember) ConfigureNode() apis.LocalStorageMember
- func (m *MockLocalStorageMember) ConfigureRESTServer(httpPort int) apis.LocalStorageMember
- func (m *MockLocalStorageMember) Controller() apis.ControllerManager
- func (m *MockLocalStorageMember) DriverName() string
- func (m *MockLocalStorageMember) EXPECT() *MockLocalStorageMemberMockRecorder
- func (m *MockLocalStorageMember) Name() string
- func (m *MockLocalStorageMember) Node() apis.NodeManager
- func (m *MockLocalStorageMember) Run(stopCh <-chan struct{})
- func (m *MockLocalStorageMember) Version() string
- type MockLocalStorageMemberMockRecorder
- func (mr *MockLocalStorageMemberMockRecorder) ConfigureBase(name, namespace, haSystemConfig, cli, informersCache interface{}) *gomock.Call
- func (mr *MockLocalStorageMemberMockRecorder) ConfigureCSIDriver(driverName, sockAddr interface{}) *gomock.Call
- func (mr *MockLocalStorageMemberMockRecorder) ConfigureController(scheme interface{}) *gomock.Call
- func (mr *MockLocalStorageMemberMockRecorder) ConfigureNode() *gomock.Call
- func (mr *MockLocalStorageMemberMockRecorder) ConfigureRESTServer(httpPort interface{}) *gomock.Call
- func (mr *MockLocalStorageMemberMockRecorder) Controller() *gomock.Call
- func (mr *MockLocalStorageMemberMockRecorder) DriverName() *gomock.Call
- func (mr *MockLocalStorageMemberMockRecorder) Name() *gomock.Call
- func (mr *MockLocalStorageMemberMockRecorder) Node() *gomock.Call
- func (mr *MockLocalStorageMemberMockRecorder) Run(stopCh interface{}) *gomock.Call
- func (mr *MockLocalStorageMemberMockRecorder) Version() *gomock.Call
- type MockNodeManager
- func (m *MockNodeManager) EXPECT() *MockNodeManagerMockRecorder
- func (m *MockNodeManager) ReconcileVolumeReplica(replica *apisv1alpha1.LocalVolumeReplica)
- func (m *MockNodeManager) Run(stopCh <-chan struct{})
- func (m *MockNodeManager) Storage() *storage.LocalManager
- func (m *MockNodeManager) TakeVolumeReplicaTaskAssignment(vol *apisv1alpha1.LocalVolume)
- type MockNodeManagerMockRecorder
- func (mr *MockNodeManagerMockRecorder) ReconcileVolumeReplica(replica interface{}) *gomock.Call
- func (mr *MockNodeManagerMockRecorder) Run(stopCh interface{}) *gomock.Call
- func (mr *MockNodeManagerMockRecorder) Storage() *gomock.Call
- func (mr *MockNodeManagerMockRecorder) TakeVolumeReplicaTaskAssignment(vol interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(name string, namespace string, cli client.Client, scheme *runtime.Scheme, informersCache runtimecache.Cache, systemConfig apisv1alpha1.SystemConfig) (apis.ControllerManager, error)
New cluster manager
Types ¶
type MockControllerManager ¶
type MockControllerManager struct {
// contains filtered or unexported fields
}
MockControllerManager is a mock of ControllerManager interface.
func NewMockControllerManager ¶
func NewMockControllerManager(ctrl *gomock.Controller) *MockControllerManager
NewMockControllerManager creates a new mock instance.
func (*MockControllerManager) EXPECT ¶
func (m *MockControllerManager) EXPECT() *MockControllerManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockControllerManager) ReconcileNode ¶
func (m *MockControllerManager) ReconcileNode(node *apisv1alpha1.LocalStorageNode)
ReconcileNode mocks base method.
func (*MockControllerManager) ReconcileVolume ¶
func (m *MockControllerManager) ReconcileVolume(vol *apisv1alpha1.LocalVolume)
ReconcileVolume mocks base method.
func (*MockControllerManager) ReconcileVolumeConvert ¶
func (m *MockControllerManager) ReconcileVolumeConvert(vol *apisv1alpha1.LocalVolumeConvert)
ReconcileVolumeConvert mocks base method.
func (*MockControllerManager) ReconcileVolumeExpand ¶
func (m *MockControllerManager) ReconcileVolumeExpand(vol *apisv1alpha1.LocalVolumeExpand)
ReconcileVolumeExpand mocks base method.
func (*MockControllerManager) ReconcileVolumeMigrate ¶
func (m *MockControllerManager) ReconcileVolumeMigrate(vol *apisv1alpha1.LocalVolumeMigrate)
ReconcileVolumeMigrate mocks base method.
func (*MockControllerManager) Run ¶
func (m *MockControllerManager) Run(stopCh <-chan struct{})
Run mocks base method.
type MockControllerManagerMockRecorder ¶
type MockControllerManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockControllerManagerMockRecorder is the mock recorder for MockControllerManager.
func (*MockControllerManagerMockRecorder) ReconcileNode ¶
func (mr *MockControllerManagerMockRecorder) ReconcileNode(node interface{}) *gomock.Call
ReconcileNode indicates an expected call of ReconcileNode.
func (*MockControllerManagerMockRecorder) ReconcileVolume ¶
func (mr *MockControllerManagerMockRecorder) ReconcileVolume(vol interface{}) *gomock.Call
ReconcileVolume indicates an expected call of ReconcileVolume.
func (*MockControllerManagerMockRecorder) ReconcileVolumeConvert ¶
func (mr *MockControllerManagerMockRecorder) ReconcileVolumeConvert(vol interface{}) *gomock.Call
ReconcileVolumeConvert indicates an expected call of ReconcileVolumeConvert.
func (*MockControllerManagerMockRecorder) ReconcileVolumeExpand ¶
func (mr *MockControllerManagerMockRecorder) ReconcileVolumeExpand(vol interface{}) *gomock.Call
ReconcileVolumeExpand indicates an expected call of ReconcileVolumeExpand.
func (*MockControllerManagerMockRecorder) ReconcileVolumeMigrate ¶
func (mr *MockControllerManagerMockRecorder) ReconcileVolumeMigrate(vol interface{}) *gomock.Call
ReconcileVolumeMigrate indicates an expected call of ReconcileVolumeMigrate.
func (*MockControllerManagerMockRecorder) Run ¶
func (mr *MockControllerManagerMockRecorder) Run(stopCh interface{}) *gomock.Call
Run indicates an expected call of Run.
type MockLocalStorageMember ¶
type MockLocalStorageMember struct {
// contains filtered or unexported fields
}
MockLocalStorageMember is a mock of LocalStorageMember interface.
func NewMockLocalStorageMember ¶
func NewMockLocalStorageMember(ctrl *gomock.Controller) *MockLocalStorageMember
NewMockLocalStorageMember creates a new mock instance.
func (*MockLocalStorageMember) ConfigureBase ¶
func (m *MockLocalStorageMember) ConfigureBase(name, namespace string, haSystemConfig apisv1alpha1.SystemConfig, cli client.Client, informersCache cache.Cache) apis.LocalStorageMember
ConfigureBase mocks base method.
func (*MockLocalStorageMember) ConfigureCSIDriver ¶
func (m *MockLocalStorageMember) ConfigureCSIDriver(driverName, sockAddr string) apis.LocalStorageMember
ConfigureCSIDriver mocks base method.
func (*MockLocalStorageMember) ConfigureController ¶
func (m *MockLocalStorageMember) ConfigureController(scheme *runtime.Scheme) apis.LocalStorageMember
ConfigureController mocks base method.
func (*MockLocalStorageMember) ConfigureNode ¶
func (m *MockLocalStorageMember) ConfigureNode() apis.LocalStorageMember
ConfigureNode mocks base method.
func (*MockLocalStorageMember) ConfigureRESTServer ¶
func (m *MockLocalStorageMember) ConfigureRESTServer(httpPort int) apis.LocalStorageMember
ConfigureRESTServer mocks base method.
func (*MockLocalStorageMember) Controller ¶
func (m *MockLocalStorageMember) Controller() apis.ControllerManager
Controller mocks base method.
func (*MockLocalStorageMember) DriverName ¶
func (m *MockLocalStorageMember) DriverName() string
DriverName mocks base method.
func (*MockLocalStorageMember) EXPECT ¶
func (m *MockLocalStorageMember) EXPECT() *MockLocalStorageMemberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLocalStorageMember) Name ¶
func (m *MockLocalStorageMember) Name() string
Name mocks base method.
func (*MockLocalStorageMember) Node ¶
func (m *MockLocalStorageMember) Node() apis.NodeManager
Node mocks base method.
func (*MockLocalStorageMember) Run ¶
func (m *MockLocalStorageMember) Run(stopCh <-chan struct{})
Run mocks base method.
func (*MockLocalStorageMember) Version ¶
func (m *MockLocalStorageMember) Version() string
Version mocks base method.
type MockLocalStorageMemberMockRecorder ¶
type MockLocalStorageMemberMockRecorder struct {
// contains filtered or unexported fields
}
MockLocalStorageMemberMockRecorder is the mock recorder for MockLocalStorageMember.
func (*MockLocalStorageMemberMockRecorder) ConfigureBase ¶
func (mr *MockLocalStorageMemberMockRecorder) ConfigureBase(name, namespace, haSystemConfig, cli, informersCache interface{}) *gomock.Call
ConfigureBase indicates an expected call of ConfigureBase.
func (*MockLocalStorageMemberMockRecorder) ConfigureCSIDriver ¶
func (mr *MockLocalStorageMemberMockRecorder) ConfigureCSIDriver(driverName, sockAddr interface{}) *gomock.Call
ConfigureCSIDriver indicates an expected call of ConfigureCSIDriver.
func (*MockLocalStorageMemberMockRecorder) ConfigureController ¶
func (mr *MockLocalStorageMemberMockRecorder) ConfigureController(scheme interface{}) *gomock.Call
ConfigureController indicates an expected call of ConfigureController.
func (*MockLocalStorageMemberMockRecorder) ConfigureNode ¶
func (mr *MockLocalStorageMemberMockRecorder) ConfigureNode() *gomock.Call
ConfigureNode indicates an expected call of ConfigureNode.
func (*MockLocalStorageMemberMockRecorder) ConfigureRESTServer ¶
func (mr *MockLocalStorageMemberMockRecorder) ConfigureRESTServer(httpPort interface{}) *gomock.Call
ConfigureRESTServer indicates an expected call of ConfigureRESTServer.
func (*MockLocalStorageMemberMockRecorder) Controller ¶
func (mr *MockLocalStorageMemberMockRecorder) Controller() *gomock.Call
Controller indicates an expected call of Controller.
func (*MockLocalStorageMemberMockRecorder) DriverName ¶
func (mr *MockLocalStorageMemberMockRecorder) DriverName() *gomock.Call
DriverName indicates an expected call of DriverName.
func (*MockLocalStorageMemberMockRecorder) Name ¶
func (mr *MockLocalStorageMemberMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockLocalStorageMemberMockRecorder) Node ¶
func (mr *MockLocalStorageMemberMockRecorder) Node() *gomock.Call
Node indicates an expected call of Node.
func (*MockLocalStorageMemberMockRecorder) Run ¶
func (mr *MockLocalStorageMemberMockRecorder) Run(stopCh interface{}) *gomock.Call
Run indicates an expected call of Run.
func (*MockLocalStorageMemberMockRecorder) Version ¶
func (mr *MockLocalStorageMemberMockRecorder) Version() *gomock.Call
Version indicates an expected call of Version.
type MockNodeManager ¶
type MockNodeManager struct {
// contains filtered or unexported fields
}
MockNodeManager is a mock of NodeManager interface.
func NewMockNodeManager ¶
func NewMockNodeManager(ctrl *gomock.Controller) *MockNodeManager
NewMockNodeManager creates a new mock instance.
func (*MockNodeManager) EXPECT ¶
func (m *MockNodeManager) EXPECT() *MockNodeManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNodeManager) ReconcileVolumeReplica ¶
func (m *MockNodeManager) ReconcileVolumeReplica(replica *apisv1alpha1.LocalVolumeReplica)
ReconcileVolumeReplica mocks base method.
func (*MockNodeManager) Run ¶
func (m *MockNodeManager) Run(stopCh <-chan struct{})
Run mocks base method.
func (*MockNodeManager) Storage ¶
func (m *MockNodeManager) Storage() *storage.LocalManager
Storage mocks base method.
func (*MockNodeManager) TakeVolumeReplicaTaskAssignment ¶
func (m *MockNodeManager) TakeVolumeReplicaTaskAssignment(vol *apisv1alpha1.LocalVolume)
TakeVolumeReplicaTaskAssignment mocks base method.
type MockNodeManagerMockRecorder ¶
type MockNodeManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeManagerMockRecorder is the mock recorder for MockNodeManager.
func (*MockNodeManagerMockRecorder) ReconcileVolumeReplica ¶
func (mr *MockNodeManagerMockRecorder) ReconcileVolumeReplica(replica interface{}) *gomock.Call
ReconcileVolumeReplica indicates an expected call of ReconcileVolumeReplica.
func (*MockNodeManagerMockRecorder) Run ¶
func (mr *MockNodeManagerMockRecorder) Run(stopCh interface{}) *gomock.Call
Run indicates an expected call of Run.
func (*MockNodeManagerMockRecorder) Storage ¶
func (mr *MockNodeManagerMockRecorder) Storage() *gomock.Call
Storage indicates an expected call of Storage.
func (*MockNodeManagerMockRecorder) TakeVolumeReplicaTaskAssignment ¶
func (mr *MockNodeManagerMockRecorder) TakeVolumeReplicaTaskAssignment(vol interface{}) *gomock.Call
TakeVolumeReplicaTaskAssignment indicates an expected call of TakeVolumeReplicaTaskAssignment.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package scheduler is a generated GoMock package.
|
Package scheduler is a generated GoMock package. |