mock_cd

package
v0.0.0-...-64e8fac Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_cd is a generated GoMock package.

Package mock_cd is a generated GoMock package.

Package mock_cd is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCD

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

MockCD is a mock of CD interface.

func NewMockCD

func NewMockCD(ctrl *gomock.Controller) *MockCD

NewMockCD creates a new mock instance.

func (*MockCD) CreateCluster

func (m *MockCD) CreateCluster(ctx context.Context, params *cd.CreateClusterParams) error

CreateCluster mocks base method.

func (*MockCD) DeleteCluster

func (m *MockCD) DeleteCluster(ctx context.Context, params *cd.DeleteClusterParams) error

DeleteCluster mocks base method.

func (*MockCD) DeployCluster

func (m *MockCD) DeployCluster(ctx context.Context, params *cd.DeployClusterParams) error

DeployCluster mocks base method.

func (*MockCD) EXPECT

func (m *MockCD) EXPECT() *MockCDMockRecorder

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

func (*MockCD) GetClusterState

func (m *MockCD) GetClusterState(ctx context.Context, params *cd.GetClusterStateV2Params) (*cd.ClusterStateV2, error)

GetClusterState mocks base method.

func (*MockCD) GetPodEvents

func (m *MockCD) GetPodEvents(ctx context.Context, params *cd.GetPodEventsParams) ([]cd.Event, error)

GetPodEvents mocks base method.

func (*MockCD) GetResourceTree

func (m *MockCD) GetResourceTree(ctx context.Context, params *cd.GetResourceTreeParams) ([]cd.ResourceNode, error)

GetResourceTree mocks base method.

func (*MockCD) GetStep

func (m *MockCD) GetStep(ctx context.Context, params *cd.GetStepParams) (*cd.Step, error)

GetStep mocks base method.

type MockCDMockRecorder

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

MockCDMockRecorder is the mock recorder for MockCD.

func (*MockCDMockRecorder) CreateCluster

func (mr *MockCDMockRecorder) CreateCluster(ctx, params interface{}) *gomock.Call

CreateCluster indicates an expected call of CreateCluster.

func (*MockCDMockRecorder) DeleteCluster

func (mr *MockCDMockRecorder) DeleteCluster(ctx, params interface{}) *gomock.Call

DeleteCluster indicates an expected call of DeleteCluster.

func (*MockCDMockRecorder) DeployCluster

func (mr *MockCDMockRecorder) DeployCluster(ctx, params interface{}) *gomock.Call

DeployCluster indicates an expected call of DeployCluster.

func (*MockCDMockRecorder) GetClusterState

func (mr *MockCDMockRecorder) GetClusterState(ctx, params interface{}) *gomock.Call

GetClusterState indicates an expected call of GetClusterState.

func (*MockCDMockRecorder) GetPodEvents

func (mr *MockCDMockRecorder) GetPodEvents(ctx, params interface{}) *gomock.Call

GetPodEvents indicates an expected call of GetPodEvents.

func (*MockCDMockRecorder) GetResourceTree

func (mr *MockCDMockRecorder) GetResourceTree(ctx, params interface{}) *gomock.Call

GetResourceTree indicates an expected call of GetResourceTree.

func (*MockCDMockRecorder) GetStep

func (mr *MockCDMockRecorder) GetStep(ctx, params interface{}) *gomock.Call

GetStep indicates an expected call of GetStep.

type MockK8sUtil

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

MockK8sUtil is a mock of K8sUtil interface.

func NewMockK8sUtil

func NewMockK8sUtil(ctrl *gomock.Controller) *MockK8sUtil

NewMockK8sUtil creates a new mock instance.

func (*MockK8sUtil) DeletePods

func (m *MockK8sUtil) DeletePods(ctx context.Context, params *cd.DeletePodsParams) (map[string]cd.OperationResult, error)

DeletePods mocks base method.

func (*MockK8sUtil) EXPECT

func (m *MockK8sUtil) EXPECT() *MockK8sUtilMockRecorder

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

func (*MockK8sUtil) Exec

func (m *MockK8sUtil) Exec(ctx context.Context, params *cd.ExecParams) (map[string]cd.ExecResp, error)

Exec mocks base method.

func (*MockK8sUtil) ExecuteAction

func (m *MockK8sUtil) ExecuteAction(ctx context.Context, params *cd.ExecuteActionParams) error

ExecuteAction mocks base method.

func (*MockK8sUtil) GetContainerLog

func (m *MockK8sUtil) GetContainerLog(ctx context.Context, params *cd.GetContainerLogParams) (<-chan string, error)

GetContainerLog mocks base method.

func (*MockK8sUtil) GetPod

func (m *MockK8sUtil) GetPod(ctx context.Context, params *cd.GetPodParams) (*v1.Pod, error)

GetPod mocks base method.

func (*MockK8sUtil) GetPodContainers

func (m *MockK8sUtil) GetPodContainers(ctx context.Context, params *cd.GetPodParams) ([]cd.ContainerDetail, error)

GetPodContainers mocks base method.

type MockK8sUtilMockRecorder

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

MockK8sUtilMockRecorder is the mock recorder for MockK8sUtil.

func (*MockK8sUtilMockRecorder) DeletePods

func (mr *MockK8sUtilMockRecorder) DeletePods(ctx, params interface{}) *gomock.Call

DeletePods indicates an expected call of DeletePods.

func (*MockK8sUtilMockRecorder) Exec

func (mr *MockK8sUtilMockRecorder) Exec(ctx, params interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockK8sUtilMockRecorder) ExecuteAction

func (mr *MockK8sUtilMockRecorder) ExecuteAction(ctx, params interface{}) *gomock.Call

ExecuteAction indicates an expected call of ExecuteAction.

func (*MockK8sUtilMockRecorder) GetContainerLog

func (mr *MockK8sUtilMockRecorder) GetContainerLog(ctx, params interface{}) *gomock.Call

GetContainerLog indicates an expected call of GetContainerLog.

func (*MockK8sUtilMockRecorder) GetPod

func (mr *MockK8sUtilMockRecorder) GetPod(ctx, params interface{}) *gomock.Call

GetPod indicates an expected call of GetPod.

func (*MockK8sUtilMockRecorder) GetPodContainers

func (mr *MockK8sUtilMockRecorder) GetPodContainers(ctx, params interface{}) *gomock.Call

GetPodContainers indicates an expected call of GetPodContainers.

type MockLegacyCD

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

MockLegacyCD is a mock of LegacyCD interface.

func NewMockLegacyCD

func NewMockLegacyCD(ctrl *gomock.Controller) *MockLegacyCD

NewMockLegacyCD creates a new mock instance.

func (*MockLegacyCD) CreateCluster

func (m *MockLegacyCD) CreateCluster(ctx context.Context, params *cd.CreateClusterParams) error

CreateCluster mocks base method.

func (*MockLegacyCD) DeleteCluster

func (m *MockLegacyCD) DeleteCluster(ctx context.Context, params *cd.DeleteClusterParams) error

DeleteCluster mocks base method.

func (*MockLegacyCD) DeployCluster

func (m *MockLegacyCD) DeployCluster(ctx context.Context, params *cd.DeployClusterParams) error

DeployCluster mocks base method.

func (*MockLegacyCD) EXPECT

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

func (*MockLegacyCD) GetClusterState

func (m *MockLegacyCD) GetClusterState(ctx context.Context, params *cd.GetClusterStateV2Params) (*cd.ClusterStateV2, error)

GetClusterState mocks base method.

func (*MockLegacyCD) GetClusterStateV1

func (m *MockLegacyCD) GetClusterStateV1(ctx context.Context, params *cd.GetClusterStateParams) (*cd.ClusterState, error)

GetClusterStateV1 mocks base method.

func (*MockLegacyCD) GetPodEvents

func (m *MockLegacyCD) GetPodEvents(ctx context.Context, params *cd.GetPodEventsParams) ([]cd.Event, error)

GetPodEvents mocks base method.

func (*MockLegacyCD) GetResourceTree

func (m *MockLegacyCD) GetResourceTree(ctx context.Context, params *cd.GetResourceTreeParams) ([]cd.ResourceNode, error)

GetResourceTree mocks base method.

func (*MockLegacyCD) GetStep

func (m *MockLegacyCD) GetStep(ctx context.Context, params *cd.GetStepParams) (*cd.Step, error)

GetStep mocks base method.

type MockLegacyCDMockRecorder

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

MockLegacyCDMockRecorder is the mock recorder for MockLegacyCD.

func (*MockLegacyCDMockRecorder) CreateCluster

func (mr *MockLegacyCDMockRecorder) CreateCluster(ctx, params interface{}) *gomock.Call

CreateCluster indicates an expected call of CreateCluster.

func (*MockLegacyCDMockRecorder) DeleteCluster

func (mr *MockLegacyCDMockRecorder) DeleteCluster(ctx, params interface{}) *gomock.Call

DeleteCluster indicates an expected call of DeleteCluster.

func (*MockLegacyCDMockRecorder) DeployCluster

func (mr *MockLegacyCDMockRecorder) DeployCluster(ctx, params interface{}) *gomock.Call

DeployCluster indicates an expected call of DeployCluster.

func (*MockLegacyCDMockRecorder) GetClusterState

func (mr *MockLegacyCDMockRecorder) GetClusterState(ctx, params interface{}) *gomock.Call

GetClusterState indicates an expected call of GetClusterState.

func (*MockLegacyCDMockRecorder) GetClusterStateV1

func (mr *MockLegacyCDMockRecorder) GetClusterStateV1(ctx, params interface{}) *gomock.Call

GetClusterStateV1 indicates an expected call of GetClusterStateV1.

func (*MockLegacyCDMockRecorder) GetPodEvents

func (mr *MockLegacyCDMockRecorder) GetPodEvents(ctx, params interface{}) *gomock.Call

GetPodEvents indicates an expected call of GetPodEvents.

func (*MockLegacyCDMockRecorder) GetResourceTree

func (mr *MockLegacyCDMockRecorder) GetResourceTree(ctx, params interface{}) *gomock.Call

GetResourceTree indicates an expected call of GetResourceTree.

func (*MockLegacyCDMockRecorder) GetStep

func (mr *MockLegacyCDMockRecorder) GetStep(ctx, params interface{}) *gomock.Call

GetStep indicates an expected call of GetStep.

Jump to

Keyboard shortcuts

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