node

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: 25 Imported by: 0

Documentation

Overview

Package node 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, 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

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 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.

Jump to

Keyboard shortcuts

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