mocks

package
v0.0.0-...-f7dd865 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 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 MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Close

func (mr *MockClientMockRecorder) Close(arg0 any) *gomock.Call

Close indicates an expected call of Close.

func (*MockClientMockRecorder) ComputeResources

func (mr *MockClientMockRecorder) ComputeResources(arg0 any) *gomock.Call

ComputeResources indicates an expected call of ComputeResources.

func (*MockClientMockRecorder) CreateTemplateVM

func (mr *MockClientMockRecorder) CreateTemplateVM(arg0, arg1 any) *gomock.Call

CreateTemplateVM indicates an expected call of CreateTemplateVM.

func (*MockClientMockRecorder) CreateVirtualMachine

func (mr *MockClientMockRecorder) CreateVirtualMachine(arg0, arg1 any) *gomock.Call

CreateVirtualMachine indicates an expected call of CreateVirtualMachine.

func (*MockClientMockRecorder) Datastores

func (mr *MockClientMockRecorder) Datastores(arg0 any) *gomock.Call

Datastores indicates an expected call of Datastores.

func (*MockClientMockRecorder) DeleteDatastoreFile

func (mr *MockClientMockRecorder) DeleteDatastoreFile(arg0, arg1 any) *gomock.Call

DeleteDatastoreFile indicates an expected call of DeleteDatastoreFile.

func (*MockClientMockRecorder) DestroyVMFolder

func (mr *MockClientMockRecorder) DestroyVMFolder(arg0, arg1 any) *gomock.Call

DestroyVMFolder indicates an expected call of DestroyVMFolder.

func (*MockClientMockRecorder) EnsureVMFolder

func (mr *MockClientMockRecorder) EnsureVMFolder(arg0, arg1, arg2 any) *gomock.Call

EnsureVMFolder indicates an expected call of EnsureVMFolder.

func (*MockClientMockRecorder) FindFolder

func (mr *MockClientMockRecorder) FindFolder(arg0, arg1 any) *gomock.Call

FindFolder indicates an expected call of FindFolder.

func (*MockClientMockRecorder) Folders

func (mr *MockClientMockRecorder) Folders(arg0 any) *gomock.Call

Folders indicates an expected call of Folders.

func (*MockClientMockRecorder) GetTargetDatastore

func (mr *MockClientMockRecorder) GetTargetDatastore(arg0, arg1, arg2 any) *gomock.Call

GetTargetDatastore indicates an expected call of GetTargetDatastore.

func (*MockClientMockRecorder) ListVMTemplates

func (mr *MockClientMockRecorder) ListVMTemplates(arg0, arg1 any) *gomock.Call

ListVMTemplates indicates an expected call of ListVMTemplates.

func (*MockClientMockRecorder) MoveVMFolderInto

func (mr *MockClientMockRecorder) MoveVMFolderInto(arg0, arg1, arg2 any) *gomock.Call

MoveVMFolderInto indicates an expected call of MoveVMFolderInto.

func (*MockClientMockRecorder) MoveVMsInto

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

MoveVMsInto indicates an expected call of MoveVMsInto.

func (*MockClientMockRecorder) RemoveVirtualMachines

func (mr *MockClientMockRecorder) RemoveVirtualMachines(arg0, arg1 any) *gomock.Call

RemoveVirtualMachines indicates an expected call of RemoveVirtualMachines.

func (*MockClientMockRecorder) ResourcePools

func (mr *MockClientMockRecorder) ResourcePools(arg0, arg1 any) *gomock.Call

ResourcePools indicates an expected call of ResourcePools.

func (*MockClientMockRecorder) UpdateVirtualMachineExtraConfig

func (mr *MockClientMockRecorder) UpdateVirtualMachineExtraConfig(arg0, arg1, arg2 any) *gomock.Call

UpdateVirtualMachineExtraConfig indicates an expected call of UpdateVirtualMachineExtraConfig.

func (*MockClientMockRecorder) UserHasRootLevelPrivilege

func (mr *MockClientMockRecorder) UserHasRootLevelPrivilege(arg0, arg1 any) *gomock.Call

UserHasRootLevelPrivilege indicates an expected call of UserHasRootLevelPrivilege.

func (*MockClientMockRecorder) VirtualMachineObjectToManagedObject

func (mr *MockClientMockRecorder) VirtualMachineObjectToManagedObject(arg0, arg1 any) *gomock.Call

VirtualMachineObjectToManagedObject indicates an expected call of VirtualMachineObjectToManagedObject.

func (*MockClientMockRecorder) VirtualMachines

func (mr *MockClientMockRecorder) VirtualMachines(arg0, arg1 any) *gomock.Call

VirtualMachines indicates an expected call of VirtualMachines.

Jump to

Keyboard shortcuts

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