Documentation
¶
Overview ¶
Package mock_utils is a generated GoMock package.
Index ¶
- type MockUtilsInterface
- func (m *MockUtilsInterface) CreateNamespace(namespace string) error
- func (m *MockUtilsInterface) CreatePodOnNode(nodeName, namespace, image string, command []string) (*v1.Pod, error)
- func (m *MockUtilsInterface) DeleteNamespace(namespace string) error
- func (m *MockUtilsInterface) DeletePod(pod *v1.Pod) error
- func (m *MockUtilsInterface) EXPECT() *MockUtilsInterfaceMockRecorder
- func (m *MockUtilsInterface) GetPodLogs(namespace string, pod *v1.Pod) (string, error)
- func (m *MockUtilsInterface) IsBMInfra() (bool, error)
- func (m *MockUtilsInterface) IsSNOCluster() (bool, error)
- func (m *MockUtilsInterface) RunCommandOnPod(pod *v1.Pod, command []string) ([]byte, error)
- func (m *MockUtilsInterface) WaitForPodStatus(namespace string, pod *v1.Pod, PodPhase v1.PodPhase) error
- func (m *MockUtilsInterface) WriteFile(path string, data []byte) error
- type MockUtilsInterfaceMockRecorder
- func (mr *MockUtilsInterfaceMockRecorder) CreateNamespace(namespace interface{}) *gomock.Call
- func (mr *MockUtilsInterfaceMockRecorder) CreatePodOnNode(nodeName, namespace, image, command interface{}) *gomock.Call
- func (mr *MockUtilsInterfaceMockRecorder) DeleteNamespace(namespace interface{}) *gomock.Call
- func (mr *MockUtilsInterfaceMockRecorder) DeletePod(pod interface{}) *gomock.Call
- func (mr *MockUtilsInterfaceMockRecorder) GetPodLogs(namespace, pod interface{}) *gomock.Call
- func (mr *MockUtilsInterfaceMockRecorder) IsBMInfra() *gomock.Call
- func (mr *MockUtilsInterfaceMockRecorder) IsSNOCluster() *gomock.Call
- func (mr *MockUtilsInterfaceMockRecorder) RunCommandOnPod(pod, command interface{}) *gomock.Call
- func (mr *MockUtilsInterfaceMockRecorder) WaitForPodStatus(namespace, pod, PodPhase interface{}) *gomock.Call
- func (mr *MockUtilsInterfaceMockRecorder) WriteFile(path, data interface{}) *gomock.Call
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 ¶
func (m *MockUtilsInterface) EXPECT() *MockUtilsInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUtilsInterface) GetPodLogs ¶
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 ¶
RunCommandOnPod mocks base method.
func (*MockUtilsInterface) WaitForPodStatus ¶
func (m *MockUtilsInterface) WaitForPodStatus(namespace string, pod *v1.Pod, PodPhase v1.PodPhase) error
WaitForPodStatus 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.