Documentation ¶
Overview ¶
Package mock_vsphere is a generated GoMock package.
Index ¶
- type MockVSphereClient
- func (m *MockVSphereClient) CloneVirtualMachine(ctx context.Context, vm *object.VirtualMachine, folder *object.Folder, ...) (*types.ManagedObjectReference, error)
- func (m *MockVSphereClient) DestroyVirtualMachine(ctx context.Context, vm *object.VirtualMachine) error
- func (m *MockVSphereClient) EXPECT() *MockVSphereClientMockRecorder
- func (m *MockVSphereClient) GetVirtualMachinePowerState(ctx context.Context, vm *object.VirtualMachine) (types.VirtualMachinePowerState, error)
- func (m *MockVSphereClient) ListVirtualMachines(ctx context.Context) ([]mo.VirtualMachine, error)
- func (m *MockVSphereClient) LoadDatastore(ctx context.Context, name string) (*object.Datastore, error)
- func (m *MockVSphereClient) LoadFolder(ctx context.Context) (*object.Folder, error)
- func (m *MockVSphereClient) LoadNetwork(ctx context.Context, name string) (object.NetworkReference, error)
- func (m *MockVSphereClient) LoadResourcePool(ctx context.Context) (*object.ResourcePool, error)
- func (m *MockVSphereClient) LoadVirtualMachine(ctx context.Context, name string) (*object.VirtualMachine, error)
- func (m *MockVSphereClient) LoadVirtualMachineDevices(ctx context.Context, vm *object.VirtualMachine) (object.VirtualDeviceList, error)
- func (m *MockVSphereClient) MarkVirtualMachineAsTemplate(ctx context.Context, vm *object.VirtualMachine) error
- func (m *MockVSphereClient) NewVirtualMachine(ctx context.Context, cloneSpec *types.VirtualMachineCloneSpec, ...) (*object.VirtualMachine, error)
- func (m *MockVSphereClient) ProcessManager(ctx context.Context, vm *object.VirtualMachine) (*guest.ProcessManager, error)
- func (m *MockVSphereClient) RenameVirtualMachine(ctx context.Context, vm *object.VirtualMachine, newName string) error
- func (m *MockVSphereClient) SetupEthernetCard(ctx context.Context, card *types.VirtualEthernetCard, ethernetCardName string, ...) error
- func (m *MockVSphereClient) ShutdownVirtualMachine(ctx context.Context, vm *object.VirtualMachine) error
- func (m *MockVSphereClient) StartProgramInGuest(ctx context.Context, procman *guest.ProcessManager, ...) (*types.StartProgramInGuestResponse, error)
- func (m *MockVSphereClient) StartVirtualMachine(ctx context.Context, vm *object.VirtualMachine) error
- func (m *MockVSphereClient) WaitForVirtualMachineIP(ctx context.Context, vm *object.VirtualMachine, IPAddress *string) error
- func (m *MockVSphereClient) WaitForVirtualMachineShutdown(ctx context.Context, vm *object.VirtualMachine) error
- type MockVSphereClientMockRecorder
- func (mr *MockVSphereClientMockRecorder) CloneVirtualMachine(ctx, vm, folder, name, config interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) DestroyVirtualMachine(ctx, vm interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) GetVirtualMachinePowerState(ctx, vm interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) ListVirtualMachines(ctx interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) LoadDatastore(ctx, name interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) LoadFolder(ctx interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) LoadNetwork(ctx, name interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) LoadResourcePool(ctx interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) LoadVirtualMachine(ctx, name interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) LoadVirtualMachineDevices(ctx, vm interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) MarkVirtualMachineAsTemplate(ctx, vm interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) NewVirtualMachine(ctx, cloneSpec, ref interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) ProcessManager(ctx, vm interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) RenameVirtualMachine(ctx, vm, newName interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) SetupEthernetCard(ctx, card, ethernetCardName, network interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) ShutdownVirtualMachine(ctx, vm interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) StartProgramInGuest(ctx, procman, req interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) StartVirtualMachine(ctx, vm interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) WaitForVirtualMachineIP(ctx, vm, IPAddress interface{}) *gomock.Call
- func (mr *MockVSphereClientMockRecorder) WaitForVirtualMachineShutdown(ctx, vm interface{}) *gomock.Call
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 ¶
func (m *MockVSphereClient) CloneVirtualMachine(ctx context.Context, vm *object.VirtualMachine, folder *object.Folder, name string, config *types.VirtualMachineCloneSpec) (*types.ManagedObjectReference, error)
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 ¶
func (m *MockVSphereClient) EXPECT() *MockVSphereClientMockRecorder
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 ¶
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 ¶
func (m *MockVSphereClient) NewVirtualMachine(ctx context.Context, cloneSpec *types.VirtualMachineCloneSpec, ref *types.ManagedObjectReference) (*object.VirtualMachine, error)
NewVirtualMachine mocks base method.
func (*MockVSphereClient) ProcessManager ¶
func (m *MockVSphereClient) ProcessManager(ctx context.Context, vm *object.VirtualMachine) (*guest.ProcessManager, error)
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 ¶
func (m *MockVSphereClient) StartProgramInGuest(ctx context.Context, procman *guest.ProcessManager, req *types.StartProgramInGuest) (*types.StartProgramInGuestResponse, error)
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.