mocks

package
v0.0.0-...-dda4347 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) Close

func (m *MockClient) Close(arg0 context.Context) error

Close mocks base method.

func (*MockClient) ComputeResources

func (m *MockClient) ComputeResources(arg0 context.Context) ([]vsphereclient.ComputeResource, error)

ComputeResources mocks base method.

func (*MockClient) CreateTemplateVM

CreateTemplateVM mocks base method.

func (*MockClient) CreateVirtualMachine

func (m *MockClient) CreateVirtualMachine(arg0 context.Context, arg1 vsphereclient.CreateVirtualMachineParams) (*mo.VirtualMachine, error)

CreateVirtualMachine mocks base method.

func (*MockClient) Datastores

func (m *MockClient) Datastores(arg0 context.Context) ([]mo.Datastore, error)

Datastores mocks base method.

func (*MockClient) DeleteDatastoreFile

func (m *MockClient) DeleteDatastoreFile(arg0 context.Context, arg1 string) error

DeleteDatastoreFile mocks base method.

func (*MockClient) DestroyVMFolder

func (m *MockClient) DestroyVMFolder(arg0 context.Context, arg1 string) error

DestroyVMFolder mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) EnsureVMFolder

func (m *MockClient) EnsureVMFolder(arg0 context.Context, arg1, arg2 string) (*object.Folder, error)

EnsureVMFolder mocks base method.

func (*MockClient) FindFolder

func (m *MockClient) FindFolder(arg0 context.Context, arg1 string) (*object.Folder, error)

FindFolder mocks base method.

func (*MockClient) Folders

func (m *MockClient) Folders(arg0 context.Context) (*object.DatacenterFolders, error)

Folders mocks base method.

func (*MockClient) GetTargetDatastore

func (m *MockClient) GetTargetDatastore(arg0 context.Context, arg1 *mo.ComputeResource, arg2 string) (*object.Datastore, error)

GetTargetDatastore mocks base method.

func (*MockClient) ListVMTemplates

func (m *MockClient) ListVMTemplates(arg0 context.Context, arg1 string) ([]*object.VirtualMachine, error)

ListVMTemplates mocks base method.

func (*MockClient) MoveVMFolderInto

func (m *MockClient) MoveVMFolderInto(arg0 context.Context, arg1, arg2 string) error

MoveVMFolderInto mocks base method.

func (*MockClient) MoveVMsInto

func (m *MockClient) MoveVMsInto(arg0 context.Context, arg1 string, arg2 ...types.ManagedObjectReference) error

MoveVMsInto mocks base method.

func (*MockClient) RemoveVirtualMachines

func (m *MockClient) RemoveVirtualMachines(arg0 context.Context, arg1 string) error

RemoveVirtualMachines mocks base method.

func (*MockClient) ResourcePools

func (m *MockClient) ResourcePools(arg0 context.Context, arg1 string) ([]*object.ResourcePool, error)

ResourcePools mocks base method.

func (*MockClient) UpdateVirtualMachineExtraConfig

func (m *MockClient) UpdateVirtualMachineExtraConfig(arg0 context.Context, arg1 *mo.VirtualMachine, arg2 map[string]string) error

UpdateVirtualMachineExtraConfig mocks base method.

func (*MockClient) UserHasRootLevelPrivilege

func (m *MockClient) UserHasRootLevelPrivilege(arg0 context.Context, arg1 string) (bool, error)

UserHasRootLevelPrivilege mocks base method.

func (*MockClient) VirtualMachineObjectToManagedObject

func (m *MockClient) VirtualMachineObjectToManagedObject(arg0 context.Context, arg1 *object.VirtualMachine) (mo.VirtualMachine, error)

VirtualMachineObjectToManagedObject mocks base method.

func (*MockClient) VirtualMachines

func (m *MockClient) VirtualMachines(arg0 context.Context, arg1 string) ([]*mo.VirtualMachine, error)

VirtualMachines mocks base method.

type MockClientCloseCall

type MockClientCloseCall struct {
	*gomock.Call
}

MockClientCloseCall wrap *gomock.Call

func (*MockClientCloseCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientCloseCall) DoAndReturn

func (c *MockClientCloseCall) DoAndReturn(f func(context.Context) error) *MockClientCloseCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientCloseCall) Return

Return rewrite *gomock.Call.Return

type MockClientComputeResourcesCall

type MockClientComputeResourcesCall struct {
	*gomock.Call
}

MockClientComputeResourcesCall wrap *gomock.Call

func (*MockClientComputeResourcesCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientComputeResourcesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientComputeResourcesCall) Return

Return rewrite *gomock.Call.Return

type MockClientCreateTemplateVMCall

type MockClientCreateTemplateVMCall struct {
	*gomock.Call
}

MockClientCreateTemplateVMCall wrap *gomock.Call

func (*MockClientCreateTemplateVMCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientCreateTemplateVMCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientCreateTemplateVMCall) Return

Return rewrite *gomock.Call.Return

type MockClientCreateVirtualMachineCall

type MockClientCreateVirtualMachineCall struct {
	*gomock.Call
}

MockClientCreateVirtualMachineCall wrap *gomock.Call

func (*MockClientCreateVirtualMachineCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientCreateVirtualMachineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientCreateVirtualMachineCall) Return

Return rewrite *gomock.Call.Return

type MockClientDatastoresCall

type MockClientDatastoresCall struct {
	*gomock.Call
}

MockClientDatastoresCall wrap *gomock.Call

func (*MockClientDatastoresCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientDatastoresCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientDatastoresCall) Return

Return rewrite *gomock.Call.Return

type MockClientDeleteDatastoreFileCall

type MockClientDeleteDatastoreFileCall struct {
	*gomock.Call
}

MockClientDeleteDatastoreFileCall wrap *gomock.Call

func (*MockClientDeleteDatastoreFileCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientDeleteDatastoreFileCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientDeleteDatastoreFileCall) Return

Return rewrite *gomock.Call.Return

type MockClientDestroyVMFolderCall

type MockClientDestroyVMFolderCall struct {
	*gomock.Call
}

MockClientDestroyVMFolderCall wrap *gomock.Call

func (*MockClientDestroyVMFolderCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientDestroyVMFolderCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientDestroyVMFolderCall) Return

Return rewrite *gomock.Call.Return

type MockClientEnsureVMFolderCall

type MockClientEnsureVMFolderCall struct {
	*gomock.Call
}

MockClientEnsureVMFolderCall wrap *gomock.Call

func (*MockClientEnsureVMFolderCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientEnsureVMFolderCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientEnsureVMFolderCall) Return

Return rewrite *gomock.Call.Return

type MockClientFindFolderCall

type MockClientFindFolderCall struct {
	*gomock.Call
}

MockClientFindFolderCall wrap *gomock.Call

func (*MockClientFindFolderCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientFindFolderCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientFindFolderCall) Return

Return rewrite *gomock.Call.Return

type MockClientFoldersCall

type MockClientFoldersCall struct {
	*gomock.Call
}

MockClientFoldersCall wrap *gomock.Call

func (*MockClientFoldersCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientFoldersCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientFoldersCall) Return

Return rewrite *gomock.Call.Return

type MockClientGetTargetDatastoreCall

type MockClientGetTargetDatastoreCall struct {
	*gomock.Call
}

MockClientGetTargetDatastoreCall wrap *gomock.Call

func (*MockClientGetTargetDatastoreCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientGetTargetDatastoreCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientGetTargetDatastoreCall) Return

Return rewrite *gomock.Call.Return

type MockClientListVMTemplatesCall

type MockClientListVMTemplatesCall struct {
	*gomock.Call
}

MockClientListVMTemplatesCall wrap *gomock.Call

func (*MockClientListVMTemplatesCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientListVMTemplatesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientListVMTemplatesCall) Return

Return rewrite *gomock.Call.Return

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Close

Close indicates an expected call of Close.

func (*MockClientMockRecorder) ComputeResources

func (mr *MockClientMockRecorder) ComputeResources(arg0 any) *MockClientComputeResourcesCall

ComputeResources indicates an expected call of ComputeResources.

func (*MockClientMockRecorder) CreateTemplateVM

func (mr *MockClientMockRecorder) CreateTemplateVM(arg0, arg1 any) *MockClientCreateTemplateVMCall

CreateTemplateVM indicates an expected call of CreateTemplateVM.

func (*MockClientMockRecorder) CreateVirtualMachine

func (mr *MockClientMockRecorder) CreateVirtualMachine(arg0, arg1 any) *MockClientCreateVirtualMachineCall

CreateVirtualMachine indicates an expected call of CreateVirtualMachine.

func (*MockClientMockRecorder) Datastores

func (mr *MockClientMockRecorder) Datastores(arg0 any) *MockClientDatastoresCall

Datastores indicates an expected call of Datastores.

func (*MockClientMockRecorder) DeleteDatastoreFile

func (mr *MockClientMockRecorder) DeleteDatastoreFile(arg0, arg1 any) *MockClientDeleteDatastoreFileCall

DeleteDatastoreFile indicates an expected call of DeleteDatastoreFile.

func (*MockClientMockRecorder) DestroyVMFolder

func (mr *MockClientMockRecorder) DestroyVMFolder(arg0, arg1 any) *MockClientDestroyVMFolderCall

DestroyVMFolder indicates an expected call of DestroyVMFolder.

func (*MockClientMockRecorder) EnsureVMFolder

func (mr *MockClientMockRecorder) EnsureVMFolder(arg0, arg1, arg2 any) *MockClientEnsureVMFolderCall

EnsureVMFolder indicates an expected call of EnsureVMFolder.

func (*MockClientMockRecorder) FindFolder

func (mr *MockClientMockRecorder) FindFolder(arg0, arg1 any) *MockClientFindFolderCall

FindFolder indicates an expected call of FindFolder.

func (*MockClientMockRecorder) Folders

Folders indicates an expected call of Folders.

func (*MockClientMockRecorder) GetTargetDatastore

func (mr *MockClientMockRecorder) GetTargetDatastore(arg0, arg1, arg2 any) *MockClientGetTargetDatastoreCall

GetTargetDatastore indicates an expected call of GetTargetDatastore.

func (*MockClientMockRecorder) ListVMTemplates

func (mr *MockClientMockRecorder) ListVMTemplates(arg0, arg1 any) *MockClientListVMTemplatesCall

ListVMTemplates indicates an expected call of ListVMTemplates.

func (*MockClientMockRecorder) MoveVMFolderInto

func (mr *MockClientMockRecorder) MoveVMFolderInto(arg0, arg1, arg2 any) *MockClientMoveVMFolderIntoCall

MoveVMFolderInto indicates an expected call of MoveVMFolderInto.

func (*MockClientMockRecorder) MoveVMsInto

func (mr *MockClientMockRecorder) MoveVMsInto(arg0, arg1 any, arg2 ...any) *MockClientMoveVMsIntoCall

MoveVMsInto indicates an expected call of MoveVMsInto.

func (*MockClientMockRecorder) RemoveVirtualMachines

func (mr *MockClientMockRecorder) RemoveVirtualMachines(arg0, arg1 any) *MockClientRemoveVirtualMachinesCall

RemoveVirtualMachines indicates an expected call of RemoveVirtualMachines.

func (*MockClientMockRecorder) ResourcePools

func (mr *MockClientMockRecorder) ResourcePools(arg0, arg1 any) *MockClientResourcePoolsCall

ResourcePools indicates an expected call of ResourcePools.

func (*MockClientMockRecorder) UpdateVirtualMachineExtraConfig

func (mr *MockClientMockRecorder) UpdateVirtualMachineExtraConfig(arg0, arg1, arg2 any) *MockClientUpdateVirtualMachineExtraConfigCall

UpdateVirtualMachineExtraConfig indicates an expected call of UpdateVirtualMachineExtraConfig.

func (*MockClientMockRecorder) UserHasRootLevelPrivilege

func (mr *MockClientMockRecorder) UserHasRootLevelPrivilege(arg0, arg1 any) *MockClientUserHasRootLevelPrivilegeCall

UserHasRootLevelPrivilege indicates an expected call of UserHasRootLevelPrivilege.

func (*MockClientMockRecorder) VirtualMachineObjectToManagedObject

func (mr *MockClientMockRecorder) VirtualMachineObjectToManagedObject(arg0, arg1 any) *MockClientVirtualMachineObjectToManagedObjectCall

VirtualMachineObjectToManagedObject indicates an expected call of VirtualMachineObjectToManagedObject.

func (*MockClientMockRecorder) VirtualMachines

func (mr *MockClientMockRecorder) VirtualMachines(arg0, arg1 any) *MockClientVirtualMachinesCall

VirtualMachines indicates an expected call of VirtualMachines.

type MockClientMoveVMFolderIntoCall

type MockClientMoveVMFolderIntoCall struct {
	*gomock.Call
}

MockClientMoveVMFolderIntoCall wrap *gomock.Call

func (*MockClientMoveVMFolderIntoCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientMoveVMFolderIntoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientMoveVMFolderIntoCall) Return

Return rewrite *gomock.Call.Return

type MockClientMoveVMsIntoCall

type MockClientMoveVMsIntoCall struct {
	*gomock.Call
}

MockClientMoveVMsIntoCall wrap *gomock.Call

func (*MockClientMoveVMsIntoCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientMoveVMsIntoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientMoveVMsIntoCall) Return

Return rewrite *gomock.Call.Return

type MockClientRemoveVirtualMachinesCall

type MockClientRemoveVirtualMachinesCall struct {
	*gomock.Call
}

MockClientRemoveVirtualMachinesCall wrap *gomock.Call

func (*MockClientRemoveVirtualMachinesCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientRemoveVirtualMachinesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientRemoveVirtualMachinesCall) Return

Return rewrite *gomock.Call.Return

type MockClientResourcePoolsCall

type MockClientResourcePoolsCall struct {
	*gomock.Call
}

MockClientResourcePoolsCall wrap *gomock.Call

func (*MockClientResourcePoolsCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientResourcePoolsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientResourcePoolsCall) Return

Return rewrite *gomock.Call.Return

type MockClientUpdateVirtualMachineExtraConfigCall

type MockClientUpdateVirtualMachineExtraConfigCall struct {
	*gomock.Call
}

MockClientUpdateVirtualMachineExtraConfigCall wrap *gomock.Call

func (*MockClientUpdateVirtualMachineExtraConfigCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientUpdateVirtualMachineExtraConfigCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientUpdateVirtualMachineExtraConfigCall) Return

Return rewrite *gomock.Call.Return

type MockClientUserHasRootLevelPrivilegeCall

type MockClientUserHasRootLevelPrivilegeCall struct {
	*gomock.Call
}

MockClientUserHasRootLevelPrivilegeCall wrap *gomock.Call

func (*MockClientUserHasRootLevelPrivilegeCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientUserHasRootLevelPrivilegeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientUserHasRootLevelPrivilegeCall) Return

Return rewrite *gomock.Call.Return

type MockClientVirtualMachineObjectToManagedObjectCall

type MockClientVirtualMachineObjectToManagedObjectCall struct {
	*gomock.Call
}

MockClientVirtualMachineObjectToManagedObjectCall wrap *gomock.Call

func (*MockClientVirtualMachineObjectToManagedObjectCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientVirtualMachineObjectToManagedObjectCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientVirtualMachineObjectToManagedObjectCall) Return

Return rewrite *gomock.Call.Return

type MockClientVirtualMachinesCall

type MockClientVirtualMachinesCall struct {
	*gomock.Call
}

MockClientVirtualMachinesCall wrap *gomock.Call

func (*MockClientVirtualMachinesCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientVirtualMachinesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientVirtualMachinesCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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