Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) Close(arg0 context.Context) error
- func (m *MockClient) ComputeResources(arg0 context.Context) ([]vsphereclient.ComputeResource, error)
- func (m *MockClient) CreateTemplateVM(arg0 context.Context, arg1 vsphereclient.ImportOVAParameters) (*object.VirtualMachine, error)
- func (m *MockClient) CreateVirtualMachine(arg0 context.Context, arg1 vsphereclient.CreateVirtualMachineParams) (*mo.VirtualMachine, error)
- func (m *MockClient) Datastores(arg0 context.Context) ([]mo.Datastore, error)
- func (m *MockClient) DeleteDatastoreFile(arg0 context.Context, arg1 string) error
- func (m *MockClient) DestroyVMFolder(arg0 context.Context, arg1 string) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) EnsureVMFolder(arg0 context.Context, arg1, arg2 string) (*object.Folder, error)
- func (m *MockClient) FindFolder(arg0 context.Context, arg1 string) (*object.Folder, error)
- func (m *MockClient) Folders(arg0 context.Context) (*object.DatacenterFolders, error)
- func (m *MockClient) GetTargetDatastore(arg0 context.Context, arg1 *mo.ComputeResource, arg2 string) (*object.Datastore, error)
- func (m *MockClient) ListVMTemplates(arg0 context.Context, arg1 string) ([]*object.VirtualMachine, error)
- func (m *MockClient) MoveVMFolderInto(arg0 context.Context, arg1, arg2 string) error
- func (m *MockClient) MoveVMsInto(arg0 context.Context, arg1 string, arg2 ...types.ManagedObjectReference) error
- func (m *MockClient) RemoveVirtualMachines(arg0 context.Context, arg1 string) error
- func (m *MockClient) ResourcePools(arg0 context.Context, arg1 string) ([]*object.ResourcePool, error)
- func (m *MockClient) UpdateVirtualMachineExtraConfig(arg0 context.Context, arg1 *mo.VirtualMachine, arg2 map[string]string) error
- func (m *MockClient) UserHasRootLevelPrivilege(arg0 context.Context, arg1 string) (bool, error)
- func (m *MockClient) VirtualMachineObjectToManagedObject(arg0 context.Context, arg1 *object.VirtualMachine) (mo.VirtualMachine, error)
- func (m *MockClient) VirtualMachines(arg0 context.Context, arg1 string) ([]*mo.VirtualMachine, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Close(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ComputeResources(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) CreateTemplateVM(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) CreateVirtualMachine(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Datastores(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteDatastoreFile(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DestroyVMFolder(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) EnsureVMFolder(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) FindFolder(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Folders(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetTargetDatastore(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ListVMTemplates(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) MoveVMFolderInto(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) MoveVMsInto(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) RemoveVirtualMachines(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ResourcePools(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UpdateVirtualMachineExtraConfig(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UserHasRootLevelPrivilege(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) VirtualMachineObjectToManagedObject(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) VirtualMachines(arg0, arg1 interface{}) *gomock.Call
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 ¶
func (m *MockClient) CreateTemplateVM(arg0 context.Context, arg1 vsphereclient.ImportOVAParameters) (*object.VirtualMachine, error)
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 ¶
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 ¶
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 ¶
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 interface{}) *gomock.Call
Close indicates an expected call of Close.
func (*MockClientMockRecorder) ComputeResources ¶
func (mr *MockClientMockRecorder) ComputeResources(arg0 interface{}) *gomock.Call
ComputeResources indicates an expected call of ComputeResources.
func (*MockClientMockRecorder) CreateTemplateVM ¶
func (mr *MockClientMockRecorder) CreateTemplateVM(arg0, arg1 interface{}) *gomock.Call
CreateTemplateVM indicates an expected call of CreateTemplateVM.
func (*MockClientMockRecorder) CreateVirtualMachine ¶
func (mr *MockClientMockRecorder) CreateVirtualMachine(arg0, arg1 interface{}) *gomock.Call
CreateVirtualMachine indicates an expected call of CreateVirtualMachine.
func (*MockClientMockRecorder) Datastores ¶
func (mr *MockClientMockRecorder) Datastores(arg0 interface{}) *gomock.Call
Datastores indicates an expected call of Datastores.
func (*MockClientMockRecorder) DeleteDatastoreFile ¶
func (mr *MockClientMockRecorder) DeleteDatastoreFile(arg0, arg1 interface{}) *gomock.Call
DeleteDatastoreFile indicates an expected call of DeleteDatastoreFile.
func (*MockClientMockRecorder) DestroyVMFolder ¶
func (mr *MockClientMockRecorder) DestroyVMFolder(arg0, arg1 interface{}) *gomock.Call
DestroyVMFolder indicates an expected call of DestroyVMFolder.
func (*MockClientMockRecorder) EnsureVMFolder ¶
func (mr *MockClientMockRecorder) EnsureVMFolder(arg0, arg1, arg2 interface{}) *gomock.Call
EnsureVMFolder indicates an expected call of EnsureVMFolder.
func (*MockClientMockRecorder) FindFolder ¶
func (mr *MockClientMockRecorder) FindFolder(arg0, arg1 interface{}) *gomock.Call
FindFolder indicates an expected call of FindFolder.
func (*MockClientMockRecorder) Folders ¶
func (mr *MockClientMockRecorder) Folders(arg0 interface{}) *gomock.Call
Folders indicates an expected call of Folders.
func (*MockClientMockRecorder) GetTargetDatastore ¶
func (mr *MockClientMockRecorder) GetTargetDatastore(arg0, arg1, arg2 interface{}) *gomock.Call
GetTargetDatastore indicates an expected call of GetTargetDatastore.
func (*MockClientMockRecorder) ListVMTemplates ¶
func (mr *MockClientMockRecorder) ListVMTemplates(arg0, arg1 interface{}) *gomock.Call
ListVMTemplates indicates an expected call of ListVMTemplates.
func (*MockClientMockRecorder) MoveVMFolderInto ¶
func (mr *MockClientMockRecorder) MoveVMFolderInto(arg0, arg1, arg2 interface{}) *gomock.Call
MoveVMFolderInto indicates an expected call of MoveVMFolderInto.
func (*MockClientMockRecorder) MoveVMsInto ¶
func (mr *MockClientMockRecorder) MoveVMsInto(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
MoveVMsInto indicates an expected call of MoveVMsInto.
func (*MockClientMockRecorder) RemoveVirtualMachines ¶
func (mr *MockClientMockRecorder) RemoveVirtualMachines(arg0, arg1 interface{}) *gomock.Call
RemoveVirtualMachines indicates an expected call of RemoveVirtualMachines.
func (*MockClientMockRecorder) ResourcePools ¶
func (mr *MockClientMockRecorder) ResourcePools(arg0, arg1 interface{}) *gomock.Call
ResourcePools indicates an expected call of ResourcePools.
func (*MockClientMockRecorder) UpdateVirtualMachineExtraConfig ¶
func (mr *MockClientMockRecorder) UpdateVirtualMachineExtraConfig(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateVirtualMachineExtraConfig indicates an expected call of UpdateVirtualMachineExtraConfig.
func (*MockClientMockRecorder) UserHasRootLevelPrivilege ¶
func (mr *MockClientMockRecorder) UserHasRootLevelPrivilege(arg0, arg1 interface{}) *gomock.Call
UserHasRootLevelPrivilege indicates an expected call of UserHasRootLevelPrivilege.
func (*MockClientMockRecorder) VirtualMachineObjectToManagedObject ¶
func (mr *MockClientMockRecorder) VirtualMachineObjectToManagedObject(arg0, arg1 interface{}) *gomock.Call
VirtualMachineObjectToManagedObject indicates an expected call of VirtualMachineObjectToManagedObject.
func (*MockClientMockRecorder) VirtualMachines ¶
func (mr *MockClientMockRecorder) VirtualMachines(arg0, arg1 interface{}) *gomock.Call
VirtualMachines indicates an expected call of VirtualMachines.