Documentation ¶
Index ¶
- type VirtualMachine
- func (vm *VirtualMachine) Clone(ctx context.Context, folder *object.Folder, ...) (*types.ManagedObjectReference, error)
- func (vm *VirtualMachine) Create(ctx context.Context, folder *object.Folder, pool *object.ResourcePool, ...) error
- func (vm *VirtualMachine) Customize(ctx context.Context, spec types.CustomizationSpec) error
- func (vm *VirtualMachine) GetNetworkDevices(ctx context.Context) (object.VirtualDeviceList, error)
- func (vm *VirtualMachine) GetProperties(ctx context.Context, properties []string) (*mo.VirtualMachine, error)
- func (vm *VirtualMachine) GetVirtualDevices(ctx context.Context) (object.VirtualDeviceList, error)
- func (vm *VirtualMachine) GetVirtualDisks(ctx context.Context) (object.VirtualDeviceList, error)
- func (vm *VirtualMachine) MoRef() types.ManagedObjectReference
- func (vm *VirtualMachine) Reconfigure(ctx context.Context, configSpec *types.VirtualMachineConfigSpec) error
- func (vm *VirtualMachine) ReferenceValue() string
- func (vm *VirtualMachine) SetPowerState(ctx context.Context, ...) error
- func (vm *VirtualMachine) UniqueID(ctx context.Context) (string, error)
- func (vm *VirtualMachine) VcVM() *object.VirtualMachine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VirtualMachine ¶
type VirtualMachine struct { Name string // contains filtered or unexported fields }
func NewVMFromObject ¶
func NewVMFromObject(objVM *object.VirtualMachine) *VirtualMachine
func (*VirtualMachine) Clone ¶
func (vm *VirtualMachine) Clone(ctx context.Context, folder *object.Folder, cloneSpec *types.VirtualMachineCloneSpec) (*types.ManagedObjectReference, error)
func (*VirtualMachine) Create ¶
func (vm *VirtualMachine) Create(ctx context.Context, folder *object.Folder, pool *object.ResourcePool, vmSpec *types.VirtualMachineConfigSpec) error
func (*VirtualMachine) Customize ¶
func (vm *VirtualMachine) Customize(ctx context.Context, spec types.CustomizationSpec) error
func (*VirtualMachine) GetNetworkDevices ¶
func (vm *VirtualMachine) GetNetworkDevices(ctx context.Context) (object.VirtualDeviceList, error)
func (*VirtualMachine) GetProperties ¶
func (vm *VirtualMachine) GetProperties(ctx context.Context, properties []string) (*mo.VirtualMachine, error)
func (*VirtualMachine) GetVirtualDevices ¶
func (vm *VirtualMachine) GetVirtualDevices(ctx context.Context) (object.VirtualDeviceList, error)
GetVirtualDevices returns the VMs VirtualDeviceList.
func (*VirtualMachine) GetVirtualDisks ¶
func (vm *VirtualMachine) GetVirtualDisks(ctx context.Context) (object.VirtualDeviceList, error)
GetVirtualDisks returns the list of VMs vmdks.
func (*VirtualMachine) MoRef ¶
func (vm *VirtualMachine) MoRef() types.ManagedObjectReference
func (*VirtualMachine) Reconfigure ¶
func (vm *VirtualMachine) Reconfigure(ctx context.Context, configSpec *types.VirtualMachineConfigSpec) error
func (*VirtualMachine) ReferenceValue ¶
func (vm *VirtualMachine) ReferenceValue() string
func (*VirtualMachine) SetPowerState ¶
func (vm *VirtualMachine) SetPowerState( ctx context.Context, currentPowerState, desiredPowerState vmopv1.VirtualMachinePowerState, desiredPowerOpMode vmopv1.VirtualMachinePowerOpMode) error
func (*VirtualMachine) UniqueID ¶
func (vm *VirtualMachine) UniqueID(ctx context.Context) (string, error)
func (*VirtualMachine) VcVM ¶
func (vm *VirtualMachine) VcVM() *object.VirtualMachine
Click to show internal directories.
Click to hide internal directories.