mock_utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock_utils is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUtilsInterface

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

MockUtilsInterface is a mock of UtilsInterface interface.

func NewMockUtilsInterface

func NewMockUtilsInterface(ctrl *gomock.Controller) *MockUtilsInterface

NewMockUtilsInterface creates a new mock instance.

func (*MockUtilsInterface) CreateNamespace

func (m *MockUtilsInterface) CreateNamespace(namespace string) error

CreateNamespace mocks base method.

func (*MockUtilsInterface) CreatePodOnNode

func (m *MockUtilsInterface) CreatePodOnNode(nodeName, namespace, image string, command []string) (*v1.Pod, error)

CreatePodOnNode mocks base method.

func (*MockUtilsInterface) DeleteNamespace

func (m *MockUtilsInterface) DeleteNamespace(namespace string) error

DeleteNamespace mocks base method.

func (*MockUtilsInterface) DeletePod

func (m *MockUtilsInterface) DeletePod(pod *v1.Pod) error

DeletePod mocks base method.

func (*MockUtilsInterface) EXPECT

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

func (*MockUtilsInterface) GetPodLogs

func (m *MockUtilsInterface) GetPodLogs(namespace string, pod *v1.Pod) (string, error)

GetPodLogs mocks base method.

func (*MockUtilsInterface) IsBMInfra

func (m *MockUtilsInterface) IsBMInfra() (bool, error)

IsBMInfra mocks base method.

func (*MockUtilsInterface) IsSNOCluster

func (m *MockUtilsInterface) IsSNOCluster() (bool, error)

IsSNOCluster mocks base method.

func (*MockUtilsInterface) RunCommandOnPod

func (m *MockUtilsInterface) RunCommandOnPod(pod *v1.Pod, command []string) ([]byte, error)

RunCommandOnPod mocks base method.

func (*MockUtilsInterface) WaitForPodStatus

func (m *MockUtilsInterface) WaitForPodStatus(namespace string, pod *v1.Pod, PodPhase v1.PodPhase) error

WaitForPodStatus mocks base method.

func (*MockUtilsInterface) WriteFile

func (m *MockUtilsInterface) WriteFile(path string, data []byte) error

WriteFile mocks base method.

type MockUtilsInterfaceMockRecorder

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

MockUtilsInterfaceMockRecorder is the mock recorder for MockUtilsInterface.

func (*MockUtilsInterfaceMockRecorder) CreateNamespace

func (mr *MockUtilsInterfaceMockRecorder) CreateNamespace(namespace interface{}) *gomock.Call

CreateNamespace indicates an expected call of CreateNamespace.

func (*MockUtilsInterfaceMockRecorder) CreatePodOnNode

func (mr *MockUtilsInterfaceMockRecorder) CreatePodOnNode(nodeName, namespace, image, command interface{}) *gomock.Call

CreatePodOnNode indicates an expected call of CreatePodOnNode.

func (*MockUtilsInterfaceMockRecorder) DeleteNamespace

func (mr *MockUtilsInterfaceMockRecorder) DeleteNamespace(namespace interface{}) *gomock.Call

DeleteNamespace indicates an expected call of DeleteNamespace.

func (*MockUtilsInterfaceMockRecorder) DeletePod

func (mr *MockUtilsInterfaceMockRecorder) DeletePod(pod interface{}) *gomock.Call

DeletePod indicates an expected call of DeletePod.

func (*MockUtilsInterfaceMockRecorder) GetPodLogs

func (mr *MockUtilsInterfaceMockRecorder) GetPodLogs(namespace, pod interface{}) *gomock.Call

GetPodLogs indicates an expected call of GetPodLogs.

func (*MockUtilsInterfaceMockRecorder) IsBMInfra

func (mr *MockUtilsInterfaceMockRecorder) IsBMInfra() *gomock.Call

IsBMInfra indicates an expected call of IsBMInfra.

func (*MockUtilsInterfaceMockRecorder) IsSNOCluster

func (mr *MockUtilsInterfaceMockRecorder) IsSNOCluster() *gomock.Call

IsSNOCluster indicates an expected call of IsSNOCluster.

func (*MockUtilsInterfaceMockRecorder) RunCommandOnPod

func (mr *MockUtilsInterfaceMockRecorder) RunCommandOnPod(pod, command interface{}) *gomock.Call

RunCommandOnPod indicates an expected call of RunCommandOnPod.

func (*MockUtilsInterfaceMockRecorder) WaitForPodStatus

func (mr *MockUtilsInterfaceMockRecorder) WaitForPodStatus(namespace, pod, PodPhase interface{}) *gomock.Call

WaitForPodStatus indicates an expected call of WaitForPodStatus.

func (*MockUtilsInterfaceMockRecorder) WriteFile

func (mr *MockUtilsInterfaceMockRecorder) WriteFile(path, data interface{}) *gomock.Call

WriteFile indicates an expected call of WriteFile.

Jump to

Keyboard shortcuts

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