mocks

package
v0.0.0-...-00b15b8 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Copyright 2022 NVIDIA CORPORATION & AFFILIATES Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Code generated by mockery v1.0.0. DO NOT EDIT. nolint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CordonManager

type CordonManager struct {
	mock.Mock
}

CordonManager is an autogenerated mock type for the CordonManager type

func NewCordonManager

func NewCordonManager(t mockConstructorTestingTNewCordonManager) *CordonManager

NewCordonManager creates a new instance of CordonManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CordonManager) Cordon

func (_m *CordonManager) Cordon(ctx context.Context, node *v1.Node) error

Cordon provides a mock function with given fields: ctx, node

func (*CordonManager) Uncordon

func (_m *CordonManager) Uncordon(ctx context.Context, node *v1.Node) error

Uncordon provides a mock function with given fields: ctx, node

type DrainManager

type DrainManager struct {
	mock.Mock
}

DrainManager is an autogenerated mock type for the DrainManager type

func (*DrainManager) ScheduleNodesDrain

func (_m *DrainManager) ScheduleNodesDrain(ctx context.Context, drainConfig *upgrade.DrainConfiguration) error

ScheduleNodesDrain provides a mock function with given fields: ctx, drainConfig

type NodeUpgradeStateProvider

type NodeUpgradeStateProvider struct {
	mock.Mock
}

NodeUpgradeStateProvider is an autogenerated mock type for the NodeUpgradeStateProvider type

func NewNodeUpgradeStateProvider

func NewNodeUpgradeStateProvider(t mockConstructorTestingTNewNodeUpgradeStateProvider) *NodeUpgradeStateProvider

NewNodeUpgradeStateProvider creates a new instance of NodeUpgradeStateProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NodeUpgradeStateProvider) ChangeNodeUpgradeAnnotation

func (_m *NodeUpgradeStateProvider) ChangeNodeUpgradeAnnotation(ctx context.Context, node *v1.Node, key string, value string) error

ChangeNodeUpgradeAnnotation provides a mock function with given fields: ctx, node, key, value

func (*NodeUpgradeStateProvider) ChangeNodeUpgradeState

func (_m *NodeUpgradeStateProvider) ChangeNodeUpgradeState(ctx context.Context, node *v1.Node, newNodeState string) error

ChangeNodeUpgradeState provides a mock function with given fields: ctx, node, newNodeState

func (*NodeUpgradeStateProvider) GetNode

func (_m *NodeUpgradeStateProvider) GetNode(ctx context.Context, nodeName string) (*v1.Node, error)

GetNode provides a mock function with given fields: ctx, nodeName

type PodManager

type PodManager struct {
	mock.Mock
}

PodManager is an autogenerated mock type for the PodManager type

func NewPodManager

func NewPodManager(t mockConstructorTestingTNewPodManager) *PodManager

NewPodManager creates a new instance of PodManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PodManager) GetDaemonsetControllerRevisionHash

func (_m *PodManager) GetDaemonsetControllerRevisionHash(ctx context.Context, daemonset *v1.DaemonSet) (string, error)

GetDaemonsetControllerRevisionHash provides a mock function with given fields: ctx, daemonset

func (*PodManager) GetPodControllerRevisionHash

func (_m *PodManager) GetPodControllerRevisionHash(ctx context.Context, pod *corev1.Pod) (string, error)

GetPodControllerRevisionHash provides a mock function with given fields: ctx, pod

func (*PodManager) GetPodDeletionFilter

func (_m *PodManager) GetPodDeletionFilter() upgrade.PodDeletionFilter

GetPodDeletionFilter provides a mock function with given fields:

func (*PodManager) ScheduleCheckOnPodCompletion

func (_m *PodManager) ScheduleCheckOnPodCompletion(ctx context.Context, config *upgrade.PodManagerConfig) error

ScheduleCheckOnPodCompletion provides a mock function with given fields: ctx, config

func (*PodManager) SchedulePodEviction

func (_m *PodManager) SchedulePodEviction(ctx context.Context, config *upgrade.PodManagerConfig) error

SchedulePodEviction provides a mock function with given fields: ctx, config

func (*PodManager) SchedulePodsRestart

func (_m *PodManager) SchedulePodsRestart(ctx context.Context, pods []*corev1.Pod) error

SchedulePodsRestart provides a mock function with given fields: ctx, pods

type ValidationManager

type ValidationManager struct {
	mock.Mock
}

ValidationManager is an autogenerated mock type for the ValidationManager type

func NewValidationManager

func NewValidationManager(t mockConstructorTestingTNewValidationManager) *ValidationManager

NewValidationManager creates a new instance of ValidationManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ValidationManager) Validate

func (_m *ValidationManager) Validate(ctx context.Context, node *v1.Node) (bool, error)

Validate provides a mock function with given fields: ctx, node

Jump to

Keyboard shortcuts

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