mock_adminactions

package
v0.0.0-...-c4ed7d6 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mock_adminactions is a generated GoMock package.

Package mock_adminactions is a generated GoMock package.

Package mock_adminactions is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAppLensActions

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

MockAppLensActions is a mock of AppLensActions interface.

func NewMockAppLensActions

func NewMockAppLensActions(ctrl *gomock.Controller) *MockAppLensActions

NewMockAppLensActions creates a new mock instance.

func (*MockAppLensActions) AppLensGetDetector

func (m *MockAppLensActions) AppLensGetDetector(ctx context.Context, detectorId string) ([]byte, error)

AppLensGetDetector mocks base method.

func (*MockAppLensActions) AppLensListDetectors

func (m *MockAppLensActions) AppLensListDetectors(ctx context.Context) ([]byte, error)

AppLensListDetectors mocks base method.

func (*MockAppLensActions) EXPECT

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

type MockAppLensActionsMockRecorder

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

MockAppLensActionsMockRecorder is the mock recorder for MockAppLensActions.

func (*MockAppLensActionsMockRecorder) AppLensGetDetector

func (mr *MockAppLensActionsMockRecorder) AppLensGetDetector(ctx, detectorId any) *gomock.Call

AppLensGetDetector indicates an expected call of AppLensGetDetector.

func (*MockAppLensActionsMockRecorder) AppLensListDetectors

func (mr *MockAppLensActionsMockRecorder) AppLensListDetectors(ctx any) *gomock.Call

AppLensListDetectors indicates an expected call of AppLensListDetectors.

type MockAzureActions

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

MockAzureActions is a mock of AzureActions interface.

func NewMockAzureActions

func NewMockAzureActions(ctrl *gomock.Controller) *MockAzureActions

NewMockAzureActions creates a new mock instance.

func (*MockAzureActions) EXPECT

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

func (*MockAzureActions) GroupResourceList

func (m *MockAzureActions) GroupResourceList(ctx context.Context) ([]features.GenericResourceExpanded, error)

GroupResourceList mocks base method.

func (*MockAzureActions) NICReconcileFailedState

func (m *MockAzureActions) NICReconcileFailedState(ctx context.Context, nicName string) error

NICReconcileFailedState mocks base method.

func (*MockAzureActions) ResourceDeleteAndWait

func (m *MockAzureActions) ResourceDeleteAndWait(ctx context.Context, resourceID string) error

ResourceDeleteAndWait mocks base method.

func (*MockAzureActions) ResourceGroupHasVM

func (m *MockAzureActions) ResourceGroupHasVM(ctx context.Context, vmName string) (bool, error)

ResourceGroupHasVM mocks base method.

func (*MockAzureActions) ResourcesList

func (m *MockAzureActions) ResourcesList(ctx context.Context, resources []features.GenericResourceExpanded, writer io.WriteCloser) error

ResourcesList mocks base method.

func (*MockAzureActions) VMRedeployAndWait

func (m *MockAzureActions) VMRedeployAndWait(ctx context.Context, vmName string) error

VMRedeployAndWait mocks base method.

func (*MockAzureActions) VMResize

func (m *MockAzureActions) VMResize(ctx context.Context, vmName, vmSize string) error

VMResize mocks base method.

func (*MockAzureActions) VMSerialConsole

func (m *MockAzureActions) VMSerialConsole(ctx context.Context, log *logrus.Entry, vmName string, target io.Writer) error

VMSerialConsole mocks base method.

func (*MockAzureActions) VMSizeList

func (m *MockAzureActions) VMSizeList(ctx context.Context) ([]compute.ResourceSku, error)

VMSizeList mocks base method.

func (*MockAzureActions) VMStartAndWait

func (m *MockAzureActions) VMStartAndWait(ctx context.Context, vmName string) error

VMStartAndWait mocks base method.

func (*MockAzureActions) VMStopAndWait

func (m *MockAzureActions) VMStopAndWait(ctx context.Context, vmName string, deallocateVM bool) error

VMStopAndWait mocks base method.

func (*MockAzureActions) WriteToStream

func (m *MockAzureActions) WriteToStream(ctx context.Context, writer io.WriteCloser) error

WriteToStream mocks base method.

type MockAzureActionsMockRecorder

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

MockAzureActionsMockRecorder is the mock recorder for MockAzureActions.

func (*MockAzureActionsMockRecorder) GroupResourceList

func (mr *MockAzureActionsMockRecorder) GroupResourceList(ctx any) *gomock.Call

GroupResourceList indicates an expected call of GroupResourceList.

func (*MockAzureActionsMockRecorder) NICReconcileFailedState

func (mr *MockAzureActionsMockRecorder) NICReconcileFailedState(ctx, nicName any) *gomock.Call

NICReconcileFailedState indicates an expected call of NICReconcileFailedState.

func (*MockAzureActionsMockRecorder) ResourceDeleteAndWait

func (mr *MockAzureActionsMockRecorder) ResourceDeleteAndWait(ctx, resourceID any) *gomock.Call

ResourceDeleteAndWait indicates an expected call of ResourceDeleteAndWait.

func (*MockAzureActionsMockRecorder) ResourceGroupHasVM

func (mr *MockAzureActionsMockRecorder) ResourceGroupHasVM(ctx, vmName any) *gomock.Call

ResourceGroupHasVM indicates an expected call of ResourceGroupHasVM.

func (*MockAzureActionsMockRecorder) ResourcesList

func (mr *MockAzureActionsMockRecorder) ResourcesList(ctx, resources, writer any) *gomock.Call

ResourcesList indicates an expected call of ResourcesList.

func (*MockAzureActionsMockRecorder) VMRedeployAndWait

func (mr *MockAzureActionsMockRecorder) VMRedeployAndWait(ctx, vmName any) *gomock.Call

VMRedeployAndWait indicates an expected call of VMRedeployAndWait.

func (*MockAzureActionsMockRecorder) VMResize

func (mr *MockAzureActionsMockRecorder) VMResize(ctx, vmName, vmSize any) *gomock.Call

VMResize indicates an expected call of VMResize.

func (*MockAzureActionsMockRecorder) VMSerialConsole

func (mr *MockAzureActionsMockRecorder) VMSerialConsole(ctx, log, vmName, target any) *gomock.Call

VMSerialConsole indicates an expected call of VMSerialConsole.

func (*MockAzureActionsMockRecorder) VMSizeList

func (mr *MockAzureActionsMockRecorder) VMSizeList(ctx any) *gomock.Call

VMSizeList indicates an expected call of VMSizeList.

func (*MockAzureActionsMockRecorder) VMStartAndWait

func (mr *MockAzureActionsMockRecorder) VMStartAndWait(ctx, vmName any) *gomock.Call

VMStartAndWait indicates an expected call of VMStartAndWait.

func (*MockAzureActionsMockRecorder) VMStopAndWait

func (mr *MockAzureActionsMockRecorder) VMStopAndWait(ctx, vmName, deallocateVM any) *gomock.Call

VMStopAndWait indicates an expected call of VMStopAndWait.

func (*MockAzureActionsMockRecorder) WriteToStream

func (mr *MockAzureActionsMockRecorder) WriteToStream(ctx, writer any) *gomock.Call

WriteToStream indicates an expected call of WriteToStream.

type MockKubeActions

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

MockKubeActions is a mock of KubeActions interface.

func NewMockKubeActions

func NewMockKubeActions(ctrl *gomock.Controller) *MockKubeActions

NewMockKubeActions creates a new mock instance.

func (*MockKubeActions) ApproveAllCsrs

func (m *MockKubeActions) ApproveAllCsrs(ctx context.Context) error

ApproveAllCsrs mocks base method.

func (*MockKubeActions) ApproveCsr

func (m *MockKubeActions) ApproveCsr(ctx context.Context, csrName string) error

ApproveCsr mocks base method.

func (*MockKubeActions) CordonNode

func (m *MockKubeActions) CordonNode(ctx context.Context, nodeName string, unschedulable bool) error

CordonNode mocks base method.

func (*MockKubeActions) DrainNode

func (m *MockKubeActions) DrainNode(ctx context.Context, nodeName string) error

DrainNode mocks base method.

func (*MockKubeActions) EXPECT

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

func (*MockKubeActions) KubeCreateOrUpdate

func (m *MockKubeActions) KubeCreateOrUpdate(ctx context.Context, obj *unstructured.Unstructured) error

KubeCreateOrUpdate mocks base method.

func (*MockKubeActions) KubeDelete

func (m *MockKubeActions) KubeDelete(ctx context.Context, groupKind, namespace, name string, force bool, propagationPolicy *v1.DeletionPropagation) error

KubeDelete mocks base method.

func (*MockKubeActions) KubeGet

func (m *MockKubeActions) KubeGet(ctx context.Context, groupKind, namespace, name string) ([]byte, error)

KubeGet mocks base method.

func (*MockKubeActions) KubeGetPodLogs

func (m *MockKubeActions) KubeGetPodLogs(ctx context.Context, namespace, name, containerName string) ([]byte, error)

KubeGetPodLogs mocks base method.

func (*MockKubeActions) KubeList

func (m *MockKubeActions) KubeList(ctx context.Context, groupKind, namespace string) ([]byte, error)

KubeList mocks base method.

func (*MockKubeActions) KubeWatch

KubeWatch mocks base method.

func (*MockKubeActions) ResolveGVR

func (m *MockKubeActions) ResolveGVR(groupKind, optionalVersion string) (schema.GroupVersionResource, error)

ResolveGVR mocks base method.

type MockKubeActionsMockRecorder

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

MockKubeActionsMockRecorder is the mock recorder for MockKubeActions.

func (*MockKubeActionsMockRecorder) ApproveAllCsrs

func (mr *MockKubeActionsMockRecorder) ApproveAllCsrs(ctx any) *gomock.Call

ApproveAllCsrs indicates an expected call of ApproveAllCsrs.

func (*MockKubeActionsMockRecorder) ApproveCsr

func (mr *MockKubeActionsMockRecorder) ApproveCsr(ctx, csrName any) *gomock.Call

ApproveCsr indicates an expected call of ApproveCsr.

func (*MockKubeActionsMockRecorder) CordonNode

func (mr *MockKubeActionsMockRecorder) CordonNode(ctx, nodeName, unschedulable any) *gomock.Call

CordonNode indicates an expected call of CordonNode.

func (*MockKubeActionsMockRecorder) DrainNode

func (mr *MockKubeActionsMockRecorder) DrainNode(ctx, nodeName any) *gomock.Call

DrainNode indicates an expected call of DrainNode.

func (*MockKubeActionsMockRecorder) KubeCreateOrUpdate

func (mr *MockKubeActionsMockRecorder) KubeCreateOrUpdate(ctx, obj any) *gomock.Call

KubeCreateOrUpdate indicates an expected call of KubeCreateOrUpdate.

func (*MockKubeActionsMockRecorder) KubeDelete

func (mr *MockKubeActionsMockRecorder) KubeDelete(ctx, groupKind, namespace, name, force, propagationPolicy any) *gomock.Call

KubeDelete indicates an expected call of KubeDelete.

func (*MockKubeActionsMockRecorder) KubeGet

func (mr *MockKubeActionsMockRecorder) KubeGet(ctx, groupKind, namespace, name any) *gomock.Call

KubeGet indicates an expected call of KubeGet.

func (*MockKubeActionsMockRecorder) KubeGetPodLogs

func (mr *MockKubeActionsMockRecorder) KubeGetPodLogs(ctx, namespace, name, containerName any) *gomock.Call

KubeGetPodLogs indicates an expected call of KubeGetPodLogs.

func (*MockKubeActionsMockRecorder) KubeList

func (mr *MockKubeActionsMockRecorder) KubeList(ctx, groupKind, namespace any) *gomock.Call

KubeList indicates an expected call of KubeList.

func (*MockKubeActionsMockRecorder) KubeWatch

func (mr *MockKubeActionsMockRecorder) KubeWatch(ctx, o, label any) *gomock.Call

KubeWatch indicates an expected call of KubeWatch.

func (*MockKubeActionsMockRecorder) ResolveGVR

func (mr *MockKubeActionsMockRecorder) ResolveGVR(groupKind, optionalVersion any) *gomock.Call

ResolveGVR indicates an expected call of ResolveGVR.

Jump to

Keyboard shortcuts

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