node

package
v0.0.0-...-d67e381 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: node.go

Generated by this command:

mockgen -source=node.go -package=node -destination=mock_node.go

Package node is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNode

type MockNode struct {
	// contains filtered or unexported fields
}

MockNode is a mock of Node interface.

func NewMockNode

func NewMockNode(ctrl *gomock.Controller) *MockNode

NewMockNode creates a new mock instance.

func (*MockNode) EXPECT

func (m *MockNode) EXPECT() *MockNodeMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNode) GetNodesListBySelector

func (m *MockNode) GetNodesListBySelector(ctx context.Context, selector map[string]string, tolerations []v1.Toleration) ([]v1.Node, error)

GetNodesListBySelector mocks base method.

func (*MockNode) GetNumTargetedNodes

func (m *MockNode) GetNumTargetedNodes(ctx context.Context, selector map[string]string, tolerations []v1.Toleration) (int, error)

GetNumTargetedNodes mocks base method.

func (*MockNode) IsNodeSchedulable

func (m *MockNode) IsNodeSchedulable(node *v1.Node, tolerations []v1.Toleration) bool

IsNodeSchedulable mocks base method.

func (*MockNode) NodeBecomeReadyAfter

func (m *MockNode) NodeBecomeReadyAfter(node *v1.Node, checkTime v10.Time) bool

NodeBecomeReadyAfter mocks base method.

func (*MockNode) UpdateLabels

func (m *MockNode) UpdateLabels(ctx context.Context, node *v1.Node, toBeAdded, toBeRemoved []string) error

UpdateLabels mocks base method.

type MockNodeMockRecorder

type MockNodeMockRecorder struct {
	// contains filtered or unexported fields
}

MockNodeMockRecorder is the mock recorder for MockNode.

func (*MockNodeMockRecorder) GetNodesListBySelector

func (mr *MockNodeMockRecorder) GetNodesListBySelector(ctx, selector, tolerations any) *gomock.Call

GetNodesListBySelector indicates an expected call of GetNodesListBySelector.

func (*MockNodeMockRecorder) GetNumTargetedNodes

func (mr *MockNodeMockRecorder) GetNumTargetedNodes(ctx, selector, tolerations any) *gomock.Call

GetNumTargetedNodes indicates an expected call of GetNumTargetedNodes.

func (*MockNodeMockRecorder) IsNodeSchedulable

func (mr *MockNodeMockRecorder) IsNodeSchedulable(node, tolerations any) *gomock.Call

IsNodeSchedulable indicates an expected call of IsNodeSchedulable.

func (*MockNodeMockRecorder) NodeBecomeReadyAfter

func (mr *MockNodeMockRecorder) NodeBecomeReadyAfter(node, checkTime any) *gomock.Call

NodeBecomeReadyAfter indicates an expected call of NodeBecomeReadyAfter.

func (*MockNodeMockRecorder) UpdateLabels

func (mr *MockNodeMockRecorder) UpdateLabels(ctx, node, toBeAdded, toBeRemoved any) *gomock.Call

UpdateLabels indicates an expected call of UpdateLabels.

type Node

type Node interface {
	IsNodeSchedulable(node *v1.Node, tolerations []v1.Toleration) bool
	GetNodesListBySelector(ctx context.Context, selector map[string]string, tolerations []v1.Toleration) ([]v1.Node, error)
	GetNumTargetedNodes(ctx context.Context, selector map[string]string, tolerations []v1.Toleration) (int, error)
	UpdateLabels(ctx context.Context, node *v1.Node, toBeAdded, toBeRemoved []string) error
	NodeBecomeReadyAfter(node *v1.Node, checkTime metav1.Time) bool
}

func NewNode

func NewNode(client client.Client) Node

Jump to

Keyboard shortcuts

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