resize

package
v1.9.0-p01 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmpEdit added in v1.10.0

func CmpEdit[T comparable](a, b T, c *T, edit *bool)

func CmpPtrEdit added in v1.10.0

func CmpPtrEdit[T comparable](a *T, b *T, c **T, edit *bool)

func CompareBootOptions added in v1.10.0

CompareBootOptions compares the virtual machine's BootOptions.

func CompareCPUAllocation

CompareCPUAllocation compares CPU resource allocation.

func CompareMemoryAllocation

CompareMemoryAllocation compares Memory resource allocation.

func ComparePCIDevices added in v1.10.0

func ComparePCIDevices(
	desiredPCIDevices, currentDevices []vimtypes.BaseVirtualDevice) []vimtypes.BaseVirtualDeviceConfigSpec

ComparePCIDevices is the old "Session" comparison code in which we try to match devices by the backing instead of zipping.

func CreateResizeCPUMemoryConfigSpec

CreateResizeCPUMemoryConfigSpec takes the current VM CPU and Memory state in the ConfigInfo and compares it to the desired state in the ConfigSpec, returning a ConfigSpec with any required changes to drive the desired state.

func CreateResizeConfigSpec

CreateResizeConfigSpec takes the current VM state in the ConfigInfo and compares it to the desired state in the ConfigSpec, returning a ConfigSpec with any required changes to drive the desired state.

func MatchVirtualController added in v1.10.0

func MatchVirtualController(expectedDev, curDev, editDev vimtypes.BaseVirtualController)

func MatchVirtualDevice added in v1.10.0

func MatchVirtualDevice(expectedDev, curDev, editDev vimtypes.BaseVirtualDevice)

func MatchVirtualDeviceDeviceBackingInfo

func MatchVirtualDeviceDeviceBackingInfo(
	expectedBacking, curBacking *vimtypes.VirtualDeviceDeviceBackingInfo) bool

func MatchVirtualDeviceFileBackingInfo

func MatchVirtualDeviceFileBackingInfo(
	expectedBacking, curBacking *vimtypes.VirtualDeviceFileBackingInfo) bool

func MatchVirtualDevicePipeBackingInfo

func MatchVirtualDevicePipeBackingInfo(
	expectedBacking, curBacking *vimtypes.VirtualDevicePipeBackingInfo) bool

func MatchVirtualDeviceURIBackingInfo

func MatchVirtualDeviceURIBackingInfo(
	expectedBacking, curBacking *vimtypes.VirtualDeviceURIBackingInfo) bool

func MatchVirtualEnsoniq1371

func MatchVirtualEnsoniq1371(
	expectedDev, curDev *vimtypes.VirtualEnsoniq1371) vimtypes.BaseVirtualDevice

func MatchVirtualEthernetCardDistributedVirtualPortBackingInfo added in v1.10.0

func MatchVirtualEthernetCardDistributedVirtualPortBackingInfo(
	expectedBacking *vimtypes.VirtualEthernetCardDistributedVirtualPortBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualEthernetCardNetworkBackingInfo added in v1.10.0

func MatchVirtualEthernetCardNetworkBackingInfo(
	expectedBacking *vimtypes.VirtualEthernetCardNetworkBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualEthernetCardOpaqueNetworkBackingInfo added in v1.10.0

func MatchVirtualEthernetCardOpaqueNetworkBackingInfo(
	expectedBacking *vimtypes.VirtualEthernetCardOpaqueNetworkBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualHdAudioCard

func MatchVirtualHdAudioCard(
	expectedDev, curDev *vimtypes.VirtualHdAudioCard) vimtypes.BaseVirtualDevice

func MatchVirtualMachineVMCIDevice

func MatchVirtualMachineVMCIDevice(
	expectedDev, curDev *vimtypes.VirtualMachineVMCIDevice) vimtypes.BaseVirtualDevice

func MatchVirtualMachineVideoCard

func MatchVirtualMachineVideoCard(
	expectedDev, curDev *vimtypes.VirtualMachineVideoCard) vimtypes.BaseVirtualDevice

func MatchVirtualPCIPassthroughDVXBackingInfo added in v1.10.0

func MatchVirtualPCIPassthroughDVXBackingInfo(
	b *vimtypes.VirtualPCIPassthroughDvxBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualPCIPassthroughDynamicBackingInfo added in v1.10.0

func MatchVirtualPCIPassthroughDynamicBackingInfo(
	expectedBacking *vimtypes.VirtualPCIPassthroughDynamicBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualPCIPassthroughVmiopBackingInfo added in v1.10.0

func MatchVirtualPCIPassthroughVmiopBackingInfo(
	expectedBacking *vimtypes.VirtualPCIPassthroughVmiopBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualParallelPort

func MatchVirtualParallelPort(
	expectedDev, curDev *vimtypes.VirtualParallelPort) vimtypes.BaseVirtualDevice

func MatchVirtualParallelPortDeviceBackingInfo

func MatchVirtualParallelPortDeviceBackingInfo(
	expectedBacking *vimtypes.VirtualParallelPortDeviceBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualParallelPortFileBackingInfo

func MatchVirtualParallelPortFileBackingInfo(
	expectedBacking *vimtypes.VirtualParallelPortFileBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualPointingDevice

func MatchVirtualPointingDevice(
	expectedDev, curDev *vimtypes.VirtualPointingDevice) vimtypes.BaseVirtualDevice

func MatchVirtualPointingDeviceDeviceBackingInfo

func MatchVirtualPointingDeviceDeviceBackingInfo(
	expectedBacking *vimtypes.VirtualPointingDeviceDeviceBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualPrecisionClock

func MatchVirtualPrecisionClock(
	expectedDev, curDev *vimtypes.VirtualPrecisionClock) vimtypes.BaseVirtualDevice

func MatchVirtualPrecisionClockSystemClockBackingInfo

func MatchVirtualPrecisionClockSystemClockBackingInfo(
	expectedBacking *vimtypes.VirtualPrecisionClockSystemClockBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualSCSIPassthrough

func MatchVirtualSCSIPassthrough(
	expectedDev, curDev *vimtypes.VirtualSCSIPassthrough) vimtypes.BaseVirtualDevice

func MatchVirtualSCSIPassthroughDeviceBackingInfo

func MatchVirtualSCSIPassthroughDeviceBackingInfo(
	expectedBacking *vimtypes.VirtualSCSIPassthroughDeviceBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualSerialPort

func MatchVirtualSerialPort(
	expectedDev, curDev *vimtypes.VirtualSerialPort) vimtypes.BaseVirtualDevice

func MatchVirtualSerialPortDeviceBackingInfo

func MatchVirtualSerialPortDeviceBackingInfo(
	expectedBacking *vimtypes.VirtualSerialPortDeviceBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualSerialPortFileBackingInfo

func MatchVirtualSerialPortFileBackingInfo(
	expectedBacking *vimtypes.VirtualSerialPortFileBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualSerialPortPipeBackingInfo

func MatchVirtualSerialPortPipeBackingInfo(
	expectedBacking *vimtypes.VirtualSerialPortPipeBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualSerialPortURIBackingInfo

func MatchVirtualSerialPortURIBackingInfo(
	expectedBacking *vimtypes.VirtualSerialPortURIBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualSoundBlaster16

func MatchVirtualSoundBlaster16(
	expectedDev, curDev *vimtypes.VirtualSoundBlaster16) vimtypes.BaseVirtualDevice

func MatchVirtualSoundCardDeviceBackingInfo

func MatchVirtualSoundCardDeviceBackingInfo(
	expectedBacking *vimtypes.VirtualSoundCardDeviceBackingInfo,
	baseBacking vimtypes.BaseVirtualDeviceBackingInfo) bool

func MatchVirtualTPM

func MatchVirtualTPM(
	expectedDev, curDev *vimtypes.VirtualTPM) vimtypes.BaseVirtualDevice

func MatchVirtualUSBController

func MatchVirtualUSBController(
	expectedDev, curDev *vimtypes.VirtualUSBController) vimtypes.BaseVirtualDevice

func MatchVirtualUSBXHCIController

func MatchVirtualUSBXHCIController(
	expectedDev, curDev *vimtypes.VirtualUSBXHCIController) vimtypes.BaseVirtualDevice

func MatchVirtualWDT

func MatchVirtualWDT(
	expectedDev, curDev *vimtypes.VirtualWDT) vimtypes.BaseVirtualDevice

Types

This section is empty.

Jump to

Keyboard shortcuts

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