mock_vsphere

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package mock_vsphere is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockVSphereClient

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

MockVSphereClient is a mock of VSphereClient interface.

func NewMockVSphereClient

func NewMockVSphereClient(ctrl *gomock.Controller) *MockVSphereClient

NewMockVSphereClient creates a new mock instance.

func (*MockVSphereClient) CloneVirtualMachine

CloneVirtualMachine mocks base method.

func (*MockVSphereClient) DestroyVirtualMachine

func (m *MockVSphereClient) DestroyVirtualMachine(ctx context.Context, vm *object.VirtualMachine) error

DestroyVirtualMachine mocks base method.

func (*MockVSphereClient) EXPECT

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

func (*MockVSphereClient) GetVirtualMachinePowerState

func (m *MockVSphereClient) GetVirtualMachinePowerState(ctx context.Context, vm *object.VirtualMachine) (types.VirtualMachinePowerState, error)

GetVirtualMachinePowerState mocks base method.

func (*MockVSphereClient) ListVirtualMachines

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

ListVirtualMachines mocks base method.

func (*MockVSphereClient) LoadDatastore

func (m *MockVSphereClient) LoadDatastore(ctx context.Context, name string) (*object.Datastore, error)

LoadDatastore mocks base method.

func (*MockVSphereClient) LoadFolder

func (m *MockVSphereClient) LoadFolder(ctx context.Context) (*object.Folder, error)

LoadFolder mocks base method.

func (*MockVSphereClient) LoadNetwork

func (m *MockVSphereClient) LoadNetwork(ctx context.Context, name string) (object.NetworkReference, error)

LoadNetwork mocks base method.

func (*MockVSphereClient) LoadResourcePool

func (m *MockVSphereClient) LoadResourcePool(ctx context.Context) (*object.ResourcePool, error)

LoadResourcePool mocks base method.

func (*MockVSphereClient) LoadVirtualMachine

func (m *MockVSphereClient) LoadVirtualMachine(ctx context.Context, name string) (*object.VirtualMachine, error)

LoadVirtualMachine mocks base method.

func (*MockVSphereClient) LoadVirtualMachineDevices

func (m *MockVSphereClient) LoadVirtualMachineDevices(ctx context.Context, vm *object.VirtualMachine) (object.VirtualDeviceList, error)

LoadVirtualMachineDevices mocks base method.

func (*MockVSphereClient) MarkVirtualMachineAsTemplate

func (m *MockVSphereClient) MarkVirtualMachineAsTemplate(ctx context.Context, vm *object.VirtualMachine) error

MarkVirtualMachineAsTemplate mocks base method.

func (*MockVSphereClient) NewVirtualMachine

NewVirtualMachine mocks base method.

func (*MockVSphereClient) ProcessManager

ProcessManager mocks base method.

func (*MockVSphereClient) RenameVirtualMachine

func (m *MockVSphereClient) RenameVirtualMachine(ctx context.Context, vm *object.VirtualMachine, newName string) error

RenameVirtualMachine mocks base method.

func (*MockVSphereClient) SetupEthernetCard

func (m *MockVSphereClient) SetupEthernetCard(ctx context.Context, card *types.VirtualEthernetCard, ethernetCardName string, network object.NetworkReference) error

SetupEthernetCard mocks base method.

func (*MockVSphereClient) ShutdownVirtualMachine

func (m *MockVSphereClient) ShutdownVirtualMachine(ctx context.Context, vm *object.VirtualMachine) error

ShutdownVirtualMachine mocks base method.

func (*MockVSphereClient) StartProgramInGuest

StartProgramInGuest mocks base method.

func (*MockVSphereClient) StartVirtualMachine

func (m *MockVSphereClient) StartVirtualMachine(ctx context.Context, vm *object.VirtualMachine) error

StartVirtualMachine mocks base method.

func (*MockVSphereClient) WaitForVirtualMachineIP

func (m *MockVSphereClient) WaitForVirtualMachineIP(ctx context.Context, vm *object.VirtualMachine, IPAddress *string) error

WaitForVirtualMachineIP mocks base method.

func (*MockVSphereClient) WaitForVirtualMachineShutdown

func (m *MockVSphereClient) WaitForVirtualMachineShutdown(ctx context.Context, vm *object.VirtualMachine) error

WaitForVirtualMachineShutdown mocks base method.

type MockVSphereClientMockRecorder

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

MockVSphereClientMockRecorder is the mock recorder for MockVSphereClient.

func (*MockVSphereClientMockRecorder) CloneVirtualMachine

func (mr *MockVSphereClientMockRecorder) CloneVirtualMachine(ctx, vm, folder, name, config interface{}) *gomock.Call

CloneVirtualMachine indicates an expected call of CloneVirtualMachine.

func (*MockVSphereClientMockRecorder) DestroyVirtualMachine

func (mr *MockVSphereClientMockRecorder) DestroyVirtualMachine(ctx, vm interface{}) *gomock.Call

DestroyVirtualMachine indicates an expected call of DestroyVirtualMachine.

func (*MockVSphereClientMockRecorder) GetVirtualMachinePowerState

func (mr *MockVSphereClientMockRecorder) GetVirtualMachinePowerState(ctx, vm interface{}) *gomock.Call

GetVirtualMachinePowerState indicates an expected call of GetVirtualMachinePowerState.

func (*MockVSphereClientMockRecorder) ListVirtualMachines

func (mr *MockVSphereClientMockRecorder) ListVirtualMachines(ctx interface{}) *gomock.Call

ListVirtualMachines indicates an expected call of ListVirtualMachines.

func (*MockVSphereClientMockRecorder) LoadDatastore

func (mr *MockVSphereClientMockRecorder) LoadDatastore(ctx, name interface{}) *gomock.Call

LoadDatastore indicates an expected call of LoadDatastore.

func (*MockVSphereClientMockRecorder) LoadFolder

func (mr *MockVSphereClientMockRecorder) LoadFolder(ctx interface{}) *gomock.Call

LoadFolder indicates an expected call of LoadFolder.

func (*MockVSphereClientMockRecorder) LoadNetwork

func (mr *MockVSphereClientMockRecorder) LoadNetwork(ctx, name interface{}) *gomock.Call

LoadNetwork indicates an expected call of LoadNetwork.

func (*MockVSphereClientMockRecorder) LoadResourcePool

func (mr *MockVSphereClientMockRecorder) LoadResourcePool(ctx interface{}) *gomock.Call

LoadResourcePool indicates an expected call of LoadResourcePool.

func (*MockVSphereClientMockRecorder) LoadVirtualMachine

func (mr *MockVSphereClientMockRecorder) LoadVirtualMachine(ctx, name interface{}) *gomock.Call

LoadVirtualMachine indicates an expected call of LoadVirtualMachine.

func (*MockVSphereClientMockRecorder) LoadVirtualMachineDevices

func (mr *MockVSphereClientMockRecorder) LoadVirtualMachineDevices(ctx, vm interface{}) *gomock.Call

LoadVirtualMachineDevices indicates an expected call of LoadVirtualMachineDevices.

func (*MockVSphereClientMockRecorder) MarkVirtualMachineAsTemplate

func (mr *MockVSphereClientMockRecorder) MarkVirtualMachineAsTemplate(ctx, vm interface{}) *gomock.Call

MarkVirtualMachineAsTemplate indicates an expected call of MarkVirtualMachineAsTemplate.

func (*MockVSphereClientMockRecorder) NewVirtualMachine

func (mr *MockVSphereClientMockRecorder) NewVirtualMachine(ctx, cloneSpec, ref interface{}) *gomock.Call

NewVirtualMachine indicates an expected call of NewVirtualMachine.

func (*MockVSphereClientMockRecorder) ProcessManager

func (mr *MockVSphereClientMockRecorder) ProcessManager(ctx, vm interface{}) *gomock.Call

ProcessManager indicates an expected call of ProcessManager.

func (*MockVSphereClientMockRecorder) RenameVirtualMachine

func (mr *MockVSphereClientMockRecorder) RenameVirtualMachine(ctx, vm, newName interface{}) *gomock.Call

RenameVirtualMachine indicates an expected call of RenameVirtualMachine.

func (*MockVSphereClientMockRecorder) SetupEthernetCard

func (mr *MockVSphereClientMockRecorder) SetupEthernetCard(ctx, card, ethernetCardName, network interface{}) *gomock.Call

SetupEthernetCard indicates an expected call of SetupEthernetCard.

func (*MockVSphereClientMockRecorder) ShutdownVirtualMachine

func (mr *MockVSphereClientMockRecorder) ShutdownVirtualMachine(ctx, vm interface{}) *gomock.Call

ShutdownVirtualMachine indicates an expected call of ShutdownVirtualMachine.

func (*MockVSphereClientMockRecorder) StartProgramInGuest

func (mr *MockVSphereClientMockRecorder) StartProgramInGuest(ctx, procman, req interface{}) *gomock.Call

StartProgramInGuest indicates an expected call of StartProgramInGuest.

func (*MockVSphereClientMockRecorder) StartVirtualMachine

func (mr *MockVSphereClientMockRecorder) StartVirtualMachine(ctx, vm interface{}) *gomock.Call

StartVirtualMachine indicates an expected call of StartVirtualMachine.

func (*MockVSphereClientMockRecorder) WaitForVirtualMachineIP

func (mr *MockVSphereClientMockRecorder) WaitForVirtualMachineIP(ctx, vm, IPAddress interface{}) *gomock.Call

WaitForVirtualMachineIP indicates an expected call of WaitForVirtualMachineIP.

func (*MockVSphereClientMockRecorder) WaitForVirtualMachineShutdown

func (mr *MockVSphereClientMockRecorder) WaitForVirtualMachineShutdown(ctx, vm interface{}) *gomock.Call

WaitForVirtualMachineShutdown indicates an expected call of WaitForVirtualMachineShutdown.

Jump to

Keyboard shortcuts

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