controller

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package controller is a generated GoMock package.

Index

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

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

Controller mocks base method.

func (*MockLocalStorageMember) DriverName

func (m *MockLocalStorageMember) DriverName() string

DriverName mocks base method.

func (*MockLocalStorageMember) EXPECT

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

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

Controller indicates an expected call of Controller.

func (*MockLocalStorageMemberMockRecorder) DriverName

DriverName indicates an expected call of DriverName.

func (*MockLocalStorageMemberMockRecorder) Name

Name indicates an expected call of Name.

func (*MockLocalStorageMemberMockRecorder) Node

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

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

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.

Directories

Path Synopsis
Package scheduler is a generated GoMock package.
Package scheduler is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL