Documentation ¶
Overview ¶
Package node is a generated GoMock package.
Index ¶
- func New(name string, namespace string, cli client.Client, ...) (apis.NodeManager, error)
- func NewConfigManager(hostname string, config apisv1alpha1.SystemConfig, apiClient client.Client) (*configManager, error)
- 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, informersCache runtimecache.Cache, config apisv1alpha1.SystemConfig) (apis.NodeManager, error)
New node manager
func NewConfigManager ¶
func NewConfigManager(hostname string, config apisv1alpha1.SystemConfig, apiClient client.Client) (*configManager, error)
Types ¶
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 configer is a generated GoMock package.
|
Package configer is a generated GoMock package. |
Package storage is a generated GoMock package.
|
Package storage is a generated GoMock package. |