utils

package
v0.0.0-...-2180b98 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

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

Generated by this command:

mockgen -source=filesystem_helper.go -package=utils -destination=mock_filesystem_helper.go

Package utils is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var KernelRegexp = regexp.MustCompile("[.,-]")

Functions

func GetDRANodeLabel

func GetDRANodeLabel(namespace, moduleName string) string

func GetDevicePluginNodeLabel

func GetDevicePluginNodeLabel(namespace, moduleName string) string

func GetDevicePluginTargetNodeLabel

func GetDevicePluginTargetNodeLabel(namespace, moduleName string) string

func GetKernelModuleReadyNodeLabel

func GetKernelModuleReadyNodeLabel(namespace, moduleName string) string

func GetKernelModuleVersionReadyNodeLabel

func GetKernelModuleVersionReadyNodeLabel(namespace, moduleName string) string

func GetModuleVersionLabelName

func GetModuleVersionLabelName(namespace, name string) string

func GetNamespaceNameFromVersionLabel

func GetNamespaceNameFromVersionLabel(label string) (string, string, error)

func GetNodeWorkerPodVersionLabel

func GetNodeWorkerPodVersionLabel(nodeLabels map[string]string, namespace, name string) (string, bool)

func GetNodesVersionLabels

func GetNodesVersionLabels(nodeLabels map[string]string) map[string]string

func GetSchedulePodVersionLabelName

func GetSchedulePodVersionLabelName(namespace, name string) string

func GetWorkerPodVersionLabelName

func GetWorkerPodVersionLabelName(namespace, name string) string

func IsDeprecatedKernelModuleReadyNodeLabel

func IsDeprecatedKernelModuleReadyNodeLabel(label string) bool

func IsKernelModuleReadyNodeLabel

func IsKernelModuleReadyNodeLabel(label string) (bool, string, string)

func IsKernelModuleVersionReadyNodeLabel

func IsKernelModuleVersionReadyNodeLabel(label string) bool

func IsModuleVersionLabel

func IsModuleVersionLabel(label string) bool

func IsObjectSelectedByLabels

func IsObjectSelectedByLabels(objectLabels map[string]string, selectorLabels map[string]string) (bool, error)

func IsSchedulePodVersionLabel

func IsSchedulePodVersionLabel(label string) bool

func IsVersionLabel

func IsVersionLabel(label string) bool

func IsWorkerPodVersionLabel

func IsWorkerPodVersionLabel(label string) bool

func KernelComponentsAsEnvVars

func KernelComponentsAsEnvVars(kernel string) ([]string, error)

func ReplaceInTemplates

func ReplaceInTemplates(envvars []string, templates ...string) ([]string, error)

func WarnString

func WarnString(str string) string

Types

type FSHelper

type FSHelper interface {
	RemoveSrcFilesFromDst(srcDir, dstDir string) error
	FileExists(root, fileRegex string) (bool, error)
}

func NewFSHelper

func NewFSHelper(logger logr.Logger) FSHelper

type MockFSHelper

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

MockFSHelper is a mock of FSHelper interface.

func NewMockFSHelper

func NewMockFSHelper(ctrl *gomock.Controller) *MockFSHelper

NewMockFSHelper creates a new mock instance.

func (*MockFSHelper) EXPECT

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

func (*MockFSHelper) FileExists

func (m *MockFSHelper) FileExists(root, fileRegex string) (bool, error)

FileExists mocks base method.

func (*MockFSHelper) RemoveSrcFilesFromDst

func (m *MockFSHelper) RemoveSrcFilesFromDst(srcDir, dstDir string) error

RemoveSrcFilesFromDst mocks base method.

type MockFSHelperMockRecorder

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

MockFSHelperMockRecorder is the mock recorder for MockFSHelper.

func (*MockFSHelperMockRecorder) FileExists

func (mr *MockFSHelperMockRecorder) FileExists(root, fileRegex any) *gomock.Call

FileExists indicates an expected call of FileExists.

func (*MockFSHelperMockRecorder) RemoveSrcFilesFromDst

func (mr *MockFSHelperMockRecorder) RemoveSrcFilesFromDst(srcDir, dstDir any) *gomock.Call

RemoveSrcFilesFromDst indicates an expected call of RemoveSrcFilesFromDst.

Jump to

Keyboard shortcuts

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