mock

package
v1.5.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPI

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

MockAPI is a mock of API interface.

func NewMockAPI

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) DeleteCnsVolumes

func (m *MockAPI) DeleteCnsVolumes(ctx context.Context, volume types.CnsVolume) error

DeleteCnsVolumes mocks base method.

func (*MockAPI) DeleteFolder

func (m *MockAPI) DeleteFolder(ctx context.Context, f mo.Folder) error

DeleteFolder mocks base method.

func (*MockAPI) DeleteHostZoneObjects

func (m *MockAPI) DeleteHostZoneObjects(ctx context.Context, infraID string) error

DeleteHostZoneObjects mocks base method.

func (*MockAPI) DeleteStoragePolicy

func (m *MockAPI) DeleteStoragePolicy(ctx context.Context, policyName string) error

DeleteStoragePolicy mocks base method.

func (*MockAPI) DeleteTag

func (m *MockAPI) DeleteTag(ctx context.Context, id string) error

DeleteTag mocks base method.

func (*MockAPI) DeleteTagCategory

func (m *MockAPI) DeleteTagCategory(ctx context.Context, id string) error

DeleteTagCategory mocks base method.

func (*MockAPI) DeleteVirtualMachine

func (m *MockAPI) DeleteVirtualMachine(ctx context.Context, vmMO mo.VirtualMachine) error

DeleteVirtualMachine mocks base method.

func (*MockAPI) EXPECT

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

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

func (*MockAPI) GetCnsVolumes

func (m *MockAPI) GetCnsVolumes(ctx context.Context, infraID string) ([]types.CnsVolume, error)

GetCnsVolumes mocks base method.

func (*MockAPI) GetVCenterName

func (m *MockAPI) GetVCenterName() string

GetVCenterName mocks base method.

func (*MockAPI) ListFolders

func (m *MockAPI) ListFolders(ctx context.Context, tagID string) ([]mo.Folder, error)

ListFolders mocks base method.

func (*MockAPI) ListVirtualMachines

func (m *MockAPI) ListVirtualMachines(ctx context.Context, tagID string) ([]mo.VirtualMachine, error)

ListVirtualMachines mocks base method.

func (*MockAPI) Logout

func (m *MockAPI) Logout()

Logout mocks base method.

func (*MockAPI) StopVirtualMachine

func (m *MockAPI) StopVirtualMachine(ctx context.Context, vmMO mo.VirtualMachine) error

StopVirtualMachine mocks base method.

type MockAPIMockRecorder

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

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) DeleteCnsVolumes

func (mr *MockAPIMockRecorder) DeleteCnsVolumes(ctx, volume any) *gomock.Call

DeleteCnsVolumes indicates an expected call of DeleteCnsVolumes.

func (*MockAPIMockRecorder) DeleteFolder

func (mr *MockAPIMockRecorder) DeleteFolder(ctx, f any) *gomock.Call

DeleteFolder indicates an expected call of DeleteFolder.

func (*MockAPIMockRecorder) DeleteHostZoneObjects

func (mr *MockAPIMockRecorder) DeleteHostZoneObjects(ctx, infraID any) *gomock.Call

DeleteHostZoneObjects indicates an expected call of DeleteHostZoneObjects.

func (*MockAPIMockRecorder) DeleteStoragePolicy

func (mr *MockAPIMockRecorder) DeleteStoragePolicy(ctx, policyName any) *gomock.Call

DeleteStoragePolicy indicates an expected call of DeleteStoragePolicy.

func (*MockAPIMockRecorder) DeleteTag

func (mr *MockAPIMockRecorder) DeleteTag(ctx, id any) *gomock.Call

DeleteTag indicates an expected call of DeleteTag.

func (*MockAPIMockRecorder) DeleteTagCategory

func (mr *MockAPIMockRecorder) DeleteTagCategory(ctx, id any) *gomock.Call

DeleteTagCategory indicates an expected call of DeleteTagCategory.

func (*MockAPIMockRecorder) DeleteVirtualMachine

func (mr *MockAPIMockRecorder) DeleteVirtualMachine(ctx, vmMO any) *gomock.Call

DeleteVirtualMachine indicates an expected call of DeleteVirtualMachine.

func (*MockAPIMockRecorder) GetCnsVolumes

func (mr *MockAPIMockRecorder) GetCnsVolumes(ctx, infraID any) *gomock.Call

GetCnsVolumes indicates an expected call of GetCnsVolumes.

func (*MockAPIMockRecorder) GetVCenterName

func (mr *MockAPIMockRecorder) GetVCenterName() *gomock.Call

GetVCenterName indicates an expected call of GetVCenterName.

func (*MockAPIMockRecorder) ListFolders

func (mr *MockAPIMockRecorder) ListFolders(ctx, tagID any) *gomock.Call

ListFolders indicates an expected call of ListFolders.

func (*MockAPIMockRecorder) ListVirtualMachines

func (mr *MockAPIMockRecorder) ListVirtualMachines(ctx, tagID any) *gomock.Call

ListVirtualMachines indicates an expected call of ListVirtualMachines.

func (*MockAPIMockRecorder) Logout

func (mr *MockAPIMockRecorder) Logout() *gomock.Call

Logout indicates an expected call of Logout.

func (*MockAPIMockRecorder) StopVirtualMachine

func (mr *MockAPIMockRecorder) StopVirtualMachine(ctx, vmMO any) *gomock.Call

StopVirtualMachine indicates an expected call of StopVirtualMachine.

Jump to

Keyboard shortcuts

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