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 ¶
- type MockNode
- func (m *MockNode) EXPECT() *MockNodeMockRecorder
- func (m *MockNode) GetNodesListBySelector(ctx context.Context, selector map[string]string, tolerations []v1.Toleration) ([]v1.Node, error)
- func (m *MockNode) GetNumTargetedNodes(ctx context.Context, selector map[string]string, tolerations []v1.Toleration) (int, error)
- func (m *MockNode) IsNodeRebooted(node *v1.Node, statusBootId string) bool
- func (m *MockNode) IsNodeSchedulable(node *v1.Node, tolerations []v1.Toleration) bool
- func (m *MockNode) UpdateLabels(ctx context.Context, node *v1.Node, toBeAdded, toBeRemoved map[string]string) error
- type MockNodeMockRecorder
- func (mr *MockNodeMockRecorder) GetNodesListBySelector(ctx, selector, tolerations any) *gomock.Call
- func (mr *MockNodeMockRecorder) GetNumTargetedNodes(ctx, selector, tolerations any) *gomock.Call
- func (mr *MockNodeMockRecorder) IsNodeRebooted(node, statusBootId any) *gomock.Call
- func (mr *MockNodeMockRecorder) IsNodeSchedulable(node, tolerations any) *gomock.Call
- func (mr *MockNodeMockRecorder) UpdateLabels(ctx, node, toBeAdded, toBeRemoved any) *gomock.Call
- type Node
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) IsNodeRebooted ¶
IsNodeRebooted mocks base method.
func (*MockNode) IsNodeSchedulable ¶
IsNodeSchedulable 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) IsNodeRebooted ¶
func (mr *MockNodeMockRecorder) IsNodeRebooted(node, statusBootId any) *gomock.Call
IsNodeRebooted indicates an expected call of IsNodeRebooted.
func (*MockNodeMockRecorder) IsNodeSchedulable ¶
func (mr *MockNodeMockRecorder) IsNodeSchedulable(node, tolerations any) *gomock.Call
IsNodeSchedulable indicates an expected call of IsNodeSchedulable.
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 map[string]string) error
IsNodeRebooted(node *v1.Node, statusBootId string) bool
}