Documentation
¶
Index ¶
- Constants
- func CPUQuantityToMhz(q resource.Quantity, cpuFreqMhz uint64) int64
- func ChangePowerState(vmCtx context.VirtualMachineContext, vcVM *object.VirtualMachine, ...) error
- func CreateConfigSpec(name string, vmClassSpec *v1alpha1.VirtualMachineClassSpec, minFreq uint64, ...) *vimtypes.VirtualMachineConfigSpec
- func CreateConfigSpecForPlacement(vmCtx context.VirtualMachineContext, ...) *vimtypes.VirtualMachineConfigSpec
- func CreateInstanceStorageDiskDevices(isVolumes []v1alpha1.VirtualMachineVolume) []vimTypes.BaseVirtualDevice
- func CreateOVF(vmCtx context.VirtualMachineContext, client *rest.Client, ...) (string, error)
- func CreatePCIDevicesFromConfigSpec(pciDevsFromConfigSpec []*vimTypes.VirtualPCIPassthrough) []vimTypes.BaseVirtualDevice
- func CreatePCIDevicesFromVMClass(pciDevicesFromVMClass v1alpha1.VirtualDevices) []vimTypes.BaseVirtualDevice
- func CreatePCIPassThroughDevice(deviceKey int32, backingInfo vimTypes.BaseVirtualDeviceBackingInfo) vimTypes.BaseVirtualDevice
- func DecryptWebMKS(privKey *rsa.PrivateKey, ciphertext string) (string, error)
- func DeleteVirtualMachine(vmCtx context.VirtualMachineContext, vcVM *object.VirtualMachine) error
- func EncryptWebMKS(pubKey string, plaintext string) (string, error)
- func GetDefaultDiskProvisioningType(vmCtx context.VirtualMachineContext, vcClient *vcclient.Client, ...) (string, error)
- func GetGuestHeartBeatStatus(vmCtx context.VirtualMachineContext, vm *object.VirtualMachine) (vmopv1alpha1.GuestHeartbeatStatus, error)
- func GetVMClusterComputeResource(ctx context.Context, vcVM *object.VirtualMachine) (*object.ClusterComputeResource, error)
- func GetWebConsoleTicket(vmCtx context.VirtualMachineContext, vm *object.VirtualMachine, pubKey string) (string, error)
- func MemoryQuantityToMb(q resource.Quantity) int64
Constants ¶
const (
SourceVirtualMachineType = "VirtualMachine"
)
Variables ¶
This section is empty.
Functions ¶
func ChangePowerState ¶
func ChangePowerState( vmCtx context.VirtualMachineContext, vcVM *object.VirtualMachine, ps types.VirtualMachinePowerState) error
func CreateConfigSpec ¶
func CreateConfigSpec( name string, vmClassSpec *v1alpha1.VirtualMachineClassSpec, minFreq uint64, imageFirmware string, baseConfigSpec *vimtypes.VirtualMachineConfigSpec) *vimtypes.VirtualMachineConfigSpec
CreateConfigSpec returns a ConfigSpec that is created by overlaying the base ConfigSpec with VM Class spec and other arguments.
func CreateConfigSpecForPlacement ¶
func CreateConfigSpecForPlacement( vmCtx context.VirtualMachineContext, vmClassSpec *v1alpha1.VirtualMachineClassSpec, minFreq uint64, storageClassesToIDs map[string]string, imageFirmware string, vmClassConfigSpec *vimtypes.VirtualMachineConfigSpec) *vimtypes.VirtualMachineConfigSpec
CreateConfigSpecForPlacement creates a ConfigSpec to use for placement. Once CL deploy can accept a ConfigSpec, this should largely - or ideally entirely - be folded into CreateConfigSpec() above.
func CreateInstanceStorageDiskDevices ¶
func CreateInstanceStorageDiskDevices(isVolumes []v1alpha1.VirtualMachineVolume) []vimTypes.BaseVirtualDevice
func CreateOVF ¶
func CreateOVF(vmCtx context.VirtualMachineContext, client *rest.Client, vmPubReq *vmopv1alpha1.VirtualMachinePublishRequest, cl *imgregv1a1.ContentLibrary, actID string) (string, error)
func CreatePCIDevicesFromConfigSpec ¶ added in v1.8.1
func CreatePCIDevicesFromConfigSpec(pciDevsFromConfigSpec []*vimTypes.VirtualPCIPassthrough) []vimTypes.BaseVirtualDevice
CreatePCIDevicesFromConfigSpec creates vim25 VirtualDevices from the specified list of PCI devices from the VM Class ConfigSpec.
func CreatePCIDevicesFromVMClass ¶ added in v1.8.1
func CreatePCIDevicesFromVMClass(pciDevicesFromVMClass v1alpha1.VirtualDevices) []vimTypes.BaseVirtualDevice
CreatePCIDevicesFromVMClass creates vim25 VirtualDevices from the specified list of PCI devices from VM Class spec.
func CreatePCIPassThroughDevice ¶
func CreatePCIPassThroughDevice(deviceKey int32, backingInfo vimTypes.BaseVirtualDeviceBackingInfo) vimTypes.BaseVirtualDevice
func DecryptWebMKS ¶
func DecryptWebMKS(privKey *rsa.PrivateKey, ciphertext string) (string, error)
func DeleteVirtualMachine ¶
func DeleteVirtualMachine( vmCtx context.VirtualMachineContext, vcVM *object.VirtualMachine) error
func GetDefaultDiskProvisioningType ¶
func GetDefaultDiskProvisioningType( vmCtx context.VirtualMachineContext, vcClient *vcclient.Client, storageProfileID string) (string, error)
GetDefaultDiskProvisioningType gets the default disk provisioning type specified for the VM.
func GetGuestHeartBeatStatus ¶
func GetGuestHeartBeatStatus( vmCtx context.VirtualMachineContext, vm *object.VirtualMachine) (vmopv1alpha1.GuestHeartbeatStatus, error)
func GetVMClusterComputeResource ¶
func GetVMClusterComputeResource( ctx context.Context, vcVM *object.VirtualMachine) (*object.ClusterComputeResource, error)
GetVMClusterComputeResource returns the VM's ClusterComputeResource.
func GetWebConsoleTicket ¶
func GetWebConsoleTicket( vmCtx context.VirtualMachineContext, vm *object.VirtualMachine, pubKey string) (string, error)
func MemoryQuantityToMb ¶
Types ¶
This section is empty.