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 ¶
- func GetDevicePluginNodeLabel(namespace, moduleName string) string
- func GetDevicePluginVersionLabelName(namespace, name string) string
- func GetKernelModuleReadyNodeLabel(namespace, moduleName string) string
- func GetModuleVersionLabelName(namespace, name string) string
- func GetNamespaceNameFromVersionLabel(label string) (string, string, error)
- func GetNodeWorkerPodVersionLabel(nodeLabels map[string]string, namespace, name string) (string, bool)
- func GetNodesVersionLabels(nodeLabels map[string]string) map[string]string
- func GetWorkerPodVersionLabelName(namespace, name string) string
- func IsDeprecatedKernelModuleReadyNodeLabel(label string) bool
- func IsDevicePluginVersionLabel(label string) bool
- func IsKernelModuleReadyNodeLabel(label string) (bool, string, string)
- func IsModuleVersionLabel(label string) bool
- func IsObjectSelectedByLabels(objectLabels map[string]string, selectorLabels map[string]string) (bool, error)
- func IsVersionLabel(label string) bool
- func IsWorkerPodVersionLabel(label string) bool
- func KernelComponentsAsEnvVars(kernel string) []string
- func MakeSecretVolume(secretRef *v1.LocalObjectReference, key string, path string) v1.Volume
- func MakeSecretVolumeMount(secretRef *v1.LocalObjectReference, mountPath string, readOnly bool) v1.VolumeMount
- func ReplaceInTemplates(envvars []string, templates ...string) ([]string, error)
- func WarnString(str string) string
- type FSHelper
- type MockFSHelper
- type MockFSHelperMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodesVersionLabels ¶
func IsModuleVersionLabel ¶
func IsVersionLabel ¶
func IsWorkerPodVersionLabel ¶
func MakeSecretVolume ¶
func MakeSecretVolumeMount ¶
func MakeSecretVolumeMount(secretRef *v1.LocalObjectReference, mountPath string, readOnly bool) v1.VolumeMount
func ReplaceInTemplates ¶
func WarnString ¶
Types ¶
type FSHelper ¶
type FSHelper interface { RemoveSrcFilesFromDst(srcDir, dstDir string) error FileExists(root, fileRegex string) (bool, error) }
func NewFSHelper ¶
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 ¶
func (m *MockFSHelper) EXPECT() *MockFSHelperMockRecorder
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.