Documentation
¶
Overview ¶
Package virtualization provides purego-based Go bindings for the macOS Virtualization framework.
Apple documentation: https://developer.apple.com/documentation/virtualization
Index ¶
- func VZBridgedNetworkInterfaceNetworkInterfaces() *foundation.NSArray[*VZBridgedNetworkInterface]
- func VZCustomVirtioDeviceConfigurationMaximumAllowedSharedMemoryRegionCount() uint
- func VZErrorDomain() *foundation.NSString
- func VZGenericPlatformConfigurationIsNestedVirtualizationSupported() bool
- func VZLinuxRosettaAbstractSocketCachingOptionsMaximumNameLength() uint
- func VZLinuxRosettaDirectoryShareInstallRosettaWithCompletionHandler(completionHandler func(unsafe.Pointer))
- func VZLinuxRosettaUnixSocketCachingOptionsMaximumPathLength() uint
- func VZMacOSRestoreImageFetchLatestSupportedWithCompletionHandler(completionHandler func(*VZMacOSRestoreImage, unsafe.Pointer))
- func VZMacOSRestoreImageLoadFileURLCompletionHandler(fileURL *foundation.NSURL, ...)
- func VZMultipleDirectoryShareCanonicalizedNameFromName(name *foundation.NSString) *foundation.NSString
- func VZMultipleDirectoryShareValidateNameError(name *foundation.NSString) (bool, error)
- func VZNetworkBlockDeviceStorageDeviceAttachmentValidateURLError(url *foundation.NSURL) (bool, error)
- func VZSpiceAgentPortAttachmentSpiceAgentPortName() *foundation.NSString
- func VZVirtioBlockDeviceConfigurationValidateBlockDeviceIdentifierError(blockDeviceIdentifier *foundation.NSString) (bool, error)
- func VZVirtioFileSystemDeviceConfigurationMacOSGuestAutomountTag() *foundation.NSString
- func VZVirtioFileSystemDeviceConfigurationValidateTagError(tag *foundation.NSString) (bool, error)
- func VZVirtualMachineConfigurationMaximumAllowedCPUCount() uint
- func VZVirtualMachineConfigurationMaximumAllowedMemorySize() uint64
- func VZVirtualMachineConfigurationMinimumAllowedCPUCount() uint
- func VZVirtualMachineConfigurationMinimumAllowedMemorySize() uint64
- func VZVirtualMachineIsSupported() bool
- type Acl_entry_id_t
- type Acl_flag_t
- type Acl_perm_t
- type Acl_tag_t
- type Acl_type_t
- type CGLCPContextPriorityRequest
- type Clockid_t
- type Dispatch_autorelease_frequency_t
- type Dispatch_block_flags_t
- type EvCmd
- type Filesec_property_t
- type Idtype_t
- type Ipc_info_object_type_t
- type Launch_data_type_t
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type Mach_vm_range_flags_t
- type Mach_vm_range_flavor_t
- type Mach_vm_range_tag_t
- type Mpo_flags_t
- type NXMouseButton
- type Os_clockid_t
- type Os_unfair_lock_flags_t
- type PMPageToPaperMappingType
- type Ptrauth_key
- type Qos_class_t
- type Task_shared_region_stubs_t
- type VZAudioDeviceConfiguration
- type VZAudioInputStreamSource
- type VZAudioOutputStreamSink
- type VZBootLoader
- type VZBridgedNetworkDeviceAttachment
- type VZBridgedNetworkInterface
- type VZConsoleDevice
- type VZConsoleDeviceConfiguration
- type VZConsolePortConfiguration
- type VZCustomVirtioDevice
- func (o *VZCustomVirtioDevice) Delegate() VZCustomVirtioDeviceDelegate
- func (o *VZCustomVirtioDevice) DeviceQueue() *foundation.NSObject
- func (o *VZCustomVirtioDevice) GuestMemoryMappingAtPhysicalAddressLength(physicalAddress uint64, length uint) *VZGuestMemoryMapping
- func (o *VZCustomVirtioDevice) NegotiatedFeatures() *VZNegotiatedVirtioFeatureSet
- func (o *VZCustomVirtioDevice) QueueAtIndex(index uint16) *VZVirtioQueue
- func (o *VZCustomVirtioDevice) RequestDeviceReset()
- func (o *VZCustomVirtioDevice) SetDelegate(delegate VZCustomVirtioDeviceDelegate)
- func (o *VZCustomVirtioDevice) SharedMemoryRegions() *foundation.NSArray[*VZVirtioSharedMemoryRegion]
- func (o *VZCustomVirtioDevice) UpdateDeviceSpecificConfigurationCompletionHandler(newConfiguration *VZVirtioDeviceSpecificConfiguration, ...)
- type VZCustomVirtioDeviceConfiguration
- func (o *VZCustomVirtioDeviceConfiguration) DeviceID() uint16
- func (o *VZCustomVirtioDeviceConfiguration) DeviceSpecificConfiguration() *VZVirtioDeviceSpecificConfiguration
- func (o *VZCustomVirtioDeviceConfiguration) MandatoryFeatures() *VZVirtioFeatureSet
- func (o *VZCustomVirtioDeviceConfiguration) OptionalFeatures() *VZVirtioFeatureSet
- func (o *VZCustomVirtioDeviceConfiguration) PCIClassID() uint8
- func (o *VZCustomVirtioDeviceConfiguration) PCISubclassID() uint8
- func (o *VZCustomVirtioDeviceConfiguration) Provider() *VZCustomVirtioDeviceProvider
- func (o *VZCustomVirtioDeviceConfiguration) SetDeviceID(deviceID uint16)
- func (o *VZCustomVirtioDeviceConfiguration) SetDeviceSpecificConfiguration(deviceSpecificConfiguration *VZVirtioDeviceSpecificConfiguration)
- func (o *VZCustomVirtioDeviceConfiguration) SetPCIClassID(pciClassID uint8)
- func (o *VZCustomVirtioDeviceConfiguration) SetPCISubclassID(pciSubclassID uint8)
- func (o *VZCustomVirtioDeviceConfiguration) SetProvider(provider *VZCustomVirtioDeviceProvider)
- func (o *VZCustomVirtioDeviceConfiguration) SetSharedMemoryRegions(...)
- func (o *VZCustomVirtioDeviceConfiguration) SetSupportsSaveRestore(supportsSaveRestore bool)
- func (o *VZCustomVirtioDeviceConfiguration) SetVirtioQueueCount(virtioQueueCount uint16)
- func (o *VZCustomVirtioDeviceConfiguration) SharedMemoryRegions() *foundation.NSArray[*VZVirtioSharedMemoryRegionConfiguration]
- func (o *VZCustomVirtioDeviceConfiguration) SupportsSaveRestore() bool
- func (o *VZCustomVirtioDeviceConfiguration) VirtioQueueCount() uint16
- type VZCustomVirtioDeviceConfigurationDelegate
- type VZCustomVirtioDeviceDelegate
- type VZCustomVirtioDeviceDelegateProvider
- func (o *VZCustomVirtioDeviceDelegateProvider) Delegate() VZCustomVirtioDeviceConfigurationDelegate
- func (o *VZCustomVirtioDeviceDelegateProvider) DeviceQueue() *foundation.NSObject
- func (o *VZCustomVirtioDeviceDelegateProvider) InitWithDeviceQueueDelegate(deviceQueue *foundation.NSObject, ...) *VZCustomVirtioDeviceDelegateProvider
- type VZCustomVirtioDeviceProvider
- type VZDirectoryShare
- type VZDirectorySharingDevice
- type VZDirectorySharingDeviceConfiguration
- type VZDiskBlockDeviceStorageDeviceAttachment
- func (o *VZDiskBlockDeviceStorageDeviceAttachment) FileHandle() *foundation.NSFileHandle
- func (o *VZDiskBlockDeviceStorageDeviceAttachment) InitWithFileHandleReadOnlySynchronizationModeError(fileHandle *foundation.NSFileHandle, readOnly bool, ...) (*VZDiskBlockDeviceStorageDeviceAttachment, error)
- func (o *VZDiskBlockDeviceStorageDeviceAttachment) IsReadOnly() bool
- func (o *VZDiskBlockDeviceStorageDeviceAttachment) SynchronizationMode() VZDiskSynchronizationMode
- type VZDiskImageCachingMode
- type VZDiskImageStorageDeviceAttachment
- func (o *VZDiskImageStorageDeviceAttachment) CachingMode() VZDiskImageCachingMode
- func (o *VZDiskImageStorageDeviceAttachment) InitWithURLReadOnlyCachingModeSynchronizationModeError(url *foundation.NSURL, readOnly bool, cachingMode VZDiskImageCachingMode, ...) (*VZDiskImageStorageDeviceAttachment, error)
- func (o *VZDiskImageStorageDeviceAttachment) InitWithURLReadOnlyError(url *foundation.NSURL, readOnly bool) (*VZDiskImageStorageDeviceAttachment, error)
- func (o *VZDiskImageStorageDeviceAttachment) IsReadOnly() bool
- func (o *VZDiskImageStorageDeviceAttachment) SynchronizationMode() VZDiskImageSynchronizationMode
- func (o *VZDiskImageStorageDeviceAttachment) URL() *foundation.NSURL
- type VZDiskImageSynchronizationMode
- type VZDiskSynchronizationMode
- type VZEFIBootLoader
- type VZEFISignature
- type VZEFISignatureDatabaseConfiguration
- func (o *VZEFISignatureDatabaseConfiguration) DbSignatures() *foundation.NSArray[*VZEFISignatureList]
- func (o *VZEFISignatureDatabaseConfiguration) DbxSignatures() *foundation.NSArray[*VZEFISignatureList]
- func (o *VZEFISignatureDatabaseConfiguration) InitWithKeyExchangeKeysDbSignaturesDbxSignatures(keyExchangeKeys *foundation.NSArray[*VZEFISignatureList], ...) *VZEFISignatureDatabaseConfiguration
- func (o *VZEFISignatureDatabaseConfiguration) KeyExchangeKeys() *foundation.NSArray[*VZEFISignatureList]
- type VZEFISignatureList
- func (o *VZEFISignatureList) InitWithContentsOfURLError(url *foundation.NSURL) (*VZEFISignatureList, error)
- func (o *VZEFISignatureList) InitWithSignatures(signatures *foundation.NSArray[*VZEFISignature]) *VZEFISignatureList
- func (o *VZEFISignatureList) Signatures() *foundation.NSArray[*VZEFISignature]
- type VZEFISignatureSHA256Hash
- type VZEFISignatureX509Certificate
- type VZEFIVariableStore
- func (o *VZEFIVariableStore) DisableSecureBootWithError() (bool, error)
- func (o *VZEFIVariableStore) EnableSecureBootUsingDefaultPlatformKeyWithError() (bool, error)
- func (o *VZEFIVariableStore) EnableSecureBootWithPlatformKeyError(platformKey unsafe.Pointer) (bool, error)
- func (o *VZEFIVariableStore) EnrollDefaultSecureBootSignaturesWithError() (bool, error)
- func (o *VZEFIVariableStore) EnrollSecureBootSignaturesError(signatures *VZEFISignatureDatabaseConfiguration) (bool, error)
- func (o *VZEFIVariableStore) GetEnrolledSecureBootSignaturesWithError() (*VZEFISignatureDatabaseConfiguration, error)
- func (o *VZEFIVariableStore) GetSecureBootEnabledError(enabled *bool) (bool, error)
- func (o *VZEFIVariableStore) InitCreatingVariableStoreAtURLOptionsError(url *foundation.NSURL, options VZEFIVariableStoreInitializationOptions) (*VZEFIVariableStore, error)
- func (o *VZEFIVariableStore) InitWithURL(url *foundation.NSURL) *VZEFIVariableStore
- func (o *VZEFIVariableStore) ResetSecureBootWithError() (bool, error)
- func (o *VZEFIVariableStore) URL() *foundation.NSURL
- type VZEFIVariableStoreInitializationOptions
- type VZEntropyDeviceConfiguration
- type VZErrorCode
- type VZFileHandleNetworkDeviceAttachment
- func (o *VZFileHandleNetworkDeviceAttachment) FileHandle() *foundation.NSFileHandle
- func (o *VZFileHandleNetworkDeviceAttachment) InitWithFileHandle(fileHandle *foundation.NSFileHandle) *VZFileHandleNetworkDeviceAttachment
- func (o *VZFileHandleNetworkDeviceAttachment) MaximumTransmissionUnit() int
- func (o *VZFileHandleNetworkDeviceAttachment) SetMaximumTransmissionUnit(maximumTransmissionUnit int)
- type VZFileHandleSerialPortAttachment
- func (o *VZFileHandleSerialPortAttachment) FileHandleForReading() *foundation.NSFileHandle
- func (o *VZFileHandleSerialPortAttachment) FileHandleForWriting() *foundation.NSFileHandle
- func (o *VZFileHandleSerialPortAttachment) InitWithFileHandleForReadingFileHandleForWriting(fileHandleForReading *foundation.NSFileHandle, ...) *VZFileHandleSerialPortAttachment
- type VZFileSerialPortAttachment
- type VZGenericMachineIdentifier
- type VZGenericPlatformConfiguration
- func (o *VZGenericPlatformConfiguration) Init() *VZGenericPlatformConfiguration
- func (o *VZGenericPlatformConfiguration) IsNestedVirtualizationEnabled() bool
- func (o *VZGenericPlatformConfiguration) MachineIdentifier() *VZGenericMachineIdentifier
- func (o *VZGenericPlatformConfiguration) SetMachineIdentifier(machineIdentifier *VZGenericMachineIdentifier)
- func (o *VZGenericPlatformConfiguration) SetNestedVirtualizationEnabled(nestedVirtualizationEnabled bool)
- type VZGraphicsDevice
- type VZGraphicsDeviceConfiguration
- type VZGraphicsDisplay
- func (o *VZGraphicsDisplay) AddObserver(observer VZGraphicsDisplayObserver)
- func (o *VZGraphicsDisplay) ReconfigureWithConfigurationError(configuration *VZGraphicsDisplayConfiguration) (bool, error)
- func (o *VZGraphicsDisplay) ReconfigureWithSizeInPixelsError(sizeInPixels corefoundation.CGSize) (bool, error)
- func (o *VZGraphicsDisplay) RemoveObserver(observer VZGraphicsDisplayObserver)
- func (o *VZGraphicsDisplay) SizeInPixels() corefoundation.CGSize
- type VZGraphicsDisplayConfiguration
- type VZGraphicsDisplayObserver
- type VZGuestMemoryMapping
- type VZGuestProvisioningOptions
- type VZHostAudioInputStreamSource
- type VZHostAudioOutputStreamSink
- type VZKeyboardConfiguration
- type VZLinuxBootLoader
- func (o *VZLinuxBootLoader) CommandLine() *foundation.NSString
- func (o *VZLinuxBootLoader) InitWithKernelURL(kernelURL *foundation.NSURL) *VZLinuxBootLoader
- func (o *VZLinuxBootLoader) InitialRamdiskURL() *foundation.NSURL
- func (o *VZLinuxBootLoader) KernelURL() *foundation.NSURL
- func (o *VZLinuxBootLoader) SetCommandLine(commandLine *foundation.NSString)
- func (o *VZLinuxBootLoader) SetInitialRamdiskURL(initialRamdiskURL *foundation.NSURL)
- func (o *VZLinuxBootLoader) SetKernelURL(kernelURL *foundation.NSURL)
- type VZLinuxRosettaAbstractSocketCachingOptions
- type VZLinuxRosettaAvailability
- type VZLinuxRosettaCachingOptions
- type VZLinuxRosettaDirectoryShare
- type VZLinuxRosettaUnixSocketCachingOptions
- func (o *VZLinuxRosettaUnixSocketCachingOptions) Init() *VZLinuxRosettaUnixSocketCachingOptions
- func (o *VZLinuxRosettaUnixSocketCachingOptions) InitWithPathError(path *foundation.NSString) (*VZLinuxRosettaUnixSocketCachingOptions, error)
- func (o *VZLinuxRosettaUnixSocketCachingOptions) Path() *foundation.NSString
- type VZMACAddress
- func (o *VZMACAddress) EthernetAddress() unsafe.Pointer
- func (o *VZMACAddress) InitWithEthernetAddress(ethernetAddress unsafe.Pointer) *VZMACAddress
- func (o *VZMACAddress) InitWithString(string_ *foundation.NSString) *VZMACAddress
- func (o *VZMACAddress) IsBroadcastAddress() bool
- func (o *VZMACAddress) IsLocallyAdministeredAddress() bool
- func (o *VZMACAddress) IsMulticastAddress() bool
- func (o *VZMACAddress) IsUnicastAddress() bool
- func (o *VZMACAddress) IsUniversallyAdministeredAddress() bool
- func (o *VZMACAddress) String() *foundation.NSString
- type VZMacAuxiliaryStorage
- func (o *VZMacAuxiliaryStorage) InitCreatingStorageAtURLHardwareModelOptionsError(url *foundation.NSURL, hardwareModel *VZMacHardwareModel, ...) (*VZMacAuxiliaryStorage, error)
- func (o *VZMacAuxiliaryStorage) InitWithContentsOfURL(url *foundation.NSURL) *VZMacAuxiliaryStoragedeprecated
- func (o *VZMacAuxiliaryStorage) InitWithURL(url *foundation.NSURL) *VZMacAuxiliaryStorage
- func (o *VZMacAuxiliaryStorage) URL() *foundation.NSURL
- type VZMacAuxiliaryStorageInitializationOptions
- type VZMacGraphicsDevice
- type VZMacGraphicsDeviceConfiguration
- func (o *VZMacGraphicsDeviceConfiguration) Displays() *foundation.NSArray[*VZMacGraphicsDisplayConfiguration]
- func (o *VZMacGraphicsDeviceConfiguration) Init() *VZMacGraphicsDeviceConfiguration
- func (o *VZMacGraphicsDeviceConfiguration) SetDisplays(displays *foundation.NSArray[*VZMacGraphicsDisplayConfiguration])
- type VZMacGraphicsDisplay
- type VZMacGraphicsDisplayConfiguration
- func (o *VZMacGraphicsDisplayConfiguration) HeightInPixels() int
- func (o *VZMacGraphicsDisplayConfiguration) InitForScreenSizeInPoints(screen *appkit.NSScreen, sizeInPoints corefoundation.CGSize) *VZMacGraphicsDisplayConfiguration
- func (o *VZMacGraphicsDisplayConfiguration) InitWithWidthInPixelsHeightInPixelsPixelsPerInch(widthInPixels int, heightInPixels int, pixelsPerInch int) *VZMacGraphicsDisplayConfiguration
- func (o *VZMacGraphicsDisplayConfiguration) PixelsPerInch() int
- func (o *VZMacGraphicsDisplayConfiguration) SetHeightInPixels(heightInPixels int)
- func (o *VZMacGraphicsDisplayConfiguration) SetPixelsPerInch(pixelsPerInch int)
- func (o *VZMacGraphicsDisplayConfiguration) SetWidthInPixels(widthInPixels int)
- func (o *VZMacGraphicsDisplayConfiguration) WidthInPixels() int
- type VZMacGuestProvisioningOptions
- func (o *VZMacGuestProvisioningOptions) EnablesRemoteLogin() bool
- func (o *VZMacGuestProvisioningOptions) FullName() *foundation.NSString
- func (o *VZMacGuestProvisioningOptions) Init() *VZMacGuestProvisioningOptions
- func (o *VZMacGuestProvisioningOptions) LogsInAutomatically() bool
- func (o *VZMacGuestProvisioningOptions) Password() *foundation.NSString
- func (o *VZMacGuestProvisioningOptions) SetEnablesRemoteLogin(enablesRemoteLogin bool)
- func (o *VZMacGuestProvisioningOptions) SetFullName(fullName *foundation.NSString)
- func (o *VZMacGuestProvisioningOptions) SetLogsInAutomatically(logsInAutomatically bool)
- func (o *VZMacGuestProvisioningOptions) SetPassword(password *foundation.NSString)
- func (o *VZMacGuestProvisioningOptions) SetUsername(username *foundation.NSString)
- func (o *VZMacGuestProvisioningOptions) Username() *foundation.NSString
- type VZMacHardwareModel
- type VZMacKeyboardConfiguration
- type VZMacMachineIdentifier
- type VZMacOSBootLoader
- type VZMacOSConfigurationRequirements
- type VZMacOSInstaller
- func (o *VZMacOSInstaller) InitWithVirtualMachineRestoreImageURL(virtualMachine *VZVirtualMachine, restoreImageFileURL *foundation.NSURL) *VZMacOSInstaller
- func (o *VZMacOSInstaller) InstallWithCompletionHandler(completionHandler func(unsafe.Pointer))
- func (o *VZMacOSInstaller) Progress() *foundation.NSProgress
- func (o *VZMacOSInstaller) RestoreImageURL() *foundation.NSURL
- func (o *VZMacOSInstaller) VirtualMachine() *VZVirtualMachine
- type VZMacOSRestoreImage
- func (o *VZMacOSRestoreImage) BuildVersion() *foundation.NSString
- func (o *VZMacOSRestoreImage) IsSupported() bool
- func (o *VZMacOSRestoreImage) MostFeaturefulSupportedConfiguration() *VZMacOSConfigurationRequirements
- func (o *VZMacOSRestoreImage) OperatingSystemVersion() foundation.NSOperatingSystemVersion
- func (o *VZMacOSRestoreImage) URL() *foundation.NSURL
- type VZMacOSVirtualMachineStartOptions
- func (o *VZMacOSVirtualMachineStartOptions) GuestProvisioningOptions() *VZMacGuestProvisioningOptions
- func (o *VZMacOSVirtualMachineStartOptions) SetGuestProvisioningOptionsError(guestProvisioningOptions *VZMacGuestProvisioningOptions) (bool, error)
- func (o *VZMacOSVirtualMachineStartOptions) SetStartUpFromMacOSRecovery(startUpFromMacOSRecovery bool)
- func (o *VZMacOSVirtualMachineStartOptions) StartUpFromMacOSRecovery() bool
- type VZMacPlatformConfiguration
- func (o *VZMacPlatformConfiguration) AuxiliaryStorage() *VZMacAuxiliaryStorage
- func (o *VZMacPlatformConfiguration) HardwareModel() *VZMacHardwareModel
- func (o *VZMacPlatformConfiguration) Init() *VZMacPlatformConfiguration
- func (o *VZMacPlatformConfiguration) MachineIdentifier() *VZMacMachineIdentifier
- func (o *VZMacPlatformConfiguration) SetAuxiliaryStorage(auxiliaryStorage *VZMacAuxiliaryStorage)
- func (o *VZMacPlatformConfiguration) SetHardwareModel(hardwareModel *VZMacHardwareModel)
- func (o *VZMacPlatformConfiguration) SetMachineIdentifier(machineIdentifier *VZMacMachineIdentifier)
- type VZMacTrackpadConfiguration
- type VZMemoryBalloonDevice
- type VZMemoryBalloonDeviceConfiguration
- type VZMultipleDirectoryShare
- func (o *VZMultipleDirectoryShare) Directories() *foundation.NSDictionary[*foundation.NSString, *VZSharedDirectory]
- func (o *VZMultipleDirectoryShare) Init() *VZMultipleDirectoryShare
- func (o *VZMultipleDirectoryShare) InitWithDirectories(directories *foundation.NSDictionary[*foundation.NSString, *VZSharedDirectory]) *VZMultipleDirectoryShare
- type VZNATNetworkDeviceAttachment
- type VZNVMExpressControllerDeviceConfiguration
- type VZNegotiatedVirtioFeatureSet
- type VZNetworkBlockDeviceStorageDeviceAttachment
- func (o *VZNetworkBlockDeviceStorageDeviceAttachment) Delegate() VZNetworkBlockDeviceStorageDeviceAttachmentDelegate
- func (o *VZNetworkBlockDeviceStorageDeviceAttachment) InitWithURLError(url *foundation.NSURL) (*VZNetworkBlockDeviceStorageDeviceAttachment, error)
- func (o *VZNetworkBlockDeviceStorageDeviceAttachment) InitWithURLTimeoutForcedReadOnlySynchronizationModeError(url *foundation.NSURL, timeout float64, forcedReadOnly bool, ...) (*VZNetworkBlockDeviceStorageDeviceAttachment, error)
- func (o *VZNetworkBlockDeviceStorageDeviceAttachment) IsForcedReadOnly() bool
- func (o *VZNetworkBlockDeviceStorageDeviceAttachment) SetDelegate(delegate VZNetworkBlockDeviceStorageDeviceAttachmentDelegate)
- func (o *VZNetworkBlockDeviceStorageDeviceAttachment) SynchronizationMode() VZDiskSynchronizationMode
- func (o *VZNetworkBlockDeviceStorageDeviceAttachment) Timeout() float64
- func (o *VZNetworkBlockDeviceStorageDeviceAttachment) URL() *foundation.NSURL
- type VZNetworkBlockDeviceStorageDeviceAttachmentDelegate
- type VZNetworkDevice
- type VZNetworkDeviceAttachment
- type VZNetworkDeviceConfiguration
- func (o *VZNetworkDeviceConfiguration) Attachment() *VZNetworkDeviceAttachment
- func (o *VZNetworkDeviceConfiguration) MACAddress() *VZMACAddress
- func (o *VZNetworkDeviceConfiguration) SetAttachment(attachment *VZNetworkDeviceAttachment)
- func (o *VZNetworkDeviceConfiguration) SetMACAddress(macAddress *VZMACAddress)
- type VZPlatformConfiguration
- type VZPointingDeviceConfiguration
- type VZSerialPortAttachment
- type VZSerialPortConfiguration
- type VZSharedDirectory
- type VZSingleDirectoryShare
- type VZSocketDevice
- type VZSocketDeviceConfiguration
- type VZSpiceAgentPortAttachment
- type VZStorageDevice
- type VZStorageDeviceAttachment
- type VZStorageDeviceConfiguration
- type VZUSBController
- func (o *VZUSBController) AttachDeviceCompletionHandler(device VZUSBDevice, completionHandler func(unsafe.Pointer))
- func (o *VZUSBController) Delegate() VZUSBControllerDelegate
- func (o *VZUSBController) DetachDeviceCompletionHandler(device VZUSBDevice, completionHandler func(unsafe.Pointer))
- func (o *VZUSBController) SetDelegate(delegate VZUSBControllerDelegate)
- func (o *VZUSBController) UsbDevices() *foundation.NSArray[VZUSBDevice]
- type VZUSBControllerConfiguration
- type VZUSBControllerDelegate
- type VZUSBDevice
- type VZUSBDeviceConfiguration
- type VZUSBKeyboardConfiguration
- type VZUSBMassStorageDevice
- type VZUSBMassStorageDeviceConfiguration
- type VZUSBPassthroughDevice
- type VZUSBPassthroughDeviceConfiguration
- type VZUSBScreenCoordinatePointingDeviceConfiguration
- type VZVirtioBlockDeviceConfiguration
- func (o *VZVirtioBlockDeviceConfiguration) BlockDeviceIdentifier() *foundation.NSString
- func (o *VZVirtioBlockDeviceConfiguration) InitWithAttachment(attachment *VZStorageDeviceAttachment) *VZVirtioBlockDeviceConfiguration
- func (o *VZVirtioBlockDeviceConfiguration) SetBlockDeviceIdentifier(blockDeviceIdentifier *foundation.NSString)
- type VZVirtioConsoleDevice
- type VZVirtioConsoleDeviceConfiguration
- type VZVirtioConsoleDeviceDelegate
- type VZVirtioConsoleDeviceSerialPortConfiguration
- type VZVirtioConsolePort
- type VZVirtioConsolePortArray
- type VZVirtioConsolePortConfiguration
- func (o *VZVirtioConsolePortConfiguration) Init() *VZVirtioConsolePortConfiguration
- func (o *VZVirtioConsolePortConfiguration) IsConsole() bool
- func (o *VZVirtioConsolePortConfiguration) Name() *foundation.NSString
- func (o *VZVirtioConsolePortConfiguration) SetIsConsole(isConsole bool)
- func (o *VZVirtioConsolePortConfiguration) SetName(name *foundation.NSString)
- type VZVirtioConsolePortConfigurationArray
- func (o *VZVirtioConsolePortConfigurationArray) MaximumPortCount() uint32
- func (o *VZVirtioConsolePortConfigurationArray) ObjectAtIndexedSubscript(portIndex uint) *VZVirtioConsolePortConfiguration
- func (o *VZVirtioConsolePortConfigurationArray) SetMaximumPortCount(maximumPortCount uint32)
- func (o *VZVirtioConsolePortConfigurationArray) SetObjectAtIndexedSubscript(configuration *VZVirtioConsolePortConfiguration, portIndex uint)
- type VZVirtioDeviceSpecificConfiguration
- type VZVirtioEntropyDeviceConfiguration
- type VZVirtioFeatureSet
- type VZVirtioFileSystemDevice
- type VZVirtioFileSystemDeviceConfiguration
- func (o *VZVirtioFileSystemDeviceConfiguration) InitWithTag(tag *foundation.NSString) *VZVirtioFileSystemDeviceConfiguration
- func (o *VZVirtioFileSystemDeviceConfiguration) SetShare(share *VZDirectoryShare)
- func (o *VZVirtioFileSystemDeviceConfiguration) SetTag(tag *foundation.NSString)
- func (o *VZVirtioFileSystemDeviceConfiguration) Share() *VZDirectoryShare
- func (o *VZVirtioFileSystemDeviceConfiguration) Tag() *foundation.NSString
- type VZVirtioGraphicsDevice
- type VZVirtioGraphicsDeviceConfiguration
- func (o *VZVirtioGraphicsDeviceConfiguration) Init() *VZVirtioGraphicsDeviceConfiguration
- func (o *VZVirtioGraphicsDeviceConfiguration) Scanouts() *foundation.NSArray[*VZVirtioGraphicsScanoutConfiguration]
- func (o *VZVirtioGraphicsDeviceConfiguration) SetScanouts(scanouts *foundation.NSArray[*VZVirtioGraphicsScanoutConfiguration])
- type VZVirtioGraphicsScanout
- type VZVirtioGraphicsScanoutConfiguration
- func (o *VZVirtioGraphicsScanoutConfiguration) HeightInPixels() int
- func (o *VZVirtioGraphicsScanoutConfiguration) InitWithWidthInPixelsHeightInPixels(widthInPixels int, heightInPixels int) *VZVirtioGraphicsScanoutConfiguration
- func (o *VZVirtioGraphicsScanoutConfiguration) SetHeightInPixels(heightInPixels int)
- func (o *VZVirtioGraphicsScanoutConfiguration) SetWidthInPixels(widthInPixels int)
- func (o *VZVirtioGraphicsScanoutConfiguration) WidthInPixels() int
- type VZVirtioNetworkDeviceConfiguration
- type VZVirtioQueue
- type VZVirtioQueueElement
- func (o *VZVirtioQueueElement) PeekIntoReadBuffersWithExactLengthError(exactLength uint) (*foundation.NSData, error)
- func (o *VZVirtioQueueElement) ReadBuffers() *foundation.NSArray[*foundation.NSData]
- func (o *VZVirtioQueueElement) ReadBuffersAvailableByteCount() uint
- func (o *VZVirtioQueueElement) ReadBuffersByteCount() uint
- func (o *VZVirtioQueueElement) ReadBytesIntoBufferExactLengthError(buffer unsafe.Pointer, exactLength uint) (bool, error)
- func (o *VZVirtioQueueElement) ReadBytesWithExactLengthError(exactLength uint) (*foundation.NSData, error)
- func (o *VZVirtioQueueElement) ReturnToQueue()
- func (o *VZVirtioQueueElement) WriteBufferExactLengthError(buffer unsafe.Pointer, exactLength uint) (bool, error)
- func (o *VZVirtioQueueElement) WriteBuffersAvailableByteCount() uint
- func (o *VZVirtioQueueElement) WriteBuffersByteCount() uint
- func (o *VZVirtioQueueElement) WriteDataError(data *foundation.NSData) (bool, error)
- func (o *VZVirtioQueueElement) WrittenByteCount() uint
- type VZVirtioSharedMemoryRegion
- func (o *VZVirtioSharedMemoryRegion) MapMemoryAtOffsetSizeCompletionHandler(memory unsafe.Pointer, offset uint64, size uint64, ...)
- func (o *VZVirtioSharedMemoryRegion) RegionID() uint8
- func (o *VZVirtioSharedMemoryRegion) Size() uint64
- func (o *VZVirtioSharedMemoryRegion) UnmapMemoryAtOffsetSizeCompletionHandler(offset uint64, size uint64, completionHandler func(unsafe.Pointer))
- type VZVirtioSharedMemoryRegionConfiguration
- type VZVirtioSocketConnection
- type VZVirtioSocketDevice
- func (o *VZVirtioSocketDevice) ConnectToPortCompletionHandler(port uint32, completionHandler func(*VZVirtioSocketConnection, unsafe.Pointer))
- func (o *VZVirtioSocketDevice) RemoveSocketListenerForPort(port uint32)
- func (o *VZVirtioSocketDevice) SetSocketListenerForPort(listener *VZVirtioSocketListener, port uint32)
- type VZVirtioSocketDeviceConfiguration
- type VZVirtioSocketListener
- type VZVirtioSocketListenerDelegate
- type VZVirtioSoundDeviceConfiguration
- func (o *VZVirtioSoundDeviceConfiguration) Init() *VZVirtioSoundDeviceConfiguration
- func (o *VZVirtioSoundDeviceConfiguration) SetStreams(streams *foundation.NSArray[*VZVirtioSoundDeviceStreamConfiguration])
- func (o *VZVirtioSoundDeviceConfiguration) Streams() *foundation.NSArray[*VZVirtioSoundDeviceStreamConfiguration]
- type VZVirtioSoundDeviceInputStreamConfiguration
- type VZVirtioSoundDeviceOutputStreamConfiguration
- type VZVirtioSoundDeviceStreamConfiguration
- type VZVirtioTraditionalMemoryBalloonDevice
- type VZVirtioTraditionalMemoryBalloonDeviceConfiguration
- type VZVirtualMachine
- func (o *VZVirtualMachine) CanPause() bool
- func (o *VZVirtualMachine) CanRequestStop() bool
- func (o *VZVirtualMachine) CanResume() bool
- func (o *VZVirtualMachine) CanStart() bool
- func (o *VZVirtualMachine) CanStop() bool
- func (o *VZVirtualMachine) ConsoleDevices() *foundation.NSArray[*VZConsoleDevice]
- func (o *VZVirtualMachine) Delegate() VZVirtualMachineDelegate
- func (o *VZVirtualMachine) DirectorySharingDevices() *foundation.NSArray[*VZDirectorySharingDevice]
- func (o *VZVirtualMachine) GraphicsDevices() *foundation.NSArray[*VZGraphicsDevice]
- func (o *VZVirtualMachine) InitWithConfiguration(configuration *VZVirtualMachineConfiguration) *VZVirtualMachine
- func (o *VZVirtualMachine) InitWithConfigurationQueue(configuration *VZVirtualMachineConfiguration, queue *foundation.NSObject) *VZVirtualMachine
- func (o *VZVirtualMachine) MemoryBalloonDevices() *foundation.NSArray[*VZMemoryBalloonDevice]
- func (o *VZVirtualMachine) NetworkDevices() *foundation.NSArray[*VZNetworkDevice]
- func (o *VZVirtualMachine) PauseWithCompletionHandler(completionHandler func(unsafe.Pointer))
- func (o *VZVirtualMachine) Queue() *foundation.NSObject
- func (o *VZVirtualMachine) RequestStopWithError() (bool, error)
- func (o *VZVirtualMachine) RestoreMachineStateFromURLCompletionHandler(saveFileURL *foundation.NSURL, completionHandler func(unsafe.Pointer))
- func (o *VZVirtualMachine) ResumeWithCompletionHandler(completionHandler func(unsafe.Pointer))
- func (o *VZVirtualMachine) SaveMachineStateToURLCompletionHandler(saveFileURL *foundation.NSURL, completionHandler func(unsafe.Pointer))
- func (o *VZVirtualMachine) SetDelegate(delegate VZVirtualMachineDelegate)
- func (o *VZVirtualMachine) SocketDevices() *foundation.NSArray[*VZSocketDevice]
- func (o *VZVirtualMachine) StartWithCompletionHandler(completionHandler func(unsafe.Pointer))
- func (o *VZVirtualMachine) StartWithOptionsCompletionHandler(options *VZVirtualMachineStartOptions, completionHandler func(unsafe.Pointer))
- func (o *VZVirtualMachine) State() VZVirtualMachineState
- func (o *VZVirtualMachine) StopWithCompletionHandler(completionHandler func(unsafe.Pointer))
- func (o *VZVirtualMachine) UsbControllers() *foundation.NSArray[*VZUSBController]
- type VZVirtualMachineConfiguration
- func (o *VZVirtualMachineConfiguration) AudioDevices() *foundation.NSArray[*VZAudioDeviceConfiguration]
- func (o *VZVirtualMachineConfiguration) BootLoader() *VZBootLoader
- func (o *VZVirtualMachineConfiguration) CPUCount() uint
- func (o *VZVirtualMachineConfiguration) ConsoleDevices() *foundation.NSArray[*VZConsoleDeviceConfiguration]
- func (o *VZVirtualMachineConfiguration) CustomVirtioDevices() *foundation.NSArray[*VZCustomVirtioDeviceConfiguration]
- func (o *VZVirtualMachineConfiguration) DirectorySharingDevices() *foundation.NSArray[*VZDirectorySharingDeviceConfiguration]
- func (o *VZVirtualMachineConfiguration) EntropyDevices() *foundation.NSArray[*VZEntropyDeviceConfiguration]
- func (o *VZVirtualMachineConfiguration) GraphicsDevices() *foundation.NSArray[*VZGraphicsDeviceConfiguration]
- func (o *VZVirtualMachineConfiguration) Keyboards() *foundation.NSArray[*VZKeyboardConfiguration]
- func (o *VZVirtualMachineConfiguration) Label() *foundation.NSString
- func (o *VZVirtualMachineConfiguration) MemoryBalloonDevices() *foundation.NSArray[*VZMemoryBalloonDeviceConfiguration]
- func (o *VZVirtualMachineConfiguration) MemorySize() uint64
- func (o *VZVirtualMachineConfiguration) NetworkDevices() *foundation.NSArray[*VZNetworkDeviceConfiguration]
- func (o *VZVirtualMachineConfiguration) Platform() *VZPlatformConfiguration
- func (o *VZVirtualMachineConfiguration) PointingDevices() *foundation.NSArray[*VZPointingDeviceConfiguration]
- func (o *VZVirtualMachineConfiguration) SerialPorts() *foundation.NSArray[*VZSerialPortConfiguration]
- func (o *VZVirtualMachineConfiguration) SetAudioDevices(audioDevices *foundation.NSArray[*VZAudioDeviceConfiguration])
- func (o *VZVirtualMachineConfiguration) SetBootLoader(bootLoader *VZBootLoader)
- func (o *VZVirtualMachineConfiguration) SetCPUCount(cpuCount uint)
- func (o *VZVirtualMachineConfiguration) SetConsoleDevices(consoleDevices *foundation.NSArray[*VZConsoleDeviceConfiguration])
- func (o *VZVirtualMachineConfiguration) SetCustomVirtioDevices(customVirtioDevices *foundation.NSArray[*VZCustomVirtioDeviceConfiguration])
- func (o *VZVirtualMachineConfiguration) SetDirectorySharingDevices(...)
- func (o *VZVirtualMachineConfiguration) SetEntropyDevices(entropyDevices *foundation.NSArray[*VZEntropyDeviceConfiguration])
- func (o *VZVirtualMachineConfiguration) SetGraphicsDevices(graphicsDevices *foundation.NSArray[*VZGraphicsDeviceConfiguration])
- func (o *VZVirtualMachineConfiguration) SetKeyboards(keyboards *foundation.NSArray[*VZKeyboardConfiguration])
- func (o *VZVirtualMachineConfiguration) SetLabel(label *foundation.NSString)
- func (o *VZVirtualMachineConfiguration) SetMemoryBalloonDevices(memoryBalloonDevices *foundation.NSArray[*VZMemoryBalloonDeviceConfiguration])
- func (o *VZVirtualMachineConfiguration) SetMemorySize(memorySize uint64)
- func (o *VZVirtualMachineConfiguration) SetNetworkDevices(networkDevices *foundation.NSArray[*VZNetworkDeviceConfiguration])
- func (o *VZVirtualMachineConfiguration) SetPlatform(platform *VZPlatformConfiguration)
- func (o *VZVirtualMachineConfiguration) SetPointingDevices(pointingDevices *foundation.NSArray[*VZPointingDeviceConfiguration])
- func (o *VZVirtualMachineConfiguration) SetSerialPorts(serialPorts *foundation.NSArray[*VZSerialPortConfiguration])
- func (o *VZVirtualMachineConfiguration) SetSocketDevices(socketDevices *foundation.NSArray[*VZSocketDeviceConfiguration])
- func (o *VZVirtualMachineConfiguration) SetStorageDevices(storageDevices *foundation.NSArray[*VZStorageDeviceConfiguration])
- func (o *VZVirtualMachineConfiguration) SetUsbControllers(usbControllers *foundation.NSArray[*VZUSBControllerConfiguration])
- func (o *VZVirtualMachineConfiguration) SocketDevices() *foundation.NSArray[*VZSocketDeviceConfiguration]
- func (o *VZVirtualMachineConfiguration) StorageDevices() *foundation.NSArray[*VZStorageDeviceConfiguration]
- func (o *VZVirtualMachineConfiguration) UsbControllers() *foundation.NSArray[*VZUSBControllerConfiguration]
- func (o *VZVirtualMachineConfiguration) ValidateSaveRestoreSupportWithError() (bool, error)
- func (o *VZVirtualMachineConfiguration) ValidateWithError() (bool, error)
- type VZVirtualMachineDelegate
- type VZVirtualMachineStartOptions
- type VZVirtualMachineState
- type VZVirtualMachineView
- func (o *VZVirtualMachineView) AutomaticallyReconfiguresDisplay() bool
- func (o *VZVirtualMachineView) CapturesSystemKeys() bool
- func (o *VZVirtualMachineView) SetAutomaticallyReconfiguresDisplay(automaticallyReconfiguresDisplay bool)
- func (o *VZVirtualMachineView) SetCapturesSystemKeys(capturesSystemKeys bool)
- func (o *VZVirtualMachineView) SetVirtualMachine(virtualMachine *VZVirtualMachine)
- func (o *VZVirtualMachineView) VirtualMachine() *VZVirtualMachine
- type VZVmnetNetworkDeviceAttachment
- type VZXHCIController
- type VZXHCIControllerConfiguration
- type Virtual_memory_guard_exception_code_t
- type Xpc_listener_create_flags_t
- type Xpc_session_create_flags_t
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VZBridgedNetworkInterfaceNetworkInterfaces ¶
func VZBridgedNetworkInterfaceNetworkInterfaces() *foundation.NSArray[*VZBridgedNetworkInterface]
@abstract Return the list of network interfaces available for bridging.
func VZCustomVirtioDeviceConfigurationMaximumAllowedSharedMemoryRegionCount ¶
func VZCustomVirtioDeviceConfigurationMaximumAllowedSharedMemoryRegionCount() uint
The maximum number of Virtio shared memory regions the framework allows. ## See Also - “VZCustomVirtioDeviceConfiguration/sharedMemoryRegions“
func VZErrorDomain ¶
func VZErrorDomain() *foundation.NSString
func VZGenericPlatformConfigurationIsNestedVirtualizationSupported ¶
func VZGenericPlatformConfigurationIsNestedVirtualizationSupported() bool
@abstract Indicate whether or not nested virtualization is available. @discussion Nested virtualization is only available on some hardware and software configurations. It may also be disabled by policy. Use this property to check if support is available for the platform. If nested virtualization is supported, use `nestedVirtualizationEnabled` to enable the feature. @see nestedVirtualizationEnabled.
func VZLinuxRosettaAbstractSocketCachingOptionsMaximumNameLength ¶
func VZLinuxRosettaAbstractSocketCachingOptionsMaximumNameLength() uint
@abstract The maximum allowed length of name, as defined by the sockaddr_un structure in Linux.
func VZLinuxRosettaDirectoryShareInstallRosettaWithCompletionHandler ¶
func VZLinuxRosettaDirectoryShareInstallRosettaWithCompletionHandler(completionHandler func(unsafe.Pointer))
Starts the installation of Rosetta.
func VZLinuxRosettaUnixSocketCachingOptionsMaximumPathLength ¶
func VZLinuxRosettaUnixSocketCachingOptionsMaximumPathLength() uint
@abstract The maximum allowed length of path, as defined by the sockaddr_un structure in Linux.
func VZMacOSRestoreImageFetchLatestSupportedWithCompletionHandler ¶
func VZMacOSRestoreImageFetchLatestSupportedWithCompletionHandler(completionHandler func(*VZMacOSRestoreImage, unsafe.Pointer))
Fetches the latest restore image supported by this host from the network.
func VZMacOSRestoreImageLoadFileURLCompletionHandler ¶
func VZMacOSRestoreImageLoadFileURLCompletionHandler(fileURL *foundation.NSURL, completionHandler func(*VZMacOSRestoreImage, unsafe.Pointer))
Load a restore image from a file on the local file system.
func VZMultipleDirectoryShareCanonicalizedNameFromName ¶
func VZMultipleDirectoryShareCanonicalizedNameFromName(name *foundation.NSString) *foundation.NSString
Transforms a string to be a valid directory name.
func VZMultipleDirectoryShareValidateNameError ¶
func VZMultipleDirectoryShareValidateNameError(name *foundation.NSString) (bool, error)
Check if a name is a valid directory name.
func VZNetworkBlockDeviceStorageDeviceAttachmentValidateURLError ¶
func VZNetworkBlockDeviceStorageDeviceAttachmentValidateURLError(url *foundation.NSURL) (bool, error)
Checks if the URL is a valid network block device URL.
func VZSpiceAgentPortAttachmentSpiceAgentPortName ¶
func VZSpiceAgentPortAttachmentSpiceAgentPortName() *foundation.NSString
@abstract The Spice agent port name. @discussion A console port configured with this name will spawn a Spice guest agent if supported by the guest. VZConsolePortConfiguration.attachment must be set to VZSpiceAgentPortAttachment. VZVirtioConsolePortConfiguration.isConsole must remain false on a Spice agent port.
func VZVirtioBlockDeviceConfigurationValidateBlockDeviceIdentifierError ¶
func VZVirtioBlockDeviceConfigurationValidateBlockDeviceIdentifierError(blockDeviceIdentifier *foundation.NSString) (bool, error)
Checks the validity of a block device identifier.
func VZVirtioFileSystemDeviceConfigurationMacOSGuestAutomountTag ¶
func VZVirtioFileSystemDeviceConfigurationMacOSGuestAutomountTag() *foundation.NSString
@abstract The macOS automount tag. @discussion A device configured with this tag will be automatically mounted in a macOS guest.
func VZVirtioFileSystemDeviceConfigurationValidateTagError ¶
func VZVirtioFileSystemDeviceConfigurationValidateTagError(tag *foundation.NSString) (bool, error)
Checks to see whether a Virtio tag is valid.
func VZVirtualMachineConfigurationMaximumAllowedCPUCount ¶
func VZVirtualMachineConfigurationMaximumAllowedCPUCount() uint
@abstract Maximum number of CPUs for a virtual machine. @see VZVirtualMachineConfiguration.CPUCount
func VZVirtualMachineConfigurationMaximumAllowedMemorySize ¶
func VZVirtualMachineConfigurationMaximumAllowedMemorySize() uint64
@abstract Maximum amount of memory allowed for a virtual machine. @see VZVirtualMachineConfiguration.memorySize
func VZVirtualMachineConfigurationMinimumAllowedCPUCount ¶
func VZVirtualMachineConfigurationMinimumAllowedCPUCount() uint
@abstract Minimum number of CPUs for a virtual machine. @see VZVirtualMachineConfiguration.CPUCount
func VZVirtualMachineConfigurationMinimumAllowedMemorySize ¶
func VZVirtualMachineConfigurationMinimumAllowedMemorySize() uint64
@abstract Minimum amount of memory required by virtual machines. @see VZVirtualMachineConfiguration.memorySize
func VZVirtualMachineIsSupported ¶
func VZVirtualMachineIsSupported() bool
@abstract Indicate whether or not virtualization is available. @discussion If virtualization is unavailable, no VZVirtualMachineConfiguration will validate. The validation error of the VZVirtualMachineConfiguration provides more information about why virtualization is unavailable.
Types ¶
type Acl_entry_id_t ¶
type Acl_entry_id_t int32
const ( ACL_FIRST_ENTRY Acl_entry_id_t = 0 ACL_NEXT_ENTRY Acl_entry_id_t = -1 ACL_LAST_ENTRY Acl_entry_id_t = -2 )
func (Acl_entry_id_t) String ¶
func (e Acl_entry_id_t) String() string
type Acl_flag_t ¶
type Acl_flag_t int32
const ( ACL_FLAG_DEFER_INHERIT Acl_flag_t = 1 ACL_FLAG_NO_INHERIT Acl_flag_t = 131072 ACL_ENTRY_INHERITED Acl_flag_t = 16 ACL_ENTRY_FILE_INHERIT Acl_flag_t = 32 ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64 ACL_ENTRY_LIMIT_INHERIT Acl_flag_t = 128 ACL_ENTRY_ONLY_INHERIT Acl_flag_t = 256 )
func (Acl_flag_t) String ¶
func (e Acl_flag_t) String() string
type Acl_perm_t ¶
type Acl_perm_t int32
const ( ACL_READ_DATA Acl_perm_t = 2 ACL_LIST_DIRECTORY Acl_perm_t = 2 ACL_WRITE_DATA Acl_perm_t = 4 ACL_ADD_FILE Acl_perm_t = 4 ACL_EXECUTE Acl_perm_t = 8 ACL_SEARCH Acl_perm_t = 8 ACL_DELETE Acl_perm_t = 16 ACL_APPEND_DATA Acl_perm_t = 32 ACL_ADD_SUBDIRECTORY Acl_perm_t = 32 ACL_DELETE_CHILD Acl_perm_t = 64 ACL_READ_ATTRIBUTES Acl_perm_t = 128 ACL_WRITE_ATTRIBUTES Acl_perm_t = 256 ACL_READ_EXTATTRIBUTES Acl_perm_t = 512 ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024 ACL_READ_SECURITY Acl_perm_t = 2048 ACL_WRITE_SECURITY Acl_perm_t = 4096 ACL_CHANGE_OWNER Acl_perm_t = 8192 ACL_SYNCHRONIZE Acl_perm_t = 1048576 )
func (Acl_perm_t) String ¶
func (e Acl_perm_t) String() string
type Acl_type_t ¶
type Acl_type_t int32
const ( ACL_TYPE_EXTENDED Acl_type_t = 256 ACL_TYPE_ACCESS Acl_type_t = 0 ACL_TYPE_DEFAULT Acl_type_t = 1 ACL_TYPE_AFS Acl_type_t = 2 ACL_TYPE_CODA Acl_type_t = 3 ACL_TYPE_NTFS Acl_type_t = 4 ACL_TYPE_NWFS Acl_type_t = 5 )
func (Acl_type_t) String ¶
func (e Acl_type_t) String() string
type CGLCPContextPriorityRequest ¶
type CGLCPContextPriorityRequest int32
const ( KCGLCPContextPriorityRequestHigh CGLCPContextPriorityRequest = 0 KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1 KCGLCPContextPriorityRequestLow CGLCPContextPriorityRequest = 2 )
func (CGLCPContextPriorityRequest) String ¶
func (e CGLCPContextPriorityRequest) String() string
type Dispatch_autorelease_frequency_t ¶
type Dispatch_autorelease_frequency_t uint64
const ( DISPATCH_AUTORELEASE_FREQUENCY_INHERIT Dispatch_autorelease_frequency_t = 0 DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1 DISPATCH_AUTORELEASE_FREQUENCY_NEVER Dispatch_autorelease_frequency_t = 2 )
func (Dispatch_autorelease_frequency_t) String ¶
func (e Dispatch_autorelease_frequency_t) String() string
type Dispatch_block_flags_t ¶
type Dispatch_block_flags_t uint64
const ( DISPATCH_BLOCK_BARRIER Dispatch_block_flags_t = 1 DISPATCH_BLOCK_DETACHED Dispatch_block_flags_t = 2 DISPATCH_BLOCK_ASSIGN_CURRENT Dispatch_block_flags_t = 4 DISPATCH_BLOCK_NO_QOS_CLASS Dispatch_block_flags_t = 8 DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16 DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32 )
func (Dispatch_block_flags_t) String ¶
func (e Dispatch_block_flags_t) String() string
type Filesec_property_t ¶
type Filesec_property_t int32
const ( FILESEC_OWNER Filesec_property_t = 1 FILESEC_GROUP Filesec_property_t = 2 FILESEC_UUID Filesec_property_t = 3 FILESEC_MODE Filesec_property_t = 4 FILESEC_ACL Filesec_property_t = 5 FILESEC_GRPUUID Filesec_property_t = 6 FILESEC_ACL_RAW Filesec_property_t = 100 FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101 )
func (Filesec_property_t) String ¶
func (e Filesec_property_t) String() string
type Ipc_info_object_type_t ¶
type Ipc_info_object_type_t uint32
const ( IPC_OTYPE_NONE Ipc_info_object_type_t = 0 IPC_OTYPE_THREAD_CONTROL Ipc_info_object_type_t = 1 IPC_OTYPE_TASK_CONTROL Ipc_info_object_type_t = 2 IPC_OTYPE_HOST Ipc_info_object_type_t = 3 IPC_OTYPE_HOST_PRIV Ipc_info_object_type_t = 4 IPC_OTYPE_PROCESSOR Ipc_info_object_type_t = 5 IPC_OTYPE_PROCESSOR_SET Ipc_info_object_type_t = 6 IPC_OTYPE_PROCESSOR_SET_NAME Ipc_info_object_type_t = 7 IPC_OTYPE_TIMER Ipc_info_object_type_t = 8 IPC_OTYPE_PORT_SUBST_ONCE Ipc_info_object_type_t = 9 IPC_OTYPE_MIG Ipc_info_object_type_t = 10 IPC_OTYPE_MEMORY_OBJECT Ipc_info_object_type_t = 11 IPC_OTYPE_XMM_PAGER Ipc_info_object_type_t = 12 IPC_OTYPE_XMM_KERNEL Ipc_info_object_type_t = 13 IPC_OTYPE_XMM_REPLY Ipc_info_object_type_t = 14 IPC_OTYPE_UND_REPLY Ipc_info_object_type_t = 15 IPC_OTYPE_HOST_NOTIFY Ipc_info_object_type_t = 16 IPC_OTYPE_HOST_SECURITY Ipc_info_object_type_t = 17 IPC_OTYPE_LEDGER Ipc_info_object_type_t = 18 IPC_OTYPE_MAIN_DEVICE Ipc_info_object_type_t = 19 IPC_OTYPE_TASK_NAME Ipc_info_object_type_t = 20 IPC_OTYPE_SUBSYSTEM Ipc_info_object_type_t = 21 IPC_OTYPE_IO_DONE_QUEUE Ipc_info_object_type_t = 22 IPC_OTYPE_SEMAPHORE Ipc_info_object_type_t = 23 IPC_OTYPE_LOCK_SET Ipc_info_object_type_t = 24 IPC_OTYPE_CLOCK Ipc_info_object_type_t = 25 IPC_OTYPE_CLOCK_CTRL Ipc_info_object_type_t = 26 IPC_OTYPE_IOKIT_IDENT Ipc_info_object_type_t = 27 IPC_OTYPE_NAMED_ENTRY Ipc_info_object_type_t = 28 IPC_OTYPE_IOKIT_CONNECT Ipc_info_object_type_t = 29 IPC_OTYPE_IOKIT_OBJECT Ipc_info_object_type_t = 30 IPC_OTYPE_UPL Ipc_info_object_type_t = 31 IPC_OTYPE_MEM_OBJ_CONTROL Ipc_info_object_type_t = 32 IPC_OTYPE_AU_SESSIONPORT Ipc_info_object_type_t = 33 IPC_OTYPE_FILEPORT Ipc_info_object_type_t = 34 IPC_OTYPE_LABELH Ipc_info_object_type_t = 35 IPC_OTYPE_TASK_RESUME Ipc_info_object_type_t = 36 IPC_OTYPE_VOUCHER Ipc_info_object_type_t = 37 IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38 IPC_OTYPE_WORK_INTERVAL Ipc_info_object_type_t = 39 IPC_OTYPE_UX_HANDLER Ipc_info_object_type_t = 40 IPC_OTYPE_UEXT_OBJECT Ipc_info_object_type_t = 41 IPC_OTYPE_ARCADE_REG Ipc_info_object_type_t = 42 IPC_OTYPE_EVENTLINK Ipc_info_object_type_t = 43 IPC_OTYPE_TASK_INSPECT Ipc_info_object_type_t = 44 IPC_OTYPE_TASK_READ Ipc_info_object_type_t = 45 IPC_OTYPE_THREAD_INSPECT Ipc_info_object_type_t = 46 IPC_OTYPE_THREAD_READ Ipc_info_object_type_t = 47 IPC_OTYPE_SUID_CRED Ipc_info_object_type_t = 48 IPC_OTYPE_HYPERVISOR Ipc_info_object_type_t = 49 IPC_OTYPE_TASK_ID_TOKEN Ipc_info_object_type_t = 50 IPC_OTYPE_TASK_FATAL Ipc_info_object_type_t = 51 IPC_OTYPE_KCDATA Ipc_info_object_type_t = 52 IPC_OTYPE_EXCLAVES_RESOURCE Ipc_info_object_type_t = 53 IPC_OTYPE_THREAD_RESUME Ipc_info_object_type_t = 54 IPC_OTYPE_UNKNOWN Ipc_info_object_type_t = 4294967295 )
func (Ipc_info_object_type_t) String ¶
func (e Ipc_info_object_type_t) String() string
type Launch_data_type_t ¶
type Launch_data_type_t int32
const ( LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1 LAUNCH_DATA_ARRAY Launch_data_type_t = 2 LAUNCH_DATA_FD Launch_data_type_t = 3 LAUNCH_DATA_INTEGER Launch_data_type_t = 4 LAUNCH_DATA_REAL Launch_data_type_t = 5 LAUNCH_DATA_BOOL Launch_data_type_t = 6 LAUNCH_DATA_STRING Launch_data_type_t = 7 LAUNCH_DATA_OPAQUE Launch_data_type_t = 8 LAUNCH_DATA_ERRNO Launch_data_type_t = 9 LAUNCH_DATA_MACHPORT Launch_data_type_t = 10 )
func (Launch_data_type_t) String ¶
func (e Launch_data_type_t) String() string
type MDLabelDomain ¶
type MDLabelDomain int32
@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int32
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int32
@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
type Mach_vm_range_flags_t ¶
type Mach_vm_range_flags_t uint64
const (
MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)
func (Mach_vm_range_flags_t) String ¶
func (e Mach_vm_range_flags_t) String() string
type Mach_vm_range_flavor_t ¶
type Mach_vm_range_flavor_t uint32
const ( MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0 MACH_VM_RANGE_FLAVOR_V1 Mach_vm_range_flavor_t = 1 )
func (Mach_vm_range_flavor_t) String ¶
func (e Mach_vm_range_flavor_t) String() string
type Mach_vm_range_tag_t ¶
type Mach_vm_range_tag_t uint16
const ( MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0 MACH_VM_RANGE_DATA Mach_vm_range_tag_t = 1 MACH_VM_RANGE_FIXED Mach_vm_range_tag_t = 2 )
func (Mach_vm_range_tag_t) String ¶
func (e Mach_vm_range_tag_t) String() string
type Mpo_flags_t ¶
type Mpo_flags_t uint32
const ( MPO_PORT Mpo_flags_t = 0 MPO_SERVICE_PORT Mpo_flags_t = 1024 MPO_CONNECTION_PORT Mpo_flags_t = 2048 MPO_REPLY_PORT Mpo_flags_t = 4096 MPO_WEAK_REPLY_PORT Mpo_flags_t = 16384 MPO_NOTIFICATION_PORT Mpo_flags_t = 17408 MPO_EXCEPTION_PORT Mpo_flags_t = 32768 MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536 )
func (Mpo_flags_t) String ¶
func (e Mpo_flags_t) String() string
type NXMouseButton ¶
type NXMouseButton int32
const ( NX_OneButton NXMouseButton = 0 NX_LeftButton NXMouseButton = 1 NX_RightButton NXMouseButton = 2 )
func (NXMouseButton) String ¶
func (e NXMouseButton) String() string
type Os_clockid_t ¶
type Os_clockid_t uint32
const (
OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)
func (Os_clockid_t) String ¶
func (e Os_clockid_t) String() string
type Os_unfair_lock_flags_t ¶
type Os_unfair_lock_flags_t uint32
const ( OS_UNFAIR_LOCK_FLAG_NONE Os_unfair_lock_flags_t = 0 OS_UNFAIR_LOCK_FLAG_ADAPTIVE_SPIN Os_unfair_lock_flags_t = 262144 )
func (Os_unfair_lock_flags_t) String ¶
func (e Os_unfair_lock_flags_t) String() string
type PMPageToPaperMappingType ¶
type PMPageToPaperMappingType int32
const ( KPMPageToPaperMappingNone PMPageToPaperMappingType = 1 KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2 )
func (PMPageToPaperMappingType) String ¶
func (e PMPageToPaperMappingType) String() string
type Ptrauth_key ¶
type Ptrauth_key int32
const ( Ptrauth_key_none Ptrauth_key = -1 Ptrauth_key_asia Ptrauth_key = 0 Ptrauth_key_asib Ptrauth_key = 1 Ptrauth_key_asda Ptrauth_key = 2 Ptrauth_key_asdb Ptrauth_key = 3 Ptrauth_key_process_independent_code Ptrauth_key = 0 Ptrauth_key_process_dependent_code Ptrauth_key = 1 Ptrauth_key_process_independent_data Ptrauth_key = 2 Ptrauth_key_process_dependent_data Ptrauth_key = 3 Ptrauth_key_return_address Ptrauth_key = 1 Ptrauth_key_frame_pointer Ptrauth_key = 3 Ptrauth_key_function_pointer Ptrauth_key = 0 Ptrauth_key_block_function Ptrauth_key = 0 Ptrauth_key_cxx_vtable_pointer Ptrauth_key = 2 Ptrauth_key_method_list_pointer Ptrauth_key = 2 Ptrauth_key_objc_isa_pointer Ptrauth_key = 2 Ptrauth_key_objc_super_pointer Ptrauth_key = 2 Ptrauth_key_objc_sel_pointer Ptrauth_key = 3 Ptrauth_key_objc_class_ro_pointer Ptrauth_key = 2 Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2 Ptrauth_key_init_fini_pointer Ptrauth_key = 0 )
func (Ptrauth_key) String ¶
func (e Ptrauth_key) String() string
type Qos_class_t ¶
type Qos_class_t uint32
const ( QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33 QOS_CLASS_USER_INITIATED Qos_class_t = 25 QOS_CLASS_DEFAULT Qos_class_t = 21 QOS_CLASS_UTILITY Qos_class_t = 17 QOS_CLASS_BACKGROUND Qos_class_t = 9 QOS_CLASS_UNSPECIFIED Qos_class_t = 0 )
func (Qos_class_t) String ¶
func (e Qos_class_t) String() string
type Task_shared_region_stubs_t ¶
type Task_shared_region_stubs_t uint8
const ( TASK_SHARED_REGION_STUBS_DEV Task_shared_region_stubs_t = 1 TASK_SHARED_REGION_STUBS_PROD Task_shared_region_stubs_t = 2 )
func (Task_shared_region_stubs_t) String ¶
func (e Task_shared_region_stubs_t) String() string
type VZAudioDeviceConfiguration ¶
type VZAudioDeviceConfiguration struct {
foundation.NSObject
}
The base class for an audio device configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzaudiodeviceconfiguration
func VZAudioDeviceConfigurationFromID ¶
func VZAudioDeviceConfigurationFromID(id objc.ID) *VZAudioDeviceConfiguration
type VZAudioInputStreamSource ¶
type VZAudioInputStreamSource struct {
foundation.NSObject
}
The base class for an audio input stream source.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzaudioinputstreamsource
func VZAudioInputStreamSourceFromID ¶
func VZAudioInputStreamSourceFromID(id objc.ID) *VZAudioInputStreamSource
type VZAudioOutputStreamSink ¶
type VZAudioOutputStreamSink struct {
foundation.NSObject
}
The base class for an audio output stream sink.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzaudiooutputstreamsink
func VZAudioOutputStreamSinkFromID ¶
func VZAudioOutputStreamSinkFromID(id objc.ID) *VZAudioOutputStreamSink
type VZBootLoader ¶
type VZBootLoader struct {
foundation.NSObject
}
The base class that defines the management of the initial process of the guest system.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzbootloader
func VZBootLoaderFromID ¶
func VZBootLoaderFromID(id objc.ID) *VZBootLoader
type VZBridgedNetworkDeviceAttachment ¶
type VZBridgedNetworkDeviceAttachment struct {
VZNetworkDeviceAttachment
}
A network device that interacts directly with a physical network interface on the host computer.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzbridgednetworkdeviceattachment
func VZBridgedNetworkDeviceAttachmentFromID ¶
func VZBridgedNetworkDeviceAttachmentFromID(id objc.ID) *VZBridgedNetworkDeviceAttachment
func (*VZBridgedNetworkDeviceAttachment) InitWithInterface ¶
func (o *VZBridgedNetworkDeviceAttachment) InitWithInterface(interface_ *VZBridgedNetworkInterface) *VZBridgedNetworkDeviceAttachment
Creates the attachment from a bridged network interface object.
func (*VZBridgedNetworkDeviceAttachment) Interface ¶
func (o *VZBridgedNetworkDeviceAttachment) Interface() *VZBridgedNetworkInterface
type VZBridgedNetworkInterface ¶
type VZBridgedNetworkInterface struct {
foundation.NSObject
}
An object that identifies the supported network interfaces of the host computer.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzbridgednetworkinterface
func VZBridgedNetworkInterfaceFromID ¶
func VZBridgedNetworkInterfaceFromID(id objc.ID) *VZBridgedNetworkInterface
func (*VZBridgedNetworkInterface) Identifier ¶
func (o *VZBridgedNetworkInterface) Identifier() *foundation.NSString
@abstract Return the unique identifier for this interface. The identifier is the BSD name associated with the interface (e.g. "en0").
func (*VZBridgedNetworkInterface) LocalizedDisplayName ¶
func (o *VZBridgedNetworkInterface) LocalizedDisplayName() *foundation.NSString
@abstract Return a display name if available (e.g. "Ethernet").
type VZConsoleDevice ¶
type VZConsoleDevice struct {
foundation.NSObject
}
A class that represents a console device in a VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzconsoledevice
func VZConsoleDeviceFromID ¶
func VZConsoleDeviceFromID(id objc.ID) *VZConsoleDevice
type VZConsoleDeviceConfiguration ¶
type VZConsoleDeviceConfiguration struct {
foundation.NSObject
}
The base class for a console device configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzconsoledeviceconfiguration
func VZConsoleDeviceConfigurationFromID ¶
func VZConsoleDeviceConfigurationFromID(id objc.ID) *VZConsoleDeviceConfiguration
type VZConsolePortConfiguration ¶
type VZConsolePortConfiguration struct {
foundation.NSObject
}
The base class for a console port configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzconsoleportconfiguration
func VZConsolePortConfigurationFromID ¶
func VZConsolePortConfigurationFromID(id objc.ID) *VZConsolePortConfiguration
func (*VZConsolePortConfiguration) Attachment ¶
func (o *VZConsolePortConfiguration) Attachment() *VZSerialPortAttachment
func (*VZConsolePortConfiguration) SetAttachment ¶
func (o *VZConsolePortConfiguration) SetAttachment(attachment *VZSerialPortAttachment)
type VZCustomVirtioDevice ¶
type VZCustomVirtioDevice struct {
foundation.NSObject
}
An interface that represents a custom Virtio device that you provide the implementation for.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzcustomvirtiodevice
func VZCustomVirtioDeviceFromID ¶
func VZCustomVirtioDeviceFromID(id objc.ID) *VZCustomVirtioDevice
func (*VZCustomVirtioDevice) Delegate ¶
func (o *VZCustomVirtioDevice) Delegate() VZCustomVirtioDeviceDelegate
The device's delegate. To be able to respond to events from a “VZCustomVirtioDevice“, implement a class that conforms to the “VZCustomVirtioDeviceDelegate“ protocol and assign it to this property. You can call the delegate as soon as “Virtualization/VZCustomVirtioDeviceConfigurationDelegate/customVirtioConfiguration(_:didCreateDevice:)“ returns, to avoid missing any calls, set this delegate when the framework calls “Virtualization/VZCustomVirtioDeviceConfigurationDelegate/customVirtioConfiguration(_:didCreateDevice:)“.
func (*VZCustomVirtioDevice) DeviceQueue ¶
func (o *VZCustomVirtioDevice) DeviceQueue() *foundation.NSObject
The dispatch queue this device uses. The framework performs all operations on `VZCustomVirtioDevice` and “VZCustomVirtioDeviceDelegate“ on this serial queue.
func (*VZCustomVirtioDevice) GuestMemoryMappingAtPhysicalAddressLength ¶
func (o *VZCustomVirtioDevice) GuestMemoryMappingAtPhysicalAddressLength(physicalAddress uint64, length uint) *VZGuestMemoryMapping
Returns guest memory mapping referred to by physicalAddress and length.
func (*VZCustomVirtioDevice) NegotiatedFeatures ¶
func (o *VZCustomVirtioDevice) NegotiatedFeatures() *VZNegotiatedVirtioFeatureSet
The set of features that the driver and the device have successfully negotiated, or `nil` if no feature negotiation has taken place. The value is only valid after the framework calls “VZCustomVirtioDeviceDelegate/customVirtioDeviceDidAcceptDriverOk:“. The framework calls this method when the guest driver sets `DRIVER_OK`.
func (*VZCustomVirtioDevice) QueueAtIndex ¶
func (o *VZCustomVirtioDevice) QueueAtIndex(index uint16) *VZVirtioQueue
Returns Virtio queue at the specified index that belongs to this device.
func (*VZCustomVirtioDevice) RequestDeviceReset ¶
func (o *VZCustomVirtioDevice) RequestDeviceReset()
A request to reset the device.
func (*VZCustomVirtioDevice) SetDelegate ¶
func (o *VZCustomVirtioDevice) SetDelegate(delegate VZCustomVirtioDeviceDelegate)
func (*VZCustomVirtioDevice) SharedMemoryRegions ¶
func (o *VZCustomVirtioDevice) SharedMemoryRegions() *foundation.NSArray[*VZVirtioSharedMemoryRegion]
An array of shared memory regions that this device exposes to the guest. ## See Also - “VZVirtioSharedMemoryRegion“
func (*VZCustomVirtioDevice) UpdateDeviceSpecificConfigurationCompletionHandler ¶
func (o *VZCustomVirtioDevice) UpdateDeviceSpecificConfigurationCompletionHandler(newConfiguration *VZVirtioDeviceSpecificConfiguration, completionHandler func(unsafe.Pointer))
Updates the device’s device-specific configuration.
type VZCustomVirtioDeviceConfiguration ¶
type VZCustomVirtioDeviceConfiguration struct {
foundation.NSObject
}
An object that defines a custom Virtio Device configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzcustomvirtiodeviceconfiguration
func VZCustomVirtioDeviceConfigurationFromID ¶
func VZCustomVirtioDeviceConfigurationFromID(id objc.ID) *VZCustomVirtioDeviceConfiguration
func (*VZCustomVirtioDeviceConfiguration) DeviceID ¶
func (o *VZCustomVirtioDeviceConfiguration) DeviceID() uint16
The Virtio device ID of the device.
func (*VZCustomVirtioDeviceConfiguration) DeviceSpecificConfiguration ¶
func (o *VZCustomVirtioDeviceConfiguration) DeviceSpecificConfiguration() *VZVirtioDeviceSpecificConfiguration
The device-specific configuration for the device.
func (*VZCustomVirtioDeviceConfiguration) MandatoryFeatures ¶
func (o *VZCustomVirtioDeviceConfiguration) MandatoryFeatures() *VZVirtioFeatureSet
The set of mandatory features that the device offers and the guest must accept. The mandatory features are the set of features that the device offers and the guest must accept. The framework won't successfully initialize the device if the guest driver fails to accept this set of features. The feature bit `VIRTIO_F_VERSION_1` is always set to `1` internally by default.
func (*VZCustomVirtioDeviceConfiguration) OptionalFeatures ¶
func (o *VZCustomVirtioDeviceConfiguration) OptionalFeatures() *VZVirtioFeatureSet
The set of optional features that the device offers. The optional features are the set of features that the guest driver may or may not accept, see “VZCustomVirtioDevice/negotiatedFeatures“ for the set of features that the guest accepts. A few feature bits are always set internally by default for optimal performance.
func (*VZCustomVirtioDeviceConfiguration) PCIClassID ¶
func (o *VZCustomVirtioDeviceConfiguration) PCIClassID() uint8
The PCI class ID of the device.
func (*VZCustomVirtioDeviceConfiguration) PCISubclassID ¶
func (o *VZCustomVirtioDeviceConfiguration) PCISubclassID() uint8
The PCI subclass ID of the device.
func (*VZCustomVirtioDeviceConfiguration) Provider ¶
func (o *VZCustomVirtioDeviceConfiguration) Provider() *VZCustomVirtioDeviceProvider
The custom Virtio device provider. This data defines how the virtual device is implemented. ## See Also - “VZCustomVirtioDeviceDelegateProvider“
func (*VZCustomVirtioDeviceConfiguration) SetDeviceID ¶
func (o *VZCustomVirtioDeviceConfiguration) SetDeviceID(deviceID uint16)
func (*VZCustomVirtioDeviceConfiguration) SetDeviceSpecificConfiguration ¶
func (o *VZCustomVirtioDeviceConfiguration) SetDeviceSpecificConfiguration(deviceSpecificConfiguration *VZVirtioDeviceSpecificConfiguration)
func (*VZCustomVirtioDeviceConfiguration) SetPCIClassID ¶
func (o *VZCustomVirtioDeviceConfiguration) SetPCIClassID(pciClassID uint8)
func (*VZCustomVirtioDeviceConfiguration) SetPCISubclassID ¶
func (o *VZCustomVirtioDeviceConfiguration) SetPCISubclassID(pciSubclassID uint8)
func (*VZCustomVirtioDeviceConfiguration) SetProvider ¶
func (o *VZCustomVirtioDeviceConfiguration) SetProvider(provider *VZCustomVirtioDeviceProvider)
func (*VZCustomVirtioDeviceConfiguration) SetSharedMemoryRegions ¶
func (o *VZCustomVirtioDeviceConfiguration) SetSharedMemoryRegions(sharedMemoryRegions *foundation.NSArray[*VZVirtioSharedMemoryRegionConfiguration])
func (*VZCustomVirtioDeviceConfiguration) SetSupportsSaveRestore ¶
func (o *VZCustomVirtioDeviceConfiguration) SetSupportsSaveRestore(supportsSaveRestore bool)
func (*VZCustomVirtioDeviceConfiguration) SetVirtioQueueCount ¶
func (o *VZCustomVirtioDeviceConfiguration) SetVirtioQueueCount(virtioQueueCount uint16)
func (*VZCustomVirtioDeviceConfiguration) SharedMemoryRegions ¶
func (o *VZCustomVirtioDeviceConfiguration) SharedMemoryRegions() *foundation.NSArray[*VZVirtioSharedMemoryRegionConfiguration]
The list of shared memory regions. The list is empty by default.
func (*VZCustomVirtioDeviceConfiguration) SupportsSaveRestore ¶
func (o *VZCustomVirtioDeviceConfiguration) SupportsSaveRestore() bool
@abstract Whether the device supports save/restore. @discussion This property defaults to `NO`. Set to `YES` if the device supports save/restore. If `supportsSaveRestore` is `YES` but the delegate set on `VZCustomVirtioDevice` does not actually implement the save/restore methods, an exception will be raised.
func (*VZCustomVirtioDeviceConfiguration) VirtioQueueCount ¶
func (o *VZCustomVirtioDeviceConfiguration) VirtioQueueCount() uint16
The number of virtqueues (Virtio queues) on this device.
type VZCustomVirtioDeviceConfigurationDelegate ¶
type VZCustomVirtioDeviceConfigurationDelegate interface {
}
VZCustomVirtioDeviceConfigurationDelegate wraps the ObjC protocol VZCustomVirtioDeviceConfigurationDelegate.
type VZCustomVirtioDeviceDelegate ¶
type VZCustomVirtioDeviceDelegate interface {
}
VZCustomVirtioDeviceDelegate wraps the ObjC protocol VZCustomVirtioDeviceDelegate.
type VZCustomVirtioDeviceDelegateProvider ¶
type VZCustomVirtioDeviceDelegateProvider struct {
VZCustomVirtioDeviceProvider
}
A custom Virtio Device provider for devices that implement a custom Virtio device configuration delegate.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzcustomvirtiodevicedelegateprovider
func VZCustomVirtioDeviceDelegateProviderFromID ¶
func VZCustomVirtioDeviceDelegateProviderFromID(id objc.ID) *VZCustomVirtioDeviceDelegateProvider
func (*VZCustomVirtioDeviceDelegateProvider) Delegate ¶
func (o *VZCustomVirtioDeviceDelegateProvider) Delegate() VZCustomVirtioDeviceConfigurationDelegate
The delegate object that implements the device.
func (*VZCustomVirtioDeviceDelegateProvider) DeviceQueue ¶
func (o *VZCustomVirtioDeviceDelegateProvider) DeviceQueue() *foundation.NSObject
The queue the framework uses to synchronize operations for this device.
func (*VZCustomVirtioDeviceDelegateProvider) InitWithDeviceQueueDelegate ¶
func (o *VZCustomVirtioDeviceDelegateProvider) InitWithDeviceQueueDelegate(deviceQueue *foundation.NSObject, delegate VZCustomVirtioDeviceConfigurationDelegate) *VZCustomVirtioDeviceDelegateProvider
Creates a custom Virtio device delegate provider.
type VZCustomVirtioDeviceProvider ¶
type VZCustomVirtioDeviceProvider struct {
foundation.NSObject
}
A base class that describes the provider of a custom Virtio device.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzcustomvirtiodeviceprovider
func VZCustomVirtioDeviceProviderFromID ¶
func VZCustomVirtioDeviceProviderFromID(id objc.ID) *VZCustomVirtioDeviceProvider
type VZDirectoryShare ¶
type VZDirectoryShare struct {
}
The base class for a directory share.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzdirectoryshare
func VZDirectoryShareFromID ¶
func VZDirectoryShareFromID(id objc.ID) *VZDirectoryShare
type VZDirectorySharingDevice ¶
type VZDirectorySharingDevice struct {
foundation.NSObject
}
The base class that represents a directory sharing device in a VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzdirectorysharingdevice
func VZDirectorySharingDeviceFromID ¶
func VZDirectorySharingDeviceFromID(id objc.ID) *VZDirectorySharingDevice
type VZDirectorySharingDeviceConfiguration ¶
type VZDirectorySharingDeviceConfiguration struct {
foundation.NSObject
}
The base class for a directory sharing device configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzdirectorysharingdeviceconfiguration
func VZDirectorySharingDeviceConfigurationFromID ¶
func VZDirectorySharingDeviceConfigurationFromID(id objc.ID) *VZDirectorySharingDeviceConfiguration
type VZDiskBlockDeviceStorageDeviceAttachment ¶
type VZDiskBlockDeviceStorageDeviceAttachment struct {
VZStorageDeviceAttachment
}
A storage device attachment that uses a disk to store data.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzdiskblockdevicestoragedeviceattachment
func VZDiskBlockDeviceStorageDeviceAttachmentFromID ¶
func VZDiskBlockDeviceStorageDeviceAttachmentFromID(id objc.ID) *VZDiskBlockDeviceStorageDeviceAttachment
func (*VZDiskBlockDeviceStorageDeviceAttachment) FileHandle ¶
func (o *VZDiskBlockDeviceStorageDeviceAttachment) FileHandle() *foundation.NSFileHandle
@abstract File handle to the underlying disk used for storage by the attachment.
func (*VZDiskBlockDeviceStorageDeviceAttachment) InitWithFileHandleReadOnlySynchronizationModeError ¶
func (o *VZDiskBlockDeviceStorageDeviceAttachment) InitWithFileHandleReadOnlySynchronizationModeError(fileHandle *foundation.NSFileHandle, readOnly bool, synchronizationMode VZDiskSynchronizationMode) (*VZDiskBlockDeviceStorageDeviceAttachment, error)
Creates a new block storage device attachment from a file handle and with the specified access mode, synchronization mode, and error object that you provide.
func (*VZDiskBlockDeviceStorageDeviceAttachment) IsReadOnly ¶
func (o *VZDiskBlockDeviceStorageDeviceAttachment) IsReadOnly() bool
@abstract Whether the underlying disk attachment is read-only.
func (*VZDiskBlockDeviceStorageDeviceAttachment) SynchronizationMode ¶
func (o *VZDiskBlockDeviceStorageDeviceAttachment) SynchronizationMode() VZDiskSynchronizationMode
@abstract The mode in which the disk image synchronizes data with the underlying storage device.
type VZDiskImageCachingMode ¶
type VZDiskImageCachingMode int64
An integer that describes the disk image caching mode.
const ( // Allows the virtualization framework to automatically determine whether to enable data caching. VZDiskImageCachingModeAutomatic VZDiskImageCachingMode = 0 // Disables data caching. VZDiskImageCachingModeUncached VZDiskImageCachingMode = 1 // Enables data caching. VZDiskImageCachingModeCached VZDiskImageCachingMode = 2 )
func (VZDiskImageCachingMode) String ¶
func (e VZDiskImageCachingMode) String() string
type VZDiskImageStorageDeviceAttachment ¶
type VZDiskImageStorageDeviceAttachment struct {
VZStorageDeviceAttachment
}
A device that stores content in a disk image.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzdiskimagestoragedeviceattachment
func VZDiskImageStorageDeviceAttachmentFromID ¶
func VZDiskImageStorageDeviceAttachmentFromID(id objc.ID) *VZDiskImageStorageDeviceAttachment
func (*VZDiskImageStorageDeviceAttachment) CachingMode ¶
func (o *VZDiskImageStorageDeviceAttachment) CachingMode() VZDiskImageCachingMode
@abstract How disk image data is cached by the host.
func (*VZDiskImageStorageDeviceAttachment) InitWithURLReadOnlyCachingModeSynchronizationModeError ¶
func (o *VZDiskImageStorageDeviceAttachment) InitWithURLReadOnlyCachingModeSynchronizationModeError(url *foundation.NSURL, readOnly bool, cachingMode VZDiskImageCachingMode, synchronizationMode VZDiskImageSynchronizationMode) (*VZDiskImageStorageDeviceAttachment, error)
Initialize the attachment from a local file URL.
func (*VZDiskImageStorageDeviceAttachment) InitWithURLReadOnlyError ¶
func (o *VZDiskImageStorageDeviceAttachment) InitWithURLReadOnlyError(url *foundation.NSURL, readOnly bool) (*VZDiskImageStorageDeviceAttachment, error)
Creates the attachment object from the specified disk image.
func (*VZDiskImageStorageDeviceAttachment) IsReadOnly ¶
func (o *VZDiskImageStorageDeviceAttachment) IsReadOnly() bool
@abstract Whether the underlying disk image is read-only.
func (*VZDiskImageStorageDeviceAttachment) SynchronizationMode ¶
func (o *VZDiskImageStorageDeviceAttachment) SynchronizationMode() VZDiskImageSynchronizationMode
@abstract The mode in which the disk image synchronizes data with the underlying storage device.
func (*VZDiskImageStorageDeviceAttachment) URL ¶
func (o *VZDiskImageStorageDeviceAttachment) URL() *foundation.NSURL
@abstract URL of the underlying disk image. @discussion If the attachment was created with `initWithDiskImage:`, this is the URL of the top image in the stack.
type VZDiskImageSynchronizationMode ¶
type VZDiskImageSynchronizationMode int64
An integer that describes the disk image synchronization mode.
const ( // Synchronizes data to the permanent storage holding the disk image. VZDiskImageSynchronizationModeFull VZDiskImageSynchronizationMode = 1 // Synchronizes data to the drive using the system’s best-effort synchronization mode. VZDiskImageSynchronizationModeFsync VZDiskImageSynchronizationMode = 2 // Disables data synchronization with the permanent storage. VZDiskImageSynchronizationModeNone VZDiskImageSynchronizationMode = 3 )
func (VZDiskImageSynchronizationMode) String ¶
func (e VZDiskImageSynchronizationMode) String() string
type VZDiskSynchronizationMode ¶
type VZDiskSynchronizationMode int64
Values that describe the synchronization modes available to the guest OS.
const ( // Perform all synchronization operations as requested by the guest OS. VZDiskSynchronizationModeFull VZDiskSynchronizationMode = 0 // Don’t synchronize the data with the permanent storage. VZDiskSynchronizationModeNone VZDiskSynchronizationMode = 1 )
func (VZDiskSynchronizationMode) String ¶
func (e VZDiskSynchronizationMode) String() string
type VZEFIBootLoader ¶
type VZEFIBootLoader struct {
VZBootLoader
}
The boot loader configuration the system uses to boot guest-operating systems that expect an Extensible Firmware Interface (EFI) ROM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzefibootloader
func VZEFIBootLoaderFromID ¶
func VZEFIBootLoaderFromID(id objc.ID) *VZEFIBootLoader
func (*VZEFIBootLoader) Init ¶
func (o *VZEFIBootLoader) Init() *VZEFIBootLoader
Creates a new EFI boot loader.
func (*VZEFIBootLoader) SetVariableStore ¶
func (o *VZEFIBootLoader) SetVariableStore(variableStore *VZEFIVariableStore)
func (*VZEFIBootLoader) VariableStore ¶
func (o *VZEFIBootLoader) VariableStore() *VZEFIVariableStore
type VZEFISignature ¶
type VZEFISignature struct {
foundation.NSObject
}
Apple documentation: https://developer.apple.com/documentation/virtualization/vzefisignature
func VZEFISignatureFromID ¶
func VZEFISignatureFromID(id objc.ID) *VZEFISignature
type VZEFISignatureDatabaseConfiguration ¶
type VZEFISignatureDatabaseConfiguration struct {
foundation.NSObject
}
A container for Unified Extensible Firmware Interface (UEFI) Secure Boot signature lists.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzefisignaturedatabaseconfiguration
func VZEFISignatureDatabaseConfigurationFromID ¶
func VZEFISignatureDatabaseConfigurationFromID(id objc.ID) *VZEFISignatureDatabaseConfiguration
func (*VZEFISignatureDatabaseConfiguration) DbSignatures ¶
func (o *VZEFISignatureDatabaseConfiguration) DbSignatures() *foundation.NSArray[*VZEFISignatureList]
Allowed signature database (db) entries.
func (*VZEFISignatureDatabaseConfiguration) DbxSignatures ¶
func (o *VZEFISignatureDatabaseConfiguration) DbxSignatures() *foundation.NSArray[*VZEFISignatureList]
Forbidden signature database (dbx) entries.
func (*VZEFISignatureDatabaseConfiguration) InitWithKeyExchangeKeysDbSignaturesDbxSignatures ¶
func (o *VZEFISignatureDatabaseConfiguration) InitWithKeyExchangeKeysDbSignaturesDbxSignatures(keyExchangeKeys *foundation.NSArray[*VZEFISignatureList], dbSignatures *foundation.NSArray[*VZEFISignatureList], dbxSignatures *foundation.NSArray[*VZEFISignatureList]) *VZEFISignatureDatabaseConfiguration
Creates a signature lists container from signature list objects.
func (*VZEFISignatureDatabaseConfiguration) KeyExchangeKeys ¶
func (o *VZEFISignatureDatabaseConfiguration) KeyExchangeKeys() *foundation.NSArray[*VZEFISignatureList]
Key Exchange Key (KEK) database entries.
type VZEFISignatureList ¶
type VZEFISignatureList struct {
foundation.NSObject
}
A class that represents a Unified Extensible Firmware Interface (UEFI) signature list.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzefisignaturelist
func VZEFISignatureListFromID ¶
func VZEFISignatureListFromID(id objc.ID) *VZEFISignatureList
func (*VZEFISignatureList) InitWithContentsOfURLError ¶
func (o *VZEFISignatureList) InitWithContentsOfURLError(url *foundation.NSURL) (*VZEFISignatureList, error)
Creates a signature list from a file.
func (*VZEFISignatureList) InitWithSignatures ¶
func (o *VZEFISignatureList) InitWithSignatures(signatures *foundation.NSArray[*VZEFISignature]) *VZEFISignatureList
Creates a signature list from the provided signatures.
func (*VZEFISignatureList) Signatures ¶
func (o *VZEFISignatureList) Signatures() *foundation.NSArray[*VZEFISignature]
type VZEFISignatureSHA256Hash ¶
type VZEFISignatureSHA256Hash struct {
VZEFISignature
}
A class that represents a Unified Extensible Firmware Interface (UEFI) signature based on a SHA-256 cryptographic hash.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzefisignaturesha256hash
func VZEFISignatureSHA256HashFromID ¶
func VZEFISignatureSHA256HashFromID(id objc.ID) *VZEFISignatureSHA256Hash
func (*VZEFISignatureSHA256Hash) Data ¶
func (o *VZEFISignatureSHA256Hash) Data() *foundation.NSData
func (*VZEFISignatureSHA256Hash) InitWithData ¶
func (o *VZEFISignatureSHA256Hash) InitWithData(data *foundation.NSData) *VZEFISignatureSHA256Hash
Creates a signature from SHA-256 hash data.
type VZEFISignatureX509Certificate ¶
type VZEFISignatureX509Certificate struct {
VZEFISignature
}
A class that represents a Unified Extensible Firmware Interface (UEFI) signature based on an X.509 certificate.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzefisignaturex509certificate
func VZEFISignatureX509CertificateFromID ¶
func VZEFISignatureX509CertificateFromID(id objc.ID) *VZEFISignatureX509Certificate
func (*VZEFISignatureX509Certificate) Certificate ¶
func (o *VZEFISignatureX509Certificate) Certificate() unsafe.Pointer
func (*VZEFISignatureX509Certificate) InitWithCertificate ¶
func (o *VZEFISignatureX509Certificate) InitWithCertificate(certificate unsafe.Pointer) *VZEFISignatureX509Certificate
Creates a signature from an X.509 certificate.
type VZEFIVariableStore ¶
type VZEFIVariableStore struct {
foundation.NSObject
}
An object that represents the Extensible Firmware Interface (EFI) variable store that contains NVRAM variables the EFI exposes.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzefivariablestore
func VZEFIVariableStoreFromID ¶
func VZEFIVariableStoreFromID(id objc.ID) *VZEFIVariableStore
func (*VZEFIVariableStore) DisableSecureBootWithError ¶
func (o *VZEFIVariableStore) DisableSecureBootWithError() (bool, error)
Disables Secure Boot while preserving the existing configuration.
func (*VZEFIVariableStore) EnableSecureBootUsingDefaultPlatformKeyWithError ¶
func (o *VZEFIVariableStore) EnableSecureBootUsingDefaultPlatformKeyWithError() (bool, error)
Enables Secure Boot with an Apple-managed Platform Key.
func (*VZEFIVariableStore) EnableSecureBootWithPlatformKeyError ¶
func (o *VZEFIVariableStore) EnableSecureBootWithPlatformKeyError(platformKey unsafe.Pointer) (bool, error)
Enables Secure Boot with a custom Platform Key.
func (*VZEFIVariableStore) EnrollDefaultSecureBootSignaturesWithError ¶
func (o *VZEFIVariableStore) EnrollDefaultSecureBootSignaturesWithError() (bool, error)
Enrolls the default signatures to Secure Boot databases.
func (*VZEFIVariableStore) EnrollSecureBootSignaturesError ¶
func (o *VZEFIVariableStore) EnrollSecureBootSignaturesError(signatures *VZEFISignatureDatabaseConfiguration) (bool, error)
Enrolls the given signatures to Secure Boot databases.
func (*VZEFIVariableStore) GetEnrolledSecureBootSignaturesWithError ¶
func (o *VZEFIVariableStore) GetEnrolledSecureBootSignaturesWithError() (*VZEFISignatureDatabaseConfiguration, error)
Returns the currently enrolled Secure Boot signatures in the Key Exchange Key (KEK), allowed signature (db), and forbidden signature (dbx) databases.
func (*VZEFIVariableStore) GetSecureBootEnabledError ¶
func (o *VZEFIVariableStore) GetSecureBootEnabledError(enabled *bool) (bool, error)
Returns a Boolean value that indicates whether Secure Boot is in an enabled state in the variable store.
func (*VZEFIVariableStore) InitCreatingVariableStoreAtURLOptionsError ¶
func (o *VZEFIVariableStore) InitCreatingVariableStoreAtURLOptionsError(url *foundation.NSURL, options VZEFIVariableStoreInitializationOptions) (*VZEFIVariableStore, error)
Creates a new EFI variable store at specified the URL on the filesystem, initialization options, and error-return variable.
func (*VZEFIVariableStore) InitWithURL ¶
func (o *VZEFIVariableStore) InitWithURL(url *foundation.NSURL) *VZEFIVariableStore
Initialize the variable store from the URL of an existing file.
func (*VZEFIVariableStore) ResetSecureBootWithError ¶
func (o *VZEFIVariableStore) ResetSecureBootWithError() (bool, error)
Clears any previously applied Secure Boot configuration and disables Secure Boot.
func (*VZEFIVariableStore) URL ¶
func (o *VZEFIVariableStore) URL() *foundation.NSURL
The URL of the variable store on the local file system.
type VZEFIVariableStoreInitializationOptions ¶
type VZEFIVariableStoreInitializationOptions uint64
const (
VZEFIVariableStoreInitializationOptionAllowOverwrite VZEFIVariableStoreInitializationOptions = 1
)
func (VZEFIVariableStoreInitializationOptions) String ¶
func (e VZEFIVariableStoreInitializationOptions) String() string
type VZEntropyDeviceConfiguration ¶
type VZEntropyDeviceConfiguration struct {
foundation.NSObject
}
The common configuration traits for entropy devices.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzentropydeviceconfiguration
func VZEntropyDeviceConfigurationFromID ¶
func VZEntropyDeviceConfigurationFromID(id objc.ID) *VZEntropyDeviceConfiguration
type VZErrorCode ¶
type VZErrorCode int64
const ( // An error that indicates there was an internal error, such as the virtual machine unexpectedly stopping. The framework reports this error when the virtual machine unexpectedly stops. VZErrorInternal VZErrorCode = 1 // An error that indicates the machine configuration was invalid. This error indicates that your “VZVirtualMachineConfiguration“ object contains invalid data. VZErrorInvalidVirtualMachineConfiguration VZErrorCode = 2 // An error that indicates the app used the API with a machine in the wrong state. This error occurs when the virtual machine is in the wrong state for the current operation. For example, you might receive this error when you attempt to interact with a stopped or paused virtual machine. VZErrorInvalidVirtualMachineState VZErrorCode = 3 // An error that indicates there was an invalid change of state. This error occurs when you attempt to change the state of the virtual machine in an invalid way. For example, it occurs when you attempt to start a virtual machine when its “VZVirtualMachine/canStart“ property is `false`. VZErrorInvalidVirtualMachineStateTransition VZErrorCode = 4 // An error that indicates an unrecognized disk image format or invalid disk image. This error occurs when you supply a disk image in an unrecognized format, when there’s damage to the disk image, or the disk image is invalid. VZErrorInvalidDiskImage VZErrorCode = 5 // An error that indicates an attempt to start a virtual machine (VM) exceeded the limit of the number of running VMs the framework allows. This error occurs when starting a VM would exceed the system’s limit on the number of simultaneously running virtual machines. VZErrorVirtualMachineLimitExceeded VZErrorCode = 6 // An error that indicates a network issue, such as a failed connection error, occurred. VZErrorNetworkError VZErrorCode = 7 // An error that indicates the host ran out of disk space, such as while attempting to install Rosetta. VZErrorOutOfDiskSpace VZErrorCode = 8 // An error that indicates the framework cancelled the operation. VZErrorOperationCancelled VZErrorCode = 9 // An error that indicates the framework doesn't support the operation. VZErrorNotSupported VZErrorCode = 10 // An error that indicates the VM failed to save to the save file. VZErrorSave VZErrorCode = 11 // An error that indicates the restore operation failed. VZErrorRestore VZErrorCode = 12 // An error that indicates the restore image catalog failed to load. VZErrorRestoreImageCatalogLoadFailed VZErrorCode = 10001 // An error that indicates the restore image catalog is invalid. VZErrorInvalidRestoreImageCatalog VZErrorCode = 10002 // An error that indicates the restore image catalog has no supported restore images. VZErrorNoSupportedRestoreImagesInCatalog VZErrorCode = 10003 // An error that indicates the restore image failed to load. VZErrorRestoreImageLoadFailed VZErrorCode = 10004 // An error that indicates the restore image is invalid. VZErrorInvalidRestoreImage VZErrorCode = 10005 // An error that indicates the installation requires a software update in order to complete. VZErrorInstallationRequiresUpdate VZErrorCode = 10006 // An error that indicates that an error occurred during installation. VZErrorInstallationFailed VZErrorCode = 10007 // An error that indicates the connection or the negotiation with the Network Block Device (NBD) server failed. VZErrorNetworkBlockDeviceNegotiationFailed VZErrorCode = 20001 // An error that indicates the Network Block Device (NBD) client disconnected from the server. VZErrorNetworkBlockDeviceDisconnected VZErrorCode = 20002 // An error that indicates the framework wasn't able to find the controller. VZErrorUSBControllerNotFound VZErrorCode = 30001 // An error that indicates the device is already attached. VZErrorDeviceAlreadyAttached VZErrorCode = 30002 // An error that indicates the device failed to initialize. VZErrorDeviceInitializationFailure VZErrorCode = 30003 // An error that indicates the framework wasn't able to find the specified device. VZErrorDeviceNotFound VZErrorCode = 30004 // An error that indicates the full name for guest provisioning is invalid. VZErrorGuestProvisioningInvalidFullName VZErrorCode = 40001 // An error that indicates the username for guest provisioning is invalid. VZErrorGuestProvisioningInvalidUsername VZErrorCode = 40002 // An error that indicates the password for guest provisioning is invalid. VZErrorGuestProvisioningInvalidPassword VZErrorCode = 40003 // An error that indicates the Secure Boot signatures failed to enroll. VZErrorEFISecureBootEnrollmentFailed VZErrorCode = 50001 // An error that indicates the framework can't access the EFI variable store. VZErrorEFIVariableInaccessible VZErrorCode = 50002 )
func (VZErrorCode) String ¶
func (e VZErrorCode) String() string
type VZFileHandleNetworkDeviceAttachment ¶
type VZFileHandleNetworkDeviceAttachment struct {
VZNetworkDeviceAttachment
}
A network device that transmits raw network packets and frames using a datagram socket.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzfilehandlenetworkdeviceattachment
func VZFileHandleNetworkDeviceAttachmentFromID ¶
func VZFileHandleNetworkDeviceAttachmentFromID(id objc.ID) *VZFileHandleNetworkDeviceAttachment
func (*VZFileHandleNetworkDeviceAttachment) FileHandle ¶
func (o *VZFileHandleNetworkDeviceAttachment) FileHandle() *foundation.NSFileHandle
@abstract The file handle associated with this attachment.
func (*VZFileHandleNetworkDeviceAttachment) InitWithFileHandle ¶
func (o *VZFileHandleNetworkDeviceAttachment) InitWithFileHandle(fileHandle *foundation.NSFileHandle) *VZFileHandleNetworkDeviceAttachment
Creates the attachment from a file handle that contains a connected datagram socket.
func (*VZFileHandleNetworkDeviceAttachment) MaximumTransmissionUnit ¶
func (o *VZFileHandleNetworkDeviceAttachment) MaximumTransmissionUnit() int
@abstract The maximum transmission unit (MTU) associated with this attachment. @discussion The client side of the associated datagram socket must be properly configured with the appropriate values for `SO_SNDBUF`, and `SO_RCVBUF`, which can be set using the `setsockopt` system call. The value of `SO_RCVBUF` is expected to be at least double the value of `SO_SNDBUF`, and for optimal performance, the value of `SO_RCVBUF` is recommended to be four times the value of `SO_SNDBUF`. The default MTU is 1500. The maximum MTU allowed is 65535, and the minimum MTU allowed is 1500. An invalid MTU value will result in an invalid virtual machine configuration.
func (*VZFileHandleNetworkDeviceAttachment) SetMaximumTransmissionUnit ¶
func (o *VZFileHandleNetworkDeviceAttachment) SetMaximumTransmissionUnit(maximumTransmissionUnit int)
type VZFileHandleSerialPortAttachment ¶
type VZFileHandleSerialPortAttachment struct {
VZSerialPortAttachment
}
An attachment point that allows bidirectional communication using file handles.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzfilehandleserialportattachment
func VZFileHandleSerialPortAttachmentFromID ¶
func VZFileHandleSerialPortAttachmentFromID(id objc.ID) *VZFileHandleSerialPortAttachment
func (*VZFileHandleSerialPortAttachment) FileHandleForReading ¶
func (o *VZFileHandleSerialPortAttachment) FileHandleForReading() *foundation.NSFileHandle
@abstract File handle for reading from the file. @discussion Data written to fileHandleForReading goes to the guest.
func (*VZFileHandleSerialPortAttachment) FileHandleForWriting ¶
func (o *VZFileHandleSerialPortAttachment) FileHandleForWriting() *foundation.NSFileHandle
@abstract File handle for writing to the file. @discussion Data sent from the guest appears on fileHandleForWriting.
func (*VZFileHandleSerialPortAttachment) InitWithFileHandleForReadingFileHandleForWriting ¶
func (o *VZFileHandleSerialPortAttachment) InitWithFileHandleForReadingFileHandleForWriting(fileHandleForReading *foundation.NSFileHandle, fileHandleForWriting *foundation.NSFileHandle) *VZFileHandleSerialPortAttachment
Creates a serial port attachment object from the specified file handles.
type VZFileSerialPortAttachment ¶
type VZFileSerialPortAttachment struct {
VZSerialPortAttachment
}
An attachment point that writes data from the guest system to a file.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzfileserialportattachment
func VZFileSerialPortAttachmentFromID ¶
func VZFileSerialPortAttachmentFromID(id objc.ID) *VZFileSerialPortAttachment
func (*VZFileSerialPortAttachment) Append ¶
func (o *VZFileSerialPortAttachment) Append() bool
@abstract True if the file should be opened in append mode, false otherwise.
func (*VZFileSerialPortAttachment) InitWithURLAppendError ¶
func (o *VZFileSerialPortAttachment) InitWithURLAppendError(url *foundation.NSURL, shouldAppend bool) (*VZFileSerialPortAttachment, error)
Creates a file-based serial port attachment object.
func (*VZFileSerialPortAttachment) URL ¶
func (o *VZFileSerialPortAttachment) URL() *foundation.NSURL
@abstract The URL of the file for the attachment on the local file system.
type VZGenericMachineIdentifier ¶
type VZGenericMachineIdentifier struct {
foundation.NSObject
}
An object that represents a unique identifier for a virtual machine.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzgenericmachineidentifier
func VZGenericMachineIdentifierFromID ¶
func VZGenericMachineIdentifierFromID(id objc.ID) *VZGenericMachineIdentifier
func (*VZGenericMachineIdentifier) DataRepresentation ¶
func (o *VZGenericMachineIdentifier) DataRepresentation() *foundation.NSData
func (*VZGenericMachineIdentifier) Init ¶
func (o *VZGenericMachineIdentifier) Init() *VZGenericMachineIdentifier
Creates a new unique identifier for a VM.
func (*VZGenericMachineIdentifier) InitWithDataRepresentation ¶
func (o *VZGenericMachineIdentifier) InitWithDataRepresentation(dataRepresentation *foundation.NSData) *VZGenericMachineIdentifier
Creates a new unique identifier for a VM with the provided data.
type VZGenericPlatformConfiguration ¶
type VZGenericPlatformConfiguration struct {
VZPlatformConfiguration
}
The platform configuration for a generic Intel or ARM virtual machine.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzgenericplatformconfiguration
func VZGenericPlatformConfigurationFromID ¶
func VZGenericPlatformConfigurationFromID(id objc.ID) *VZGenericPlatformConfiguration
func (*VZGenericPlatformConfiguration) Init ¶
func (o *VZGenericPlatformConfiguration) Init() *VZGenericPlatformConfiguration
Returns a new generic platform configuration.
func (*VZGenericPlatformConfiguration) IsNestedVirtualizationEnabled ¶
func (o *VZGenericPlatformConfiguration) IsNestedVirtualizationEnabled() bool
@abstract Enable nested virtualization for the platform. @discussion If nested virtualization is available, enable it for the current platform configuration. You can use `nestedVirtualizationSupported` to discover the nested virtualization availability before enabling it. The default value is NO, nested virtualization is disabled. @see nestedVirtualizationSupported.
func (*VZGenericPlatformConfiguration) MachineIdentifier ¶
func (o *VZGenericPlatformConfiguration) MachineIdentifier() *VZGenericMachineIdentifier
@abstract The unique machine identifier. @discussion Running two virtual machines concurrently with the same identifier results in undefined behavior in the guest operating system. When restoring a virtual machine from saved state, this `machineIdentifier` must match the `machineIdentifier` of the saved virtual machine.
func (*VZGenericPlatformConfiguration) SetMachineIdentifier ¶
func (o *VZGenericPlatformConfiguration) SetMachineIdentifier(machineIdentifier *VZGenericMachineIdentifier)
func (*VZGenericPlatformConfiguration) SetNestedVirtualizationEnabled ¶
func (o *VZGenericPlatformConfiguration) SetNestedVirtualizationEnabled(nestedVirtualizationEnabled bool)
type VZGraphicsDevice ¶
type VZGraphicsDevice struct {
foundation.NSObject
}
A class that represents a graphics device in a VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzgraphicsdevice
func VZGraphicsDeviceFromID ¶
func VZGraphicsDeviceFromID(id objc.ID) *VZGraphicsDevice
func (*VZGraphicsDevice) Displays ¶
func (o *VZGraphicsDevice) Displays() *foundation.NSArray[*VZGraphicsDisplay]
type VZGraphicsDeviceConfiguration ¶
type VZGraphicsDeviceConfiguration struct {
foundation.NSObject
}
The base class for a graphics device configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzgraphicsdeviceconfiguration
func VZGraphicsDeviceConfigurationFromID ¶
func VZGraphicsDeviceConfigurationFromID(id objc.ID) *VZGraphicsDeviceConfiguration
type VZGraphicsDisplay ¶
type VZGraphicsDisplay struct {
foundation.NSObject
}
A class that represents a graphics display in a VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzgraphicsdisplay
func VZGraphicsDisplayFromID ¶
func VZGraphicsDisplayFromID(id objc.ID) *VZGraphicsDisplay
func (*VZGraphicsDisplay) AddObserver ¶
func (o *VZGraphicsDisplay) AddObserver(observer VZGraphicsDisplayObserver)
Adds an observer to notify about display configuration changes.
func (*VZGraphicsDisplay) ReconfigureWithConfigurationError ¶
func (o *VZGraphicsDisplay) ReconfigureWithConfigurationError(configuration *VZGraphicsDisplayConfiguration) (bool, error)
Reconfigure this display with the new display configuration you provide.
func (*VZGraphicsDisplay) ReconfigureWithSizeInPixelsError ¶
func (o *VZGraphicsDisplay) ReconfigureWithSizeInPixelsError(sizeInPixels corefoundation.CGSize) (bool, error)
Resize this display with the new dimensions you provide.
func (*VZGraphicsDisplay) RemoveObserver ¶
func (o *VZGraphicsDisplay) RemoveObserver(observer VZGraphicsDisplayObserver)
Removes a display configuration change observer.
func (*VZGraphicsDisplay) SizeInPixels ¶
func (o *VZGraphicsDisplay) SizeInPixels() corefoundation.CGSize
@abstract The size of the display, in pixels.
type VZGraphicsDisplayConfiguration ¶
type VZGraphicsDisplayConfiguration struct {
foundation.NSObject
}
The base class for a graphics display configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzgraphicsdisplayconfiguration
func VZGraphicsDisplayConfigurationFromID ¶
func VZGraphicsDisplayConfigurationFromID(id objc.ID) *VZGraphicsDisplayConfiguration
type VZGraphicsDisplayObserver ¶
type VZGraphicsDisplayObserver interface {
}
VZGraphicsDisplayObserver wraps the ObjC protocol VZGraphicsDisplayObserver.
type VZGuestMemoryMapping ¶
type VZGuestMemoryMapping struct {
foundation.NSObject
}
An object that represents a chunk of the guest operating system’s dynamic random access memory (DRAM).
Apple documentation: https://developer.apple.com/documentation/virtualization/vzguestmemorymapping
func VZGuestMemoryMappingFromID ¶
func VZGuestMemoryMappingFromID(id objc.ID) *VZGuestMemoryMapping
func (*VZGuestMemoryMapping) Length ¶
func (o *VZGuestMemoryMapping) Length() uint
The number of bytes contained by this guest memory mapping object.
func (*VZGuestMemoryMapping) MutableBytes ¶
func (o *VZGuestMemoryMapping) MutableBytes() unsafe.Pointer
A pointer to the data this guest memory mapping object contains.
func (*VZGuestMemoryMapping) PhysicalAddress ¶
func (o *VZGuestMemoryMapping) PhysicalAddress() uint64
The guest's physical memory base address of this guest memory mapping object.
type VZGuestProvisioningOptions ¶
type VZGuestProvisioningOptions struct {
foundation.NSObject
}
The base class for guest provisioning options.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzguestprovisioningoptions
func VZGuestProvisioningOptionsFromID ¶
func VZGuestProvisioningOptionsFromID(id objc.ID) *VZGuestProvisioningOptions
func (*VZGuestProvisioningOptions) ValidateWithError ¶
func (o *VZGuestProvisioningOptions) ValidateWithError() (bool, error)
Validates the provisioning options.
type VZHostAudioInputStreamSource ¶
type VZHostAudioInputStreamSource struct {
VZAudioInputStreamSource
}
The host audio input stream source that provides audio from the host system’s default input device.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzhostaudioinputstreamsource
func VZHostAudioInputStreamSourceFromID ¶
func VZHostAudioInputStreamSourceFromID(id objc.ID) *VZHostAudioInputStreamSource
func (*VZHostAudioInputStreamSource) Init ¶
func (o *VZHostAudioInputStreamSource) Init() *VZHostAudioInputStreamSource
Creates a new audio input stream source.
type VZHostAudioOutputStreamSink ¶
type VZHostAudioOutputStreamSink struct {
VZAudioOutputStreamSink
}
Host audio output stream sink plays audio to the host system’s default output device.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzhostaudiooutputstreamsink
func VZHostAudioOutputStreamSinkFromID ¶
func VZHostAudioOutputStreamSinkFromID(id objc.ID) *VZHostAudioOutputStreamSink
func (*VZHostAudioOutputStreamSink) Init ¶
func (o *VZHostAudioOutputStreamSink) Init() *VZHostAudioOutputStreamSink
Creates a new host audio output stream sink instance.
type VZKeyboardConfiguration ¶
type VZKeyboardConfiguration struct {
foundation.NSObject
}
The base class for a configuring a keyboard.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzkeyboardconfiguration
func VZKeyboardConfigurationFromID ¶
func VZKeyboardConfigurationFromID(id objc.ID) *VZKeyboardConfiguration
type VZLinuxBootLoader ¶
type VZLinuxBootLoader struct {
VZBootLoader
}
An object that loads and configures a Linux kernel as the guest system of your VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzlinuxbootloader
func VZLinuxBootLoaderFromID ¶
func VZLinuxBootLoaderFromID(id objc.ID) *VZLinuxBootLoader
func (*VZLinuxBootLoader) CommandLine ¶
func (o *VZLinuxBootLoader) CommandLine() *foundation.NSString
@abstract Define the command-line parameters passed to the kernel on boot. @link https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html
func (*VZLinuxBootLoader) InitWithKernelURL ¶
func (o *VZLinuxBootLoader) InitWithKernelURL(kernelURL *foundation.NSURL) *VZLinuxBootLoader
Creates a boot loader that launches the Linux kernel at the specified URL.
func (*VZLinuxBootLoader) InitialRamdiskURL ¶
func (o *VZLinuxBootLoader) InitialRamdiskURL() *foundation.NSURL
@abstract Set the optional initial RAM disk. The RAM disk is mapped into memory before booting the kernel.
func (*VZLinuxBootLoader) KernelURL ¶
func (o *VZLinuxBootLoader) KernelURL() *foundation.NSURL
@abstract URL of the Linux kernel.
func (*VZLinuxBootLoader) SetCommandLine ¶
func (o *VZLinuxBootLoader) SetCommandLine(commandLine *foundation.NSString)
func (*VZLinuxBootLoader) SetInitialRamdiskURL ¶
func (o *VZLinuxBootLoader) SetInitialRamdiskURL(initialRamdiskURL *foundation.NSURL)
func (*VZLinuxBootLoader) SetKernelURL ¶
func (o *VZLinuxBootLoader) SetKernelURL(kernelURL *foundation.NSURL)
type VZLinuxRosettaAbstractSocketCachingOptions ¶
type VZLinuxRosettaAbstractSocketCachingOptions struct {
VZLinuxRosettaCachingOptions
}
Caching options for an abstract socket.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzlinuxrosettaabstractsocketcachingoptions
func VZLinuxRosettaAbstractSocketCachingOptionsFromID ¶
func VZLinuxRosettaAbstractSocketCachingOptionsFromID(id objc.ID) *VZLinuxRosettaAbstractSocketCachingOptions
func (*VZLinuxRosettaAbstractSocketCachingOptions) InitWithNameError ¶
func (o *VZLinuxRosettaAbstractSocketCachingOptions) InitWithNameError(name *foundation.NSString) (*VZLinuxRosettaAbstractSocketCachingOptions, error)
Initialize options to set on a Rosetta directory share.
func (*VZLinuxRosettaAbstractSocketCachingOptions) Name ¶
func (o *VZLinuxRosettaAbstractSocketCachingOptions) Name() *foundation.NSString
@abstract Name set by initWithName. @discussion This is the name of the Abstract Socket to be used by Rosetta.
type VZLinuxRosettaAvailability ¶
type VZLinuxRosettaAvailability int64
Constants that describe the availability and installation status of Rosetta.
const ( // The current hardware or software configuration doesn’t support Rosetta. VZLinuxRosettaAvailabilityNotSupported VZLinuxRosettaAvailability = 0 // Rosetta isn’t installed. VZLinuxRosettaAvailabilityNotInstalled VZLinuxRosettaAvailability = 1 // Rosetta is available on the host system. VZLinuxRosettaAvailabilityInstalled VZLinuxRosettaAvailability = 2 )
func VZLinuxRosettaDirectoryShareAvailability ¶
func VZLinuxRosettaDirectoryShareAvailability() VZLinuxRosettaAvailability
@abstract Check the availability of Rosetta support for the directory share.
func (VZLinuxRosettaAvailability) String ¶
func (e VZLinuxRosettaAvailability) String() string
type VZLinuxRosettaCachingOptions ¶
type VZLinuxRosettaCachingOptions struct {
foundation.NSObject
}
An abstract class that defines UNIX socket-based caching options for Rosetta.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzlinuxrosettacachingoptions
func VZLinuxRosettaCachingOptionsFromID ¶
func VZLinuxRosettaCachingOptionsFromID(id objc.ID) *VZLinuxRosettaCachingOptions
type VZLinuxRosettaDirectoryShare ¶
type VZLinuxRosettaDirectoryShare struct {
}
The Linux directory share for Rosetta.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzlinuxrosettadirectoryshare
func VZLinuxRosettaDirectoryShareFromID ¶
func VZLinuxRosettaDirectoryShareFromID(id objc.ID) *VZLinuxRosettaDirectoryShare
func (*VZLinuxRosettaDirectoryShare) InitWithError ¶
func (o *VZLinuxRosettaDirectoryShare) InitWithError() (*VZLinuxRosettaDirectoryShare, error)
Creates a new Rosetta directory share, or returns an error if Rosetta isn’t installed.
func (*VZLinuxRosettaDirectoryShare) Options ¶
func (o *VZLinuxRosettaDirectoryShare) Options() *VZLinuxRosettaCachingOptions
@abstract Enable translation caching and configure the socket communication type for Rosetta.
func (*VZLinuxRosettaDirectoryShare) SetOptions ¶
func (o *VZLinuxRosettaDirectoryShare) SetOptions(options *VZLinuxRosettaCachingOptions)
type VZLinuxRosettaUnixSocketCachingOptions ¶
type VZLinuxRosettaUnixSocketCachingOptions struct {
VZLinuxRosettaCachingOptions
}
An object that represents caching options for a UNIX domain socket.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzlinuxrosettaunixsocketcachingoptions
func VZLinuxRosettaUnixSocketCachingOptionsFromID ¶
func VZLinuxRosettaUnixSocketCachingOptionsFromID(id objc.ID) *VZLinuxRosettaUnixSocketCachingOptions
func (*VZLinuxRosettaUnixSocketCachingOptions) Init ¶
func (o *VZLinuxRosettaUnixSocketCachingOptions) Init() *VZLinuxRosettaUnixSocketCachingOptions
Creates a new Rosetta caching options object for a UNIX domain socket.
func (*VZLinuxRosettaUnixSocketCachingOptions) InitWithPathError ¶
func (o *VZLinuxRosettaUnixSocketCachingOptions) InitWithPathError(path *foundation.NSString) (*VZLinuxRosettaUnixSocketCachingOptions, error)
Creates a new Rosetta caching options object for a UNIX domain socket with the path you specify.
func (*VZLinuxRosettaUnixSocketCachingOptions) Path ¶
func (o *VZLinuxRosettaUnixSocketCachingOptions) Path() *foundation.NSString
@abstract Path set by initWithPath. @discussion This is the path of the Unix Domain Socket to be used by Rosetta.
type VZMACAddress ¶
type VZMACAddress struct {
foundation.NSObject
}
The media access control (MAC) address for a network interface in your virtual machine.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacaddress
func VZMACAddressFromID ¶
func VZMACAddressFromID(id objc.ID) *VZMACAddress
func VZMACAddressRandomLocallyAdministeredAddress ¶
func VZMACAddressRandomLocallyAdministeredAddress() *VZMACAddress
Returns a valid, random, locally administered, unicast MAC address.
func (*VZMACAddress) EthernetAddress ¶
func (o *VZMACAddress) EthernetAddress() unsafe.Pointer
@abstract The address represented as an ether_addr_t.
func (*VZMACAddress) InitWithEthernetAddress ¶
func (o *VZMACAddress) InitWithEthernetAddress(ethernetAddress unsafe.Pointer) *VZMACAddress
Creates a MAC address from the specified 48-bit Ethernet address.
func (*VZMACAddress) InitWithString ¶
func (o *VZMACAddress) InitWithString(string_ *foundation.NSString) *VZMACAddress
Creates a MAC address object from a specially formatted string.
func (*VZMACAddress) IsBroadcastAddress ¶
func (o *VZMACAddress) IsBroadcastAddress() bool
@abstract True if the address is the broadcast address, false otherwise.
func (*VZMACAddress) IsLocallyAdministeredAddress ¶
func (o *VZMACAddress) IsLocallyAdministeredAddress() bool
@abstract True if the address is a locally administered address (LAA), false otherwise.
func (*VZMACAddress) IsMulticastAddress ¶
func (o *VZMACAddress) IsMulticastAddress() bool
@abstract True if the address is a multicast address, false otherwise.
func (*VZMACAddress) IsUnicastAddress ¶
func (o *VZMACAddress) IsUnicastAddress() bool
@abstract True if the address is a unicast address, false otherwise.
func (*VZMACAddress) IsUniversallyAdministeredAddress ¶
func (o *VZMACAddress) IsUniversallyAdministeredAddress() bool
@abstract True if the address is a universally administered address (UAA), false otherwise.
func (*VZMACAddress) String ¶
func (o *VZMACAddress) String() *foundation.NSString
@abstract The address represented as a string. @discussion The 6 bytes are represented in hexadecimal form, separated by a colon character. Alphabetical characters are lowercase. The address is compatible with the parameter of -[VZMACAddress initWithString:].
type VZMacAuxiliaryStorage ¶
type VZMacAuxiliaryStorage struct {
foundation.NSObject
}
An object that contains information the boot loader needs for booting macOS as a guest operating system.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacauxiliarystorage
func VZMacAuxiliaryStorageFromID ¶
func VZMacAuxiliaryStorageFromID(id objc.ID) *VZMacAuxiliaryStorage
func (*VZMacAuxiliaryStorage) InitCreatingStorageAtURLHardwareModelOptionsError ¶
func (o *VZMacAuxiliaryStorage) InitCreatingStorageAtURLHardwareModelOptionsError(url *foundation.NSURL, hardwareModel *VZMacHardwareModel, options VZMacAuxiliaryStorageInitializationOptions) (*VZMacAuxiliaryStorage, error)
Creates an initialized Mac auxiliary storage instance that describes a specific hardware model at a URL you specify.
func (*VZMacAuxiliaryStorage) InitWithContentsOfURL
deprecated
func (o *VZMacAuxiliaryStorage) InitWithContentsOfURL(url *foundation.NSURL) *VZMacAuxiliaryStorage
Deprecated: since macOS API_TO_BE_DEPRECATED.
func (*VZMacAuxiliaryStorage) InitWithURL ¶
func (o *VZMacAuxiliaryStorage) InitWithURL(url *foundation.NSURL) *VZMacAuxiliaryStorage
Initializes an auxiliary storage object with data from the location at the URL you provide.
func (*VZMacAuxiliaryStorage) URL ¶
func (o *VZMacAuxiliaryStorage) URL() *foundation.NSURL
type VZMacAuxiliaryStorageInitializationOptions ¶
type VZMacAuxiliaryStorageInitializationOptions uint64
const ( // Overwrite an existing auxiliary storage. VZMacAuxiliaryStorageInitializationOptionAllowOverwrite VZMacAuxiliaryStorageInitializationOptions = 1 )
func (VZMacAuxiliaryStorageInitializationOptions) String ¶
func (e VZMacAuxiliaryStorageInitializationOptions) String() string
type VZMacGraphicsDevice ¶
type VZMacGraphicsDevice struct {
VZGraphicsDevice
}
An object that represents a Mac graphics device.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacgraphicsdevice
func VZMacGraphicsDeviceFromID ¶
func VZMacGraphicsDeviceFromID(id objc.ID) *VZMacGraphicsDevice
type VZMacGraphicsDeviceConfiguration ¶
type VZMacGraphicsDeviceConfiguration struct {
VZGraphicsDeviceConfiguration
}
Configuration for a display attached to a Mac graphics device.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacgraphicsdeviceconfiguration
func VZMacGraphicsDeviceConfigurationFromID ¶
func VZMacGraphicsDeviceConfigurationFromID(id objc.ID) *VZMacGraphicsDeviceConfiguration
func (*VZMacGraphicsDeviceConfiguration) Displays ¶
func (o *VZMacGraphicsDeviceConfiguration) Displays() *foundation.NSArray[*VZMacGraphicsDisplayConfiguration]
func (*VZMacGraphicsDeviceConfiguration) Init ¶
func (o *VZMacGraphicsDeviceConfiguration) Init() *VZMacGraphicsDeviceConfiguration
Creates a new Mac graphics device configuration.
func (*VZMacGraphicsDeviceConfiguration) SetDisplays ¶
func (o *VZMacGraphicsDeviceConfiguration) SetDisplays(displays *foundation.NSArray[*VZMacGraphicsDisplayConfiguration])
type VZMacGraphicsDisplay ¶
type VZMacGraphicsDisplay struct {
VZGraphicsDisplay
}
An object that represents the graphics display on a Mac.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacgraphicsdisplay
func VZMacGraphicsDisplayFromID ¶
func VZMacGraphicsDisplayFromID(id objc.ID) *VZMacGraphicsDisplay
func (*VZMacGraphicsDisplay) PixelsPerInch ¶
func (o *VZMacGraphicsDisplay) PixelsPerInch() int
type VZMacGraphicsDisplayConfiguration ¶
type VZMacGraphicsDisplayConfiguration struct {
VZGraphicsDisplayConfiguration
}
The configuration for a Mac graphics device.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacgraphicsdisplayconfiguration
func VZMacGraphicsDisplayConfigurationFromID ¶
func VZMacGraphicsDisplayConfigurationFromID(id objc.ID) *VZMacGraphicsDisplayConfiguration
func (*VZMacGraphicsDisplayConfiguration) HeightInPixels ¶
func (o *VZMacGraphicsDisplayConfiguration) HeightInPixels() int
@abstract The height of the display, in pixels.
func (*VZMacGraphicsDisplayConfiguration) InitForScreenSizeInPoints ¶
func (o *VZMacGraphicsDisplayConfiguration) InitForScreenSizeInPoints(screen *appkit.NSScreen, sizeInPoints corefoundation.CGSize) *VZMacGraphicsDisplayConfiguration
Create a display configuration suitable for showing on the specified screen.
func (*VZMacGraphicsDisplayConfiguration) InitWithWidthInPixelsHeightInPixelsPixelsPerInch ¶
func (o *VZMacGraphicsDisplayConfiguration) InitWithWidthInPixelsHeightInPixelsPixelsPerInch(widthInPixels int, heightInPixels int, pixelsPerInch int) *VZMacGraphicsDisplayConfiguration
Create a display configuration with the specified pixel dimensions and pixel density.
func (*VZMacGraphicsDisplayConfiguration) PixelsPerInch ¶
func (o *VZMacGraphicsDisplayConfiguration) PixelsPerInch() int
@abstract The pixel density as a number of pixels per inch.
func (*VZMacGraphicsDisplayConfiguration) SetHeightInPixels ¶
func (o *VZMacGraphicsDisplayConfiguration) SetHeightInPixels(heightInPixels int)
func (*VZMacGraphicsDisplayConfiguration) SetPixelsPerInch ¶
func (o *VZMacGraphicsDisplayConfiguration) SetPixelsPerInch(pixelsPerInch int)
func (*VZMacGraphicsDisplayConfiguration) SetWidthInPixels ¶
func (o *VZMacGraphicsDisplayConfiguration) SetWidthInPixels(widthInPixels int)
func (*VZMacGraphicsDisplayConfiguration) WidthInPixels ¶
func (o *VZMacGraphicsDisplayConfiguration) WidthInPixels() int
@abstract The width of the display, in pixels.
type VZMacGuestProvisioningOptions ¶
type VZMacGuestProvisioningOptions struct {
VZGuestProvisioningOptions
}
The configuration for guest setup during macOS virtual machine startup.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacguestprovisioningoptions
func VZMacGuestProvisioningOptionsFromID ¶
func VZMacGuestProvisioningOptionsFromID(id objc.ID) *VZMacGuestProvisioningOptions
func (*VZMacGuestProvisioningOptions) EnablesRemoteLogin ¶
func (o *VZMacGuestProvisioningOptions) EnablesRemoteLogin() bool
A Boolean value that indicates whether to enable Remote Login (using SSH) for the macOS virtual machine. Defaults to `NO`.
func (*VZMacGuestProvisioningOptions) FullName ¶
func (o *VZMacGuestProvisioningOptions) FullName() *foundation.NSString
A person's full name to configure for the macOS virtual machine.
func (*VZMacGuestProvisioningOptions) Init ¶
func (o *VZMacGuestProvisioningOptions) Init() *VZMacGuestProvisioningOptions
func (*VZMacGuestProvisioningOptions) LogsInAutomatically ¶
func (o *VZMacGuestProvisioningOptions) LogsInAutomatically() bool
A Boolean value that indicates whether to automatically log in the person at startup.
func (*VZMacGuestProvisioningOptions) Password ¶
func (o *VZMacGuestProvisioningOptions) Password() *foundation.NSString
The password to configure for the macOS virtual machine.
func (*VZMacGuestProvisioningOptions) SetEnablesRemoteLogin ¶
func (o *VZMacGuestProvisioningOptions) SetEnablesRemoteLogin(enablesRemoteLogin bool)
func (*VZMacGuestProvisioningOptions) SetFullName ¶
func (o *VZMacGuestProvisioningOptions) SetFullName(fullName *foundation.NSString)
func (*VZMacGuestProvisioningOptions) SetLogsInAutomatically ¶
func (o *VZMacGuestProvisioningOptions) SetLogsInAutomatically(logsInAutomatically bool)
func (*VZMacGuestProvisioningOptions) SetPassword ¶
func (o *VZMacGuestProvisioningOptions) SetPassword(password *foundation.NSString)
func (*VZMacGuestProvisioningOptions) SetUsername ¶
func (o *VZMacGuestProvisioningOptions) SetUsername(username *foundation.NSString)
func (*VZMacGuestProvisioningOptions) Username ¶
func (o *VZMacGuestProvisioningOptions) Username() *foundation.NSString
The username for logging into the macOS virtual machine.
type VZMacHardwareModel ¶
type VZMacHardwareModel struct {
foundation.NSObject
}
A specification for the hardware elements and configurations present in a particular Mac hardware model.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmachardwaremodel
func VZMacHardwareModelFromID ¶
func VZMacHardwareModelFromID(id objc.ID) *VZMacHardwareModel
func (*VZMacHardwareModel) DataRepresentation ¶
func (o *VZMacHardwareModel) DataRepresentation() *foundation.NSData
@abstract Opaque data representation of the hardware model. @discussion This can be used to recreate the same hardware model with -[VZMacHardwareModel initWithDataRepresentation:].
func (*VZMacHardwareModel) InitWithDataRepresentation ¶
func (o *VZMacHardwareModel) InitWithDataRepresentation(dataRepresentation *foundation.NSData) *VZMacHardwareModel
Creates an instance of the hardware model described by the specified data representation.
func (*VZMacHardwareModel) IsSupported ¶
func (o *VZMacHardwareModel) IsSupported() bool
@abstract Indicate whether this hardware model is supported by the host. @discussion If this hardware model is not supported by the host, no VZVirtualMachineConfiguration using it will validate. The validation error of the VZVirtualMachineConfiguration provides more information about why the hardware model is unsupported.
type VZMacKeyboardConfiguration ¶
type VZMacKeyboardConfiguration struct {
VZKeyboardConfiguration
}
A device that defines the configuration for a Mac keyboard.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmackeyboardconfiguration
func VZMacKeyboardConfigurationFromID ¶
func VZMacKeyboardConfigurationFromID(id objc.ID) *VZMacKeyboardConfiguration
func (*VZMacKeyboardConfiguration) Init ¶
func (o *VZMacKeyboardConfiguration) Init() *VZMacKeyboardConfiguration
Creates a new Mac keyboard configuration.
type VZMacMachineIdentifier ¶
type VZMacMachineIdentifier struct {
foundation.NSObject
}
A unique identifier for a VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacmachineidentifier
func VZMacMachineIdentifierFromID ¶
func VZMacMachineIdentifierFromID(id objc.ID) *VZMacMachineIdentifier
func (*VZMacMachineIdentifier) DataRepresentation ¶
func (o *VZMacMachineIdentifier) DataRepresentation() *foundation.NSData
func (*VZMacMachineIdentifier) Init ¶
func (o *VZMacMachineIdentifier) Init() *VZMacMachineIdentifier
Creates a new unique machine identifier.
func (*VZMacMachineIdentifier) InitWithDataRepresentation ¶
func (o *VZMacMachineIdentifier) InitWithDataRepresentation(dataRepresentation *foundation.NSData) *VZMacMachineIdentifier
Create a machine identifier described by the specified data representation.
type VZMacOSBootLoader ¶
type VZMacOSBootLoader struct {
VZBootLoader
}
An object that loads and configures a boot loader for running macOS on Apple silicon as a guest system of your VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacosbootloader
func VZMacOSBootLoaderFromID ¶
func VZMacOSBootLoaderFromID(id objc.ID) *VZMacOSBootLoader
func (*VZMacOSBootLoader) Init ¶
func (o *VZMacOSBootLoader) Init() *VZMacOSBootLoader
Creates a macOS boot loader.
type VZMacOSConfigurationRequirements ¶
type VZMacOSConfigurationRequirements struct {
foundation.NSObject
}
An object that describes the parameter constraints required by a specific configuration of macOS.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacosconfigurationrequirements
func VZMacOSConfigurationRequirementsFromID ¶
func VZMacOSConfigurationRequirementsFromID(id objc.ID) *VZMacOSConfigurationRequirements
func (*VZMacOSConfigurationRequirements) HardwareModel ¶
func (o *VZMacOSConfigurationRequirements) HardwareModel() *VZMacHardwareModel
@abstract The hardware model for this configuration. @discussion The hardware model can be used to configure a new virtual machine that meets the requirements. Use VZMacPlatformConfiguration.hardwareModel to configure the Mac platform, and -[VZMacAuxiliaryStorage initCreatingStorageAtURL:hardwareModel:options:error:] to create its auxiliary storage. @see VZMacPlatformConfiguration @see VZMacAuxiliaryStorage
func (*VZMacOSConfigurationRequirements) MinimumSupportedCPUCount ¶
func (o *VZMacOSConfigurationRequirements) MinimumSupportedCPUCount() uint
@abstract The minimum supported number of CPUs for this configuration. @discussion A VZMacOSConfigurationRequirements object is associated with a specific VZMacOSRestoreImage object, and thus a specific macOS configuration. This property specifies the minimum number of CPUs required by the associated macOS configuration. Installing or running the associated configuration of macOS on a virtual machine with fewer than this number of CPUs will result in undefined behavior.
func (*VZMacOSConfigurationRequirements) MinimumSupportedMemorySize ¶
func (o *VZMacOSConfigurationRequirements) MinimumSupportedMemorySize() uint64
@abstract The minimum supported memory size for this configuration. @discussion A VZMacOSConfigurationRequirements object is associated with a specific VZMacOSRestoreImage object, and thus a specific macOS configuration. This property specifies the minimum amount of memory required by the associated macOS configuration. Installing or running the associated configuration of macOS on a virtual machine with less than this amount of memory will result in undefined behavior.
type VZMacOSInstaller ¶
type VZMacOSInstaller struct {
foundation.NSObject
}
An object you use to install macOS on the specified virtual machine.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacosinstaller
func VZMacOSInstallerFromID ¶
func VZMacOSInstallerFromID(id objc.ID) *VZMacOSInstaller
func (*VZMacOSInstaller) InitWithVirtualMachineRestoreImageURL ¶
func (o *VZMacOSInstaller) InitWithVirtualMachineRestoreImageURL(virtualMachine *VZVirtualMachine, restoreImageFileURL *foundation.NSURL) *VZMacOSInstaller
Creates a macOS installer object.
func (*VZMacOSInstaller) InstallWithCompletionHandler ¶
func (o *VZMacOSInstaller) InstallWithCompletionHandler(completionHandler func(unsafe.Pointer))
Start installing macOS.
func (*VZMacOSInstaller) Progress ¶
func (o *VZMacOSInstaller) Progress() *foundation.NSProgress
@abstract An NSProgress object that can be used to observe or cancel installation. @discussion If the progress object is cancelled before installation is started, an exception will be raised.
func (*VZMacOSInstaller) RestoreImageURL ¶
func (o *VZMacOSInstaller) RestoreImageURL() *foundation.NSURL
@abstract The restore image URL that this installer was initialized with.
func (*VZMacOSInstaller) VirtualMachine ¶
func (o *VZMacOSInstaller) VirtualMachine() *VZVirtualMachine
@abstract The virtual machine that this installer was initialized with.
type VZMacOSRestoreImage ¶
type VZMacOSRestoreImage struct {
foundation.NSObject
}
An object that describes a version of macOS to install on to a virtual machine.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacosrestoreimage
func VZMacOSRestoreImageFromID ¶
func VZMacOSRestoreImageFromID(id objc.ID) *VZMacOSRestoreImage
func (*VZMacOSRestoreImage) BuildVersion ¶
func (o *VZMacOSRestoreImage) BuildVersion() *foundation.NSString
@abstract The build version this restore image contains.
func (*VZMacOSRestoreImage) IsSupported ¶
func (o *VZMacOSRestoreImage) IsSupported() bool
@abstract Whether this restore image is supported on the current host.
func (*VZMacOSRestoreImage) MostFeaturefulSupportedConfiguration ¶
func (o *VZMacOSRestoreImage) MostFeaturefulSupportedConfiguration() *VZMacOSConfigurationRequirements
@abstract The configuration requirements for the most featureful configuration supported by the current host and by this restore image. @discussion A VZMacOSRestoreImage can contain installation media for multiple Mac hardware models (VZMacHardwareModel). Some of these hardware models may not be supported by the current host. The mostFeaturefulSupportedConfiguration property can be used to determine the hardware model and configuration requirements that will provide the most complete feature set on the current host. If none of the hardware models are supported on the current host, this property is nil.
func (*VZMacOSRestoreImage) OperatingSystemVersion ¶
func (o *VZMacOSRestoreImage) OperatingSystemVersion() foundation.NSOperatingSystemVersion
@abstract The operating system version this restore image contains.
func (*VZMacOSRestoreImage) URL ¶
func (o *VZMacOSRestoreImage) URL() *foundation.NSURL
@abstract The URL of this restore image. @discussion If the restore image was loaded using +[VZMacOSRestoreImage loadFileURL:completionHandler:], the value of this property will be a file URL. If the restore image was fetched using +[VZMacOSRestoreImage fetchLatestSupportedWithCompletionHandler:], the value of this property will be a network URL referring to an installation media file.
type VZMacOSVirtualMachineStartOptions ¶
type VZMacOSVirtualMachineStartOptions struct {
VZVirtualMachineStartOptions
}
A class that describes start options for macOS VMs.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacosvirtualmachinestartoptions
func VZMacOSVirtualMachineStartOptionsFromID ¶
func VZMacOSVirtualMachineStartOptionsFromID(id objc.ID) *VZMacOSVirtualMachineStartOptions
func (*VZMacOSVirtualMachineStartOptions) GuestProvisioningOptions ¶
func (o *VZMacOSVirtualMachineStartOptions) GuestProvisioningOptions() *VZMacGuestProvisioningOptions
A value that controls provisioning a macOS guest. This property allows someone to provision a macOS guest by setting “VZMacGuestProvisioningOptions“.
func (*VZMacOSVirtualMachineStartOptions) SetGuestProvisioningOptionsError ¶
func (o *VZMacOSVirtualMachineStartOptions) SetGuestProvisioningOptionsError(guestProvisioningOptions *VZMacGuestProvisioningOptions) (bool, error)
Sets guest provisioning options with validation.
func (*VZMacOSVirtualMachineStartOptions) SetStartUpFromMacOSRecovery ¶
func (o *VZMacOSVirtualMachineStartOptions) SetStartUpFromMacOSRecovery(startUpFromMacOSRecovery bool)
func (*VZMacOSVirtualMachineStartOptions) StartUpFromMacOSRecovery ¶
func (o *VZMacOSVirtualMachineStartOptions) StartUpFromMacOSRecovery() bool
A Boolean value that indicates whether to start up from macOS Recovery.
type VZMacPlatformConfiguration ¶
type VZMacPlatformConfiguration struct {
VZPlatformConfiguration
}
The platform configuration for booting macOS on Apple silicon.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmacplatformconfiguration
func VZMacPlatformConfigurationFromID ¶
func VZMacPlatformConfigurationFromID(id objc.ID) *VZMacPlatformConfiguration
func (*VZMacPlatformConfiguration) AuxiliaryStorage ¶
func (o *VZMacPlatformConfiguration) AuxiliaryStorage() *VZMacAuxiliaryStorage
@abstract The Mac auxiliary storage. @discussion When creating a virtual machine from scratch, the hardware model of the `auxiliaryStorage` must match the hardware model of the `hardwareModel` property.
func (*VZMacPlatformConfiguration) HardwareModel ¶
func (o *VZMacPlatformConfiguration) HardwareModel() *VZMacHardwareModel
@abstract The Mac hardware model.
func (*VZMacPlatformConfiguration) Init ¶
func (o *VZMacPlatformConfiguration) Init() *VZMacPlatformConfiguration
Creates a new Mac platform configuration.
func (*VZMacPlatformConfiguration) MachineIdentifier ¶
func (o *VZMacPlatformConfiguration) MachineIdentifier() *VZMacMachineIdentifier
@abstract The unique Mac machine identifier. @discussion Running two virtual machines concurrently with the same identifier results in undefined behavior in the guest operating system.
func (*VZMacPlatformConfiguration) SetAuxiliaryStorage ¶
func (o *VZMacPlatformConfiguration) SetAuxiliaryStorage(auxiliaryStorage *VZMacAuxiliaryStorage)
func (*VZMacPlatformConfiguration) SetHardwareModel ¶
func (o *VZMacPlatformConfiguration) SetHardwareModel(hardwareModel *VZMacHardwareModel)
func (*VZMacPlatformConfiguration) SetMachineIdentifier ¶
func (o *VZMacPlatformConfiguration) SetMachineIdentifier(machineIdentifier *VZMacMachineIdentifier)
type VZMacTrackpadConfiguration ¶
type VZMacTrackpadConfiguration struct {
VZPointingDeviceConfiguration
}
The class that represents the configuration for a Mac trackpad.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmactrackpadconfiguration
func VZMacTrackpadConfigurationFromID ¶
func VZMacTrackpadConfigurationFromID(id objc.ID) *VZMacTrackpadConfiguration
func (*VZMacTrackpadConfiguration) Init ¶
func (o *VZMacTrackpadConfiguration) Init() *VZMacTrackpadConfiguration
Creates a new Mac trackpad configuration.
type VZMemoryBalloonDevice ¶
type VZMemoryBalloonDevice struct {
foundation.NSObject
}
The common behavior for memory devices.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmemoryballoondevice
func VZMemoryBalloonDeviceFromID ¶
func VZMemoryBalloonDeviceFromID(id objc.ID) *VZMemoryBalloonDevice
type VZMemoryBalloonDeviceConfiguration ¶
type VZMemoryBalloonDeviceConfiguration struct {
foundation.NSObject
}
The common configuration traits for memory balloon devices.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmemoryballoondeviceconfiguration
func VZMemoryBalloonDeviceConfigurationFromID ¶
func VZMemoryBalloonDeviceConfigurationFromID(id objc.ID) *VZMemoryBalloonDeviceConfiguration
type VZMultipleDirectoryShare ¶
type VZMultipleDirectoryShare struct {
}
An object that describes a directory share for multiple directories.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzmultipledirectoryshare
func VZMultipleDirectoryShareFromID ¶
func VZMultipleDirectoryShareFromID(id objc.ID) *VZMultipleDirectoryShare
func (*VZMultipleDirectoryShare) Directories ¶
func (o *VZMultipleDirectoryShare) Directories() *foundation.NSDictionary[*foundation.NSString, *VZSharedDirectory]
@abstract The directories on the host to expose to the guest. @discussion The dictionary string keys will be the name for the directory. The keys must be valid names or an exception will be raised. @see +[VZMultipleDirectoryShare validateName:error:]
func (*VZMultipleDirectoryShare) Init ¶
func (o *VZMultipleDirectoryShare) Init() *VZMultipleDirectoryShare
Initializes the directory share with an empty set of directories.
func (*VZMultipleDirectoryShare) InitWithDirectories ¶
func (o *VZMultipleDirectoryShare) InitWithDirectories(directories *foundation.NSDictionary[*foundation.NSString, *VZSharedDirectory]) *VZMultipleDirectoryShare
Creates the directory share with a set of directories on the host.
type VZNATNetworkDeviceAttachment ¶
type VZNATNetworkDeviceAttachment struct {
VZNetworkDeviceAttachment
}
A device that routes network requests through the host computer and performs network address translation on the resulting packets.
Apple documentation: https://developer.apple.com/documentation/virtualization/vznatnetworkdeviceattachment
func VZNATNetworkDeviceAttachmentFromID ¶
func VZNATNetworkDeviceAttachmentFromID(id objc.ID) *VZNATNetworkDeviceAttachment
func (*VZNATNetworkDeviceAttachment) Init ¶
func (o *VZNATNetworkDeviceAttachment) Init() *VZNATNetworkDeviceAttachment
Creates an attachment that performs network address translation on the guest system’s network packets.
type VZNVMExpressControllerDeviceConfiguration ¶
type VZNVMExpressControllerDeviceConfiguration struct {
VZStorageDeviceConfiguration
}
The configuration object that represents an NVM Express Controller storage device.
Apple documentation: https://developer.apple.com/documentation/virtualization/vznvmexpresscontrollerdeviceconfiguration
func VZNVMExpressControllerDeviceConfigurationFromID ¶
func VZNVMExpressControllerDeviceConfigurationFromID(id objc.ID) *VZNVMExpressControllerDeviceConfiguration
func (*VZNVMExpressControllerDeviceConfiguration) InitWithAttachment ¶
func (o *VZNVMExpressControllerDeviceConfiguration) InitWithAttachment(attachment *VZStorageDeviceAttachment) *VZNVMExpressControllerDeviceConfiguration
Creates a new NVM Express controller configuration with the storage device attachment you provide.
type VZNegotiatedVirtioFeatureSet ¶
type VZNegotiatedVirtioFeatureSet struct {
foundation.NSObject
}
Values that represent a set of negotiated Virtio feature bits.
Apple documentation: https://developer.apple.com/documentation/virtualization/vznegotiatedvirtiofeatureset
func VZNegotiatedVirtioFeatureSetFromID ¶
func VZNegotiatedVirtioFeatureSetFromID(id objc.ID) *VZNegotiatedVirtioFeatureSet
func (*VZNegotiatedVirtioFeatureSet) Subset0 ¶
func (o *VZNegotiatedVirtioFeatureSet) Subset0() uint32
The values that represent feature bits 0 through 31.
func (*VZNegotiatedVirtioFeatureSet) Subset1 ¶
func (o *VZNegotiatedVirtioFeatureSet) Subset1() uint32
The value that represent feature bits 32 through 63.
type VZNetworkBlockDeviceStorageDeviceAttachment ¶
type VZNetworkBlockDeviceStorageDeviceAttachment struct {
VZStorageDeviceAttachment
}
A storage device attachment backed by a Network Block Device (NBD) client.
Apple documentation: https://developer.apple.com/documentation/virtualization/vznetworkblockdevicestoragedeviceattachment
func VZNetworkBlockDeviceStorageDeviceAttachmentFromID ¶
func VZNetworkBlockDeviceStorageDeviceAttachmentFromID(id objc.ID) *VZNetworkBlockDeviceStorageDeviceAttachment
func (*VZNetworkBlockDeviceStorageDeviceAttachment) Delegate ¶
func (o *VZNetworkBlockDeviceStorageDeviceAttachment) Delegate() VZNetworkBlockDeviceStorageDeviceAttachmentDelegate
@abstract The attachment's delegate.
func (*VZNetworkBlockDeviceStorageDeviceAttachment) InitWithURLError ¶
func (o *VZNetworkBlockDeviceStorageDeviceAttachment) InitWithURLError(url *foundation.NSURL) (*VZNetworkBlockDeviceStorageDeviceAttachment, error)
Creates a new network block device (NBD) storage attachment from an NDB Uniform Resource Indicator (URI) represented as a URL that you provide.
func (*VZNetworkBlockDeviceStorageDeviceAttachment) InitWithURLTimeoutForcedReadOnlySynchronizationModeError ¶
func (o *VZNetworkBlockDeviceStorageDeviceAttachment) InitWithURLTimeoutForcedReadOnlySynchronizationModeError(url *foundation.NSURL, timeout float64, forcedReadOnly bool, synchronizationMode VZDiskSynchronizationMode) (*VZNetworkBlockDeviceStorageDeviceAttachment, error)
Creates a new network block device storage attachment from an NBD Uniform Resource Indicator (URI) represented as a URL, timeout value, and read-only and synchronization modes that you provide.
func (*VZNetworkBlockDeviceStorageDeviceAttachment) IsForcedReadOnly ¶
func (o *VZNetworkBlockDeviceStorageDeviceAttachment) IsForcedReadOnly() bool
@abstract Whether the underlying disk attachment is forced to be read-only. @discussion The `forcedReadOnly` parameter affects how the NBD client is exposed to the guest operating system by the storage controller. As part of the NBD protocol, whether or not the disk exposed by the NBD client is read-only is advertised by the NBD server during the handshake phase of the protocol. Setting `forcedReadOnly` to YES will force the NBD client to show up as read-only to the guest regardless of whether or not the NBD server advertises itself as read-only.
func (*VZNetworkBlockDeviceStorageDeviceAttachment) SetDelegate ¶
func (o *VZNetworkBlockDeviceStorageDeviceAttachment) SetDelegate(delegate VZNetworkBlockDeviceStorageDeviceAttachmentDelegate)
func (*VZNetworkBlockDeviceStorageDeviceAttachment) SynchronizationMode ¶
func (o *VZNetworkBlockDeviceStorageDeviceAttachment) SynchronizationMode() VZDiskSynchronizationMode
@abstract The mode in which the NBD client synchronizes data with the NBD server.
func (*VZNetworkBlockDeviceStorageDeviceAttachment) Timeout ¶
func (o *VZNetworkBlockDeviceStorageDeviceAttachment) Timeout() float64
@abstract The timeout value in seconds for the connection between the client and server. When the timeout expires, an attempt to reconnect with the server will take place.
func (*VZNetworkBlockDeviceStorageDeviceAttachment) URL ¶
func (o *VZNetworkBlockDeviceStorageDeviceAttachment) URL() *foundation.NSURL
@abstract URL referring to the NBD server to which the NBD client is to be connected.
type VZNetworkBlockDeviceStorageDeviceAttachmentDelegate ¶
type VZNetworkBlockDeviceStorageDeviceAttachmentDelegate interface {
}
VZNetworkBlockDeviceStorageDeviceAttachmentDelegate wraps the ObjC protocol VZNetworkBlockDeviceStorageDeviceAttachmentDelegate.
type VZNetworkDevice ¶
type VZNetworkDevice struct {
foundation.NSObject
}
A base class that represents a network device in a virtual machine.
Apple documentation: https://developer.apple.com/documentation/virtualization/vznetworkdevice
func VZNetworkDeviceFromID ¶
func VZNetworkDeviceFromID(id objc.ID) *VZNetworkDevice
func (*VZNetworkDevice) Attachment ¶
func (o *VZNetworkDevice) Attachment() *VZNetworkDeviceAttachment
func (*VZNetworkDevice) SetAttachment ¶
func (o *VZNetworkDevice) SetAttachment(attachment *VZNetworkDeviceAttachment)
type VZNetworkDeviceAttachment ¶
type VZNetworkDeviceAttachment struct {
foundation.NSObject
}
The common behaviors for the network attachment points of your virtual machine.
Apple documentation: https://developer.apple.com/documentation/virtualization/vznetworkdeviceattachment
func VZNetworkDeviceAttachmentFromID ¶
func VZNetworkDeviceAttachmentFromID(id objc.ID) *VZNetworkDeviceAttachment
type VZNetworkDeviceConfiguration ¶
type VZNetworkDeviceConfiguration struct {
foundation.NSObject
}
The common configuration traits for network devices.
Apple documentation: https://developer.apple.com/documentation/virtualization/vznetworkdeviceconfiguration
func VZNetworkDeviceConfigurationFromID ¶
func VZNetworkDeviceConfigurationFromID(id objc.ID) *VZNetworkDeviceConfiguration
func (*VZNetworkDeviceConfiguration) Attachment ¶
func (o *VZNetworkDeviceConfiguration) Attachment() *VZNetworkDeviceAttachment
@abstract Network device attachment. Defines how the virtual device interfaces with the host system. The default is nil. @see VZBridgedNetworkDeviceAttachment @see VZFileHandleNetworkDeviceAttachment @see VZNATNetworkDeviceAttachment
func (*VZNetworkDeviceConfiguration) MACAddress ¶
func (o *VZNetworkDeviceConfiguration) MACAddress() *VZMACAddress
@abstract The media access control address of the device. The default is a random, locally administered, unicast address.
func (*VZNetworkDeviceConfiguration) SetAttachment ¶
func (o *VZNetworkDeviceConfiguration) SetAttachment(attachment *VZNetworkDeviceAttachment)
func (*VZNetworkDeviceConfiguration) SetMACAddress ¶
func (o *VZNetworkDeviceConfiguration) SetMACAddress(macAddress *VZMACAddress)
type VZPlatformConfiguration ¶
type VZPlatformConfiguration struct {
foundation.NSObject
}
The base class for a platform configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzplatformconfiguration
func VZPlatformConfigurationFromID ¶
func VZPlatformConfigurationFromID(id objc.ID) *VZPlatformConfiguration
type VZPointingDeviceConfiguration ¶
type VZPointingDeviceConfiguration struct {
foundation.NSObject
}
The base class for a pointing device configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzpointingdeviceconfiguration
func VZPointingDeviceConfigurationFromID ¶
func VZPointingDeviceConfigurationFromID(id objc.ID) *VZPointingDeviceConfiguration
type VZSerialPortAttachment ¶
type VZSerialPortAttachment struct {
foundation.NSObject
}
The common behaviors for the serial attachment points of your virtual machine.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzserialportattachment
func VZSerialPortAttachmentFromID ¶
func VZSerialPortAttachmentFromID(id objc.ID) *VZSerialPortAttachment
type VZSerialPortConfiguration ¶
type VZSerialPortConfiguration struct {
foundation.NSObject
}
The common configuration traits for serial port requests.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzserialportconfiguration
func VZSerialPortConfigurationFromID ¶
func VZSerialPortConfigurationFromID(id objc.ID) *VZSerialPortConfiguration
func (*VZSerialPortConfiguration) Attachment ¶
func (o *VZSerialPortConfiguration) Attachment() *VZSerialPortAttachment
func (*VZSerialPortConfiguration) SetAttachment ¶
func (o *VZSerialPortConfiguration) SetAttachment(attachment *VZSerialPortAttachment)
type VZSharedDirectory ¶
type VZSharedDirectory struct {
}
A directory on the host that you can expose to a guest.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzshareddirectory
func VZSharedDirectoryFromID ¶
func VZSharedDirectoryFromID(id objc.ID) *VZSharedDirectory
func (*VZSharedDirectory) InitWithURLReadOnly ¶
func (o *VZSharedDirectory) InitWithURLReadOnly(url *foundation.NSURL, readOnly bool) *VZSharedDirectory
Initialize with a host directory.
func (*VZSharedDirectory) IsReadOnly ¶
func (o *VZSharedDirectory) IsReadOnly() bool
@abstract Whether or not the directory will be exposed as read-only to the guest.
func (*VZSharedDirectory) URL ¶
func (o *VZSharedDirectory) URL() *foundation.NSURL
@abstract File URL to a directory on the host to expose to the guest. @discussion The URL must point to an existing directory path in the host file system.
type VZSingleDirectoryShare ¶
type VZSingleDirectoryShare struct {
}
An object that defines the directory share for a single directory.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzsingledirectoryshare
func VZSingleDirectoryShareFromID ¶
func VZSingleDirectoryShareFromID(id objc.ID) *VZSingleDirectoryShare
func (*VZSingleDirectoryShare) Directory ¶
func (o *VZSingleDirectoryShare) Directory() *VZSharedDirectory
func (*VZSingleDirectoryShare) InitWithDirectory ¶
func (o *VZSingleDirectoryShare) InitWithDirectory(directory *VZSharedDirectory) *VZSingleDirectoryShare
Creates a directory share with a directory that you specify on the host.
type VZSocketDevice ¶
type VZSocketDevice struct {
foundation.NSObject
}
The common behavior of socket devices.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzsocketdevice
func VZSocketDeviceFromID ¶
func VZSocketDeviceFromID(id objc.ID) *VZSocketDevice
type VZSocketDeviceConfiguration ¶
type VZSocketDeviceConfiguration struct {
foundation.NSObject
}
The common configuration traits for socket device requests.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzsocketdeviceconfiguration
func VZSocketDeviceConfigurationFromID ¶
func VZSocketDeviceConfigurationFromID(id objc.ID) *VZSocketDeviceConfiguration
type VZSpiceAgentPortAttachment ¶
type VZSpiceAgentPortAttachment struct {
VZSerialPortAttachment
}
An attachment point that enables the Spice clipboard sharing capability.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzspiceagentportattachment
func VZSpiceAgentPortAttachmentFromID ¶
func VZSpiceAgentPortAttachmentFromID(id objc.ID) *VZSpiceAgentPortAttachment
func (*VZSpiceAgentPortAttachment) Init ¶
func (o *VZSpiceAgentPortAttachment) Init() *VZSpiceAgentPortAttachment
Creates a new Spice agent port attachment.
func (*VZSpiceAgentPortAttachment) SetSharesClipboard ¶
func (o *VZSpiceAgentPortAttachment) SetSharesClipboard(sharesClipboard bool)
func (*VZSpiceAgentPortAttachment) SharesClipboard ¶
func (o *VZSpiceAgentPortAttachment) SharesClipboard() bool
@abstract Enable the Spice agent clipboard sharing capability. @discussion If enabled, the clipboard capability will be advertised to the Spice guest agent. Copy and paste events will be shared between the host and the virtual machine. This property is enabled by default.
type VZStorageDevice ¶
type VZStorageDevice struct {
foundation.NSObject
}
A class that represents a storage device in a VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzstoragedevice
func VZStorageDeviceFromID ¶
func VZStorageDeviceFromID(id objc.ID) *VZStorageDevice
type VZStorageDeviceAttachment ¶
type VZStorageDeviceAttachment struct {
foundation.NSObject
}
The common behaviors for storage devices in the guest system.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzstoragedeviceattachment
func VZStorageDeviceAttachmentFromID ¶
func VZStorageDeviceAttachmentFromID(id objc.ID) *VZStorageDeviceAttachment
type VZStorageDeviceConfiguration ¶
type VZStorageDeviceConfiguration struct {
foundation.NSObject
}
The common configuration traits for storage device requests.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzstoragedeviceconfiguration
func VZStorageDeviceConfigurationFromID ¶
func VZStorageDeviceConfigurationFromID(id objc.ID) *VZStorageDeviceConfiguration
func (*VZStorageDeviceConfiguration) Attachment ¶
func (o *VZStorageDeviceConfiguration) Attachment() *VZStorageDeviceAttachment
type VZUSBController ¶
type VZUSBController struct {
foundation.NSObject
}
A class that represents a USB controller in a VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzusbcontroller
func VZUSBControllerFromID ¶
func VZUSBControllerFromID(id objc.ID) *VZUSBController
func (*VZUSBController) AttachDeviceCompletionHandler ¶
func (o *VZUSBController) AttachDeviceCompletionHandler(device VZUSBDevice, completionHandler func(unsafe.Pointer))
Attaches a USB device to the controller.
func (*VZUSBController) Delegate ¶
func (o *VZUSBController) Delegate() VZUSBControllerDelegate
@abstract The controller's delegate.
func (*VZUSBController) DetachDeviceCompletionHandler ¶
func (o *VZUSBController) DetachDeviceCompletionHandler(device VZUSBDevice, completionHandler func(unsafe.Pointer))
Detaches a USB device from the controller.
func (*VZUSBController) SetDelegate ¶
func (o *VZUSBController) SetDelegate(delegate VZUSBControllerDelegate)
func (*VZUSBController) UsbDevices ¶
func (o *VZUSBController) UsbDevices() *foundation.NSArray[VZUSBDevice]
@abstract Return a list of USB devices attached to controller. @discussion If corresponding USB controller configuration included in VZVirtualMachineConfiguration contained any USB devices, those devices will appear here when virtual machine is started. @see VZUSBDevice @see VZUSBDeviceConfiguration @see VZUSBControllerConfiguration @see VZVirtualMachineConfiguration
type VZUSBControllerConfiguration ¶
type VZUSBControllerConfiguration struct {
foundation.NSObject
}
The base class for a USB controller configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzusbcontrollerconfiguration
func VZUSBControllerConfigurationFromID ¶
func VZUSBControllerConfigurationFromID(id objc.ID) *VZUSBControllerConfiguration
func (*VZUSBControllerConfiguration) SetUsbDevices ¶
func (o *VZUSBControllerConfiguration) SetUsbDevices(usbDevices *foundation.NSArray[VZUSBDeviceConfiguration])
func (*VZUSBControllerConfiguration) UsbDevices ¶
func (o *VZUSBControllerConfiguration) UsbDevices() *foundation.NSArray[VZUSBDeviceConfiguration]
type VZUSBControllerDelegate ¶
type VZUSBControllerDelegate interface {
}
VZUSBControllerDelegate wraps the ObjC protocol VZUSBControllerDelegate.
type VZUSBDevice ¶
type VZUSBDevice interface {
UsbController() *VZUSBController
Uuid() *foundation.NSUUID
}
VZUSBDevice wraps the ObjC protocol VZUSBDevice.
type VZUSBDeviceConfiguration ¶
type VZUSBDeviceConfiguration interface {
Uuid() *foundation.NSUUID
SetUuid(uuid *foundation.NSUUID)
}
VZUSBDeviceConfiguration wraps the ObjC protocol VZUSBDeviceConfiguration.
type VZUSBKeyboardConfiguration ¶
type VZUSBKeyboardConfiguration struct {
VZKeyboardConfiguration
}
A device that defines the configuration for a USB keyboard.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzusbkeyboardconfiguration
func VZUSBKeyboardConfigurationFromID ¶
func VZUSBKeyboardConfigurationFromID(id objc.ID) *VZUSBKeyboardConfiguration
func (*VZUSBKeyboardConfiguration) Init ¶
func (o *VZUSBKeyboardConfiguration) Init() *VZUSBKeyboardConfiguration
Creates a USB keyboard configuration.
type VZUSBMassStorageDevice ¶
type VZUSBMassStorageDevice struct {
VZStorageDevice
}
A class that represents a hot-pluggable USB mass storage device.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzusbmassstoragedevice
func VZUSBMassStorageDeviceFromID ¶
func VZUSBMassStorageDeviceFromID(id objc.ID) *VZUSBMassStorageDevice
func (*VZUSBMassStorageDevice) InitWithConfiguration ¶
func (o *VZUSBMassStorageDevice) InitWithConfiguration(configuration *VZUSBMassStorageDeviceConfiguration) *VZUSBMassStorageDevice
Creates a USB mass storage device with the provided configuration.
type VZUSBMassStorageDeviceConfiguration ¶
type VZUSBMassStorageDeviceConfiguration struct {
VZStorageDeviceConfiguration
}
The configuration object that represents a USB Mass storage device.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzusbmassstoragedeviceconfiguration
func VZUSBMassStorageDeviceConfigurationFromID ¶
func VZUSBMassStorageDeviceConfigurationFromID(id objc.ID) *VZUSBMassStorageDeviceConfiguration
func (*VZUSBMassStorageDeviceConfiguration) InitWithAttachment ¶
func (o *VZUSBMassStorageDeviceConfiguration) InitWithAttachment(attachment *VZStorageDeviceAttachment) *VZUSBMassStorageDeviceConfiguration
Creates a new storage device configuration with the specified attachment.
type VZUSBPassthroughDevice ¶
type VZUSBPassthroughDevice struct {
foundation.NSObject
}
Apple documentation: https://developer.apple.com/documentation/virtualization/vzusbpassthroughdevice
func VZUSBPassthroughDeviceFromID ¶
func VZUSBPassthroughDeviceFromID(id objc.ID) *VZUSBPassthroughDevice
func (*VZUSBPassthroughDevice) InitWithConfigurationError ¶
func (o *VZUSBPassthroughDevice) InitWithConfigurationError(configuration *VZUSBPassthroughDeviceConfiguration) (*VZUSBPassthroughDevice, error)
@abstract Initialize the USB passthrough device. @param configuration The configuration of the USB passthrough device. @param error If not nil, used to report errors if initialization fails. @return An initialized VZUSBPassthroughDevice on success, or nil on failure.
type VZUSBPassthroughDeviceConfiguration ¶
type VZUSBPassthroughDeviceConfiguration struct {
foundation.NSObject
}
Apple documentation: https://developer.apple.com/documentation/virtualization/vzusbpassthroughdeviceconfiguration
func VZUSBPassthroughDeviceConfigurationFromID ¶
func VZUSBPassthroughDeviceConfigurationFromID(id objc.ID) *VZUSBPassthroughDeviceConfiguration
func (*VZUSBPassthroughDeviceConfiguration) InitWithDevice ¶
func (o *VZUSBPassthroughDeviceConfiguration) InitWithDevice(device *accessoryaccess.AAUSBAccessory) *VZUSBPassthroughDeviceConfiguration
@abstract Initialize a passthrough USB device configuration. @discussion Initialize a passthrough USB device configuration from an AccessoryAccess framework device. @param device The AccessoryAccess framework object to be captured by the virtual machine. @return An initialized VZUSBPassthroughDeviceConfiguration.
type VZUSBScreenCoordinatePointingDeviceConfiguration ¶
type VZUSBScreenCoordinatePointingDeviceConfiguration struct {
VZPointingDeviceConfiguration
}
An object that defines the configuration for a USB pointing device that reports absolute coordinates.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzusbscreencoordinatepointingdeviceconfiguration
func VZUSBScreenCoordinatePointingDeviceConfigurationFromID ¶
func VZUSBScreenCoordinatePointingDeviceConfigurationFromID(id objc.ID) *VZUSBScreenCoordinatePointingDeviceConfiguration
func (*VZUSBScreenCoordinatePointingDeviceConfiguration) Init ¶
func (o *VZUSBScreenCoordinatePointingDeviceConfiguration) Init() *VZUSBScreenCoordinatePointingDeviceConfiguration
Creates a new pointing device.
type VZVirtioBlockDeviceConfiguration ¶
type VZVirtioBlockDeviceConfiguration struct {
VZStorageDeviceConfiguration
}
The configuration object that requests the creation of a virtual storage device in the guest system.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtioblockdeviceconfiguration
func VZVirtioBlockDeviceConfigurationFromID ¶
func VZVirtioBlockDeviceConfigurationFromID(id objc.ID) *VZVirtioBlockDeviceConfiguration
func (*VZVirtioBlockDeviceConfiguration) BlockDeviceIdentifier ¶
func (o *VZVirtioBlockDeviceConfiguration) BlockDeviceIdentifier() *foundation.NSString
func (*VZVirtioBlockDeviceConfiguration) InitWithAttachment ¶
func (o *VZVirtioBlockDeviceConfiguration) InitWithAttachment(attachment *VZStorageDeviceAttachment) *VZVirtioBlockDeviceConfiguration
Creates a block device configuration object that uses the specified storage medium.
func (*VZVirtioBlockDeviceConfiguration) SetBlockDeviceIdentifier ¶
func (o *VZVirtioBlockDeviceConfiguration) SetBlockDeviceIdentifier(blockDeviceIdentifier *foundation.NSString)
type VZVirtioConsoleDevice ¶
type VZVirtioConsoleDevice struct {
VZConsoleDevice
}
A class that represents a Virtio console device in a virtual machine.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtioconsoledevice
func VZVirtioConsoleDeviceFromID ¶
func VZVirtioConsoleDeviceFromID(id objc.ID) *VZVirtioConsoleDevice
func (*VZVirtioConsoleDevice) Delegate ¶
func (o *VZVirtioConsoleDevice) Delegate() VZVirtioConsoleDeviceDelegate
@abstract Pointer to a delegate object for the console device.
func (*VZVirtioConsoleDevice) Ports ¶
func (o *VZVirtioConsoleDevice) Ports() *VZVirtioConsolePortArray
@abstract The console ports currently being used by this console device.
func (*VZVirtioConsoleDevice) SetDelegate ¶
func (o *VZVirtioConsoleDevice) SetDelegate(delegate VZVirtioConsoleDeviceDelegate)
type VZVirtioConsoleDeviceConfiguration ¶
type VZVirtioConsoleDeviceConfiguration struct {
VZConsoleDeviceConfiguration
}
A console device that enables communication between the host and the guest using console ports through a Virtio interface.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtioconsoledeviceconfiguration
func VZVirtioConsoleDeviceConfigurationFromID ¶
func VZVirtioConsoleDeviceConfigurationFromID(id objc.ID) *VZVirtioConsoleDeviceConfiguration
func (*VZVirtioConsoleDeviceConfiguration) Init ¶
func (o *VZVirtioConsoleDeviceConfiguration) Init() *VZVirtioConsoleDeviceConfiguration
Creates a console port configuration object.
func (*VZVirtioConsoleDeviceConfiguration) Ports ¶
func (o *VZVirtioConsoleDeviceConfiguration) Ports() *VZVirtioConsolePortConfigurationArray
type VZVirtioConsoleDeviceDelegate ¶
type VZVirtioConsoleDeviceDelegate interface {
}
VZVirtioConsoleDeviceDelegate wraps the ObjC protocol VZVirtioConsoleDeviceDelegate.
type VZVirtioConsoleDeviceSerialPortConfiguration ¶
type VZVirtioConsoleDeviceSerialPortConfiguration struct {
VZSerialPortConfiguration
}
A configuration object that requests the creation of a console device to communicate with the guest system.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtioconsoledeviceserialportconfiguration
func VZVirtioConsoleDeviceSerialPortConfigurationFromID ¶
func VZVirtioConsoleDeviceSerialPortConfigurationFromID(id objc.ID) *VZVirtioConsoleDeviceSerialPortConfiguration
func (*VZVirtioConsoleDeviceSerialPortConfiguration) Init ¶
func (o *VZVirtioConsoleDeviceSerialPortConfiguration) Init() *VZVirtioConsoleDeviceSerialPortConfiguration
Creates a serial port configuration object.
type VZVirtioConsolePort ¶
type VZVirtioConsolePort struct {
foundation.NSObject
}
A class that represents a Virtio console port in a VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtioconsoleport
func VZVirtioConsolePortFromID ¶
func VZVirtioConsolePortFromID(id objc.ID) *VZVirtioConsolePort
func (*VZVirtioConsolePort) Attachment ¶
func (o *VZVirtioConsolePort) Attachment() *VZSerialPortAttachment
@abstract The console port attachment that's currently connected to this console port. @discussion This property may change at any time while the VM is running.
func (*VZVirtioConsolePort) Name ¶
func (o *VZVirtioConsolePort) Name() *foundation.NSString
@abstract The console port name currently being used by this port. @discussion This property may not change while the VM is running. A null value indicates no name has been set.
func (*VZVirtioConsolePort) SetAttachment ¶
func (o *VZVirtioConsolePort) SetAttachment(attachment *VZSerialPortAttachment)
type VZVirtioConsolePortArray ¶
type VZVirtioConsolePortArray struct {
foundation.NSObject
}
A class that represents a collection of Virtio console ports.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtioconsoleportarray
func VZVirtioConsolePortArrayFromID ¶
func VZVirtioConsolePortArrayFromID(id objc.ID) *VZVirtioConsolePortArray
func (*VZVirtioConsolePortArray) MaximumPortCount ¶
func (o *VZVirtioConsolePortArray) MaximumPortCount() uint32
func (*VZVirtioConsolePortArray) ObjectAtIndexedSubscript ¶
func (o *VZVirtioConsolePortArray) ObjectAtIndexedSubscript(portIndex uint) *VZVirtioConsolePort
Returns the Virtio console port at the specified index.
type VZVirtioConsolePortConfiguration ¶
type VZVirtioConsolePortConfiguration struct {
VZConsolePortConfiguration
}
A class that represents the configuration options you can set on a Virtio console port.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtioconsoleportconfiguration
func VZVirtioConsolePortConfigurationFromID ¶
func VZVirtioConsolePortConfigurationFromID(id objc.ID) *VZVirtioConsolePortConfiguration
func (*VZVirtioConsolePortConfiguration) Init ¶
func (o *VZVirtioConsolePortConfiguration) Init() *VZVirtioConsolePortConfiguration
Creates a new Virtio console port configuration.
func (*VZVirtioConsolePortConfiguration) IsConsole ¶
func (o *VZVirtioConsolePortConfiguration) IsConsole() bool
@abstract The console port may be marked for use as the system console. The default is false.
func (*VZVirtioConsolePortConfiguration) Name ¶
func (o *VZVirtioConsolePortConfiguration) Name() *foundation.NSString
@abstract The console port's name. The default behavior is to not use a name unless set.
func (*VZVirtioConsolePortConfiguration) SetIsConsole ¶
func (o *VZVirtioConsolePortConfiguration) SetIsConsole(isConsole bool)
func (*VZVirtioConsolePortConfiguration) SetName ¶
func (o *VZVirtioConsolePortConfiguration) SetName(name *foundation.NSString)
type VZVirtioConsolePortConfigurationArray ¶
type VZVirtioConsolePortConfigurationArray struct {
foundation.NSObject
}
A class that represents a collection of Virtio console port configurations.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtioconsoleportconfigurationarray
func VZVirtioConsolePortConfigurationArrayFromID ¶
func VZVirtioConsolePortConfigurationArrayFromID(id objc.ID) *VZVirtioConsolePortConfigurationArray
func (*VZVirtioConsolePortConfigurationArray) MaximumPortCount ¶
func (o *VZVirtioConsolePortConfigurationArray) MaximumPortCount() uint32
@abstract The maximum number of ports allocated by this device. The default is the number of ports attached to this device.
func (*VZVirtioConsolePortConfigurationArray) ObjectAtIndexedSubscript ¶
func (o *VZVirtioConsolePortConfigurationArray) ObjectAtIndexedSubscript(portIndex uint) *VZVirtioConsolePortConfiguration
Returns the Virtio console port configuration as the specified index.
func (*VZVirtioConsolePortConfigurationArray) SetMaximumPortCount ¶
func (o *VZVirtioConsolePortConfigurationArray) SetMaximumPortCount(maximumPortCount uint32)
func (*VZVirtioConsolePortConfigurationArray) SetObjectAtIndexedSubscript ¶
func (o *VZVirtioConsolePortConfigurationArray) SetObjectAtIndexedSubscript(configuration *VZVirtioConsolePortConfiguration, portIndex uint)
@abstract Set a port configuration at the specified index.
type VZVirtioDeviceSpecificConfiguration ¶
type VZVirtioDeviceSpecificConfiguration struct {
foundation.NSObject
}
The device-specific configuration for a Virtio device
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiodevicespecificconfiguration
func VZVirtioDeviceSpecificConfigurationFromID ¶
func VZVirtioDeviceSpecificConfigurationFromID(id objc.ID) *VZVirtioDeviceSpecificConfiguration
func (*VZVirtioDeviceSpecificConfiguration) ConfigurationData ¶
func (o *VZVirtioDeviceSpecificConfiguration) ConfigurationData() *foundation.NSData
func (*VZVirtioDeviceSpecificConfiguration) InitWithConfigurationData ¶
func (o *VZVirtioDeviceSpecificConfiguration) InitWithConfigurationData(configurationData *foundation.NSData) *VZVirtioDeviceSpecificConfiguration
Initializes a Virtio device specific configuration object with the configuration data you provide
type VZVirtioEntropyDeviceConfiguration ¶
type VZVirtioEntropyDeviceConfiguration struct {
VZEntropyDeviceConfiguration
}
A source of entropy for the guest’s random number generator.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtioentropydeviceconfiguration
func VZVirtioEntropyDeviceConfigurationFromID ¶
func VZVirtioEntropyDeviceConfigurationFromID(id objc.ID) *VZVirtioEntropyDeviceConfiguration
func (*VZVirtioEntropyDeviceConfiguration) Init ¶
func (o *VZVirtioEntropyDeviceConfiguration) Init() *VZVirtioEntropyDeviceConfiguration
Creates an entropy device configuration object.
type VZVirtioFeatureSet ¶
type VZVirtioFeatureSet struct {
foundation.NSObject
}
Values that represent a set of Virtio feature bits.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiofeatureset
func VZVirtioFeatureSetFromID ¶
func VZVirtioFeatureSetFromID(id objc.ID) *VZVirtioFeatureSet
func (*VZVirtioFeatureSet) SetSubset0 ¶
func (o *VZVirtioFeatureSet) SetSubset0(subset0 uint32)
func (*VZVirtioFeatureSet) SetSubset1 ¶
func (o *VZVirtioFeatureSet) SetSubset1(subset1 uint32)
func (*VZVirtioFeatureSet) Subset0 ¶
func (o *VZVirtioFeatureSet) Subset0() uint32
An unsigned 32-bit integer that represents Virtio feature bits 0 through 31.
func (*VZVirtioFeatureSet) Subset1 ¶
func (o *VZVirtioFeatureSet) Subset1() uint32
An unsigned 32-bit integer that represents Virtio feature bits 32 through 63.
type VZVirtioFileSystemDevice ¶
type VZVirtioFileSystemDevice struct {
VZDirectorySharingDevice
}
An object the defines a VIRTIO file system device.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiofilesystemdevice
func VZVirtioFileSystemDeviceFromID ¶
func VZVirtioFileSystemDeviceFromID(id objc.ID) *VZVirtioFileSystemDevice
func (*VZVirtioFileSystemDevice) SetShare ¶
func (o *VZVirtioFileSystemDevice) SetShare(share *VZDirectoryShare)
func (*VZVirtioFileSystemDevice) Share ¶
func (o *VZVirtioFileSystemDevice) Share() *VZDirectoryShare
@abstract Directory share. Defines how host resources are exposed to the guest virtual machine. @discussion Setting this property to VZLinuxRosettaDirectoryShare is not supported and will cause an exception to be raised. @see VZSingleDirectoryShare @see VZMultipleDirectoryShare
func (*VZVirtioFileSystemDevice) Tag ¶
func (o *VZVirtioFileSystemDevice) Tag() *foundation.NSString
@abstract The tag is a string identifying the device. @discussion The tag is presented as a label in the guest identifying this device for mounting.
type VZVirtioFileSystemDeviceConfiguration ¶
type VZVirtioFileSystemDeviceConfiguration struct {
VZDirectorySharingDeviceConfiguration
}
An object that represents the configuration of a Virtio file system device.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiofilesystemdeviceconfiguration
func VZVirtioFileSystemDeviceConfigurationFromID ¶
func VZVirtioFileSystemDeviceConfigurationFromID(id objc.ID) *VZVirtioFileSystemDeviceConfiguration
func (*VZVirtioFileSystemDeviceConfiguration) InitWithTag ¶
func (o *VZVirtioFileSystemDeviceConfiguration) InitWithTag(tag *foundation.NSString) *VZVirtioFileSystemDeviceConfiguration
Creates a configuration for a VIRTIO file system device.
func (*VZVirtioFileSystemDeviceConfiguration) SetShare ¶
func (o *VZVirtioFileSystemDeviceConfiguration) SetShare(share *VZDirectoryShare)
func (*VZVirtioFileSystemDeviceConfiguration) SetTag ¶
func (o *VZVirtioFileSystemDeviceConfiguration) SetTag(tag *foundation.NSString)
func (*VZVirtioFileSystemDeviceConfiguration) Share ¶
func (o *VZVirtioFileSystemDeviceConfiguration) Share() *VZDirectoryShare
@abstract Directory share. Defines how host resources are exposed to the guest virtual machine. @see VZSingleDirectoryShare @see VZMultipleDirectoryShare @see VZLinuxRosettaDirectoryShare
func (*VZVirtioFileSystemDeviceConfiguration) Tag ¶
func (o *VZVirtioFileSystemDeviceConfiguration) Tag() *foundation.NSString
@abstract The tag is a string identifying the device. @discussion The tag is presented as a label in the guest identifying this device for mounting. The tag must be valid, which can be checked with +[VZVirtioFileSystemDeviceConfiguration validateTag:error:]. @see +[VZVirtioFileSystemDeviceConfiguration validateTag:error:]
type VZVirtioGraphicsDevice ¶
type VZVirtioGraphicsDevice struct {
VZGraphicsDevice
}
A Virtio graphics device.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiographicsdevice
func VZVirtioGraphicsDeviceFromID ¶
func VZVirtioGraphicsDeviceFromID(id objc.ID) *VZVirtioGraphicsDevice
type VZVirtioGraphicsDeviceConfiguration ¶
type VZVirtioGraphicsDeviceConfiguration struct {
VZGraphicsDeviceConfiguration
}
Configuration that represents the configuration of a Virtio graphics device for a Linux VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiographicsdeviceconfiguration
func VZVirtioGraphicsDeviceConfigurationFromID ¶
func VZVirtioGraphicsDeviceConfigurationFromID(id objc.ID) *VZVirtioGraphicsDeviceConfiguration
func (*VZVirtioGraphicsDeviceConfiguration) Init ¶
func (o *VZVirtioGraphicsDeviceConfiguration) Init() *VZVirtioGraphicsDeviceConfiguration
Creates a new Virtio graphics device.
func (*VZVirtioGraphicsDeviceConfiguration) Scanouts ¶
func (o *VZVirtioGraphicsDeviceConfiguration) Scanouts() *foundation.NSArray[*VZVirtioGraphicsScanoutConfiguration]
func (*VZVirtioGraphicsDeviceConfiguration) SetScanouts ¶
func (o *VZVirtioGraphicsDeviceConfiguration) SetScanouts(scanouts *foundation.NSArray[*VZVirtioGraphicsScanoutConfiguration])
type VZVirtioGraphicsScanout ¶
type VZVirtioGraphicsScanout struct {
VZGraphicsDisplay
}
A Virtio graphics scanout that corresponds to a Virtio graphics scanout configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiographicsscanout
func VZVirtioGraphicsScanoutFromID ¶
func VZVirtioGraphicsScanoutFromID(id objc.ID) *VZVirtioGraphicsScanout
type VZVirtioGraphicsScanoutConfiguration ¶
type VZVirtioGraphicsScanoutConfiguration struct {
VZGraphicsDisplayConfiguration
}
The configuration for a Virtio graphics device that configures the dimensions of the graphics device for a Linux VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiographicsscanoutconfiguration
func VZVirtioGraphicsScanoutConfigurationFromID ¶
func VZVirtioGraphicsScanoutConfigurationFromID(id objc.ID) *VZVirtioGraphicsScanoutConfiguration
func (*VZVirtioGraphicsScanoutConfiguration) HeightInPixels ¶
func (o *VZVirtioGraphicsScanoutConfiguration) HeightInPixels() int
@abstract The height of the scanout, in pixels.
func (*VZVirtioGraphicsScanoutConfiguration) InitWithWidthInPixelsHeightInPixels ¶
func (o *VZVirtioGraphicsScanoutConfiguration) InitWithWidthInPixelsHeightInPixels(widthInPixels int, heightInPixels int) *VZVirtioGraphicsScanoutConfiguration
Creates a Virtio graphics device with the specified dimensions.
func (*VZVirtioGraphicsScanoutConfiguration) SetHeightInPixels ¶
func (o *VZVirtioGraphicsScanoutConfiguration) SetHeightInPixels(heightInPixels int)
func (*VZVirtioGraphicsScanoutConfiguration) SetWidthInPixels ¶
func (o *VZVirtioGraphicsScanoutConfiguration) SetWidthInPixels(widthInPixels int)
func (*VZVirtioGraphicsScanoutConfiguration) WidthInPixels ¶
func (o *VZVirtioGraphicsScanoutConfiguration) WidthInPixels() int
@abstract The width of the scanout, in pixels.
type VZVirtioNetworkDeviceConfiguration ¶
type VZVirtioNetworkDeviceConfiguration struct {
VZNetworkDeviceConfiguration
}
A configuration object that requests the creation of a network device for the guest system.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtionetworkdeviceconfiguration
func VZVirtioNetworkDeviceConfigurationFromID ¶
func VZVirtioNetworkDeviceConfigurationFromID(id objc.ID) *VZVirtioNetworkDeviceConfiguration
func (*VZVirtioNetworkDeviceConfiguration) Init ¶
func (o *VZVirtioNetworkDeviceConfiguration) Init() *VZVirtioNetworkDeviceConfiguration
Creates a network device configuration object for you to configure.
type VZVirtioQueue ¶
type VZVirtioQueue struct {
foundation.NSObject
}
A Virtio queue.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtioqueue
func VZVirtioQueueFromID ¶
func VZVirtioQueueFromID(id objc.ID) *VZVirtioQueue
func (*VZVirtioQueue) NextElement ¶
func (o *VZVirtioQueue) NextElement() *VZVirtioQueueElement
Gets the next element in this queue, if any.
func (*VZVirtioQueue) QueueIndex ¶
func (o *VZVirtioQueue) QueueIndex() uint16
The index for this queue.
func (*VZVirtioQueue) QueueSize ¶
func (o *VZVirtioQueue) QueueSize() uint16
Size of this queue. The size of the queue indicates the maximum number of `VZVirtioQueueElement` that can be made available in the queue.
type VZVirtioQueueElement ¶
type VZVirtioQueueElement struct {
foundation.NSObject
}
A unit of work on a Virtio queue, also known as a descriptor chain.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtioqueueelement
func VZVirtioQueueElementFromID ¶
func VZVirtioQueueElementFromID(id objc.ID) *VZVirtioQueueElement
func (*VZVirtioQueueElement) PeekIntoReadBuffersWithExactLengthError ¶
func (o *VZVirtioQueueElement) PeekIntoReadBuffersWithExactLengthError(exactLength uint) (*foundation.NSData, error)
Peeks into the read buffers and copy exactLength bytes from the read buffer into the data object it returns.
func (*VZVirtioQueueElement) ReadBuffers ¶
func (o *VZVirtioQueueElement) ReadBuffers() *foundation.NSArray[*foundation.NSData]
Gets the remaining read buffers memory represented as an array of data.
func (*VZVirtioQueueElement) ReadBuffersAvailableByteCount ¶
func (o *VZVirtioQueueElement) ReadBuffersAvailableByteCount() uint
The size of the read buffers memory (in bytes) exposed by the Virtio queue element that's currently available for reading. This value is initially equal to “readBuffersByteCount“. This value decreases as you read memory from the read buffers.
func (*VZVirtioQueueElement) ReadBuffersByteCount ¶
func (o *VZVirtioQueueElement) ReadBuffersByteCount() uint
The total size of the read buffers memory (in bytes) exposed by the Virtio queue element.
func (*VZVirtioQueueElement) ReadBytesIntoBufferExactLengthError ¶
func (o *VZVirtioQueueElement) ReadBytesIntoBufferExactLengthError(buffer unsafe.Pointer, exactLength uint) (bool, error)
Reads the number of bytes you specify from the read buffers into the memory pointed to by the pointer to the buffer you provide.
func (*VZVirtioQueueElement) ReadBytesWithExactLengthError ¶
func (o *VZVirtioQueueElement) ReadBytesWithExactLengthError(exactLength uint) (*foundation.NSData, error)
Reads the number of bytes you specify from the read buffers and return result as a data object.
func (*VZVirtioQueueElement) ReturnToQueue ¶
func (o *VZVirtioQueueElement) ReturnToQueue()
Returns this element back to the guest.
func (*VZVirtioQueueElement) WriteBufferExactLengthError ¶
func (o *VZVirtioQueueElement) WriteBufferExactLengthError(buffer unsafe.Pointer, exactLength uint) (bool, error)
Writes to the memory represented by the pointer to the buffer you provide to the write buffers.
func (*VZVirtioQueueElement) WriteBuffersAvailableByteCount ¶
func (o *VZVirtioQueueElement) WriteBuffersAvailableByteCount() uint
The size of the write buffers memory (in bytes) exposed by the Virtio queue element that's currently available for writing. This value is initially equal to `writeBuffersByteCount`. This value decreases as you write memory to the write buffers.
func (*VZVirtioQueueElement) WriteBuffersByteCount ¶
func (o *VZVirtioQueueElement) WriteBuffersByteCount() uint
The total size of the write buffers memory (in bytes) exposed by the Virtio queue element.
func (*VZVirtioQueueElement) WriteDataError ¶
func (o *VZVirtioQueueElement) WriteDataError(data *foundation.NSData) (bool, error)
Writes the memory represented by the data object you provide into the write buffers.
func (*VZVirtioQueueElement) WrittenByteCount ¶
func (o *VZVirtioQueueElement) WrittenByteCount() uint
The size of the write buffers memory exposed (in bytes) by the Virtio queue element that has already been written to. This value increases as you write memory to the write buffers. This value is initially equal to 0.
type VZVirtioSharedMemoryRegion ¶
type VZVirtioSharedMemoryRegion struct {
}
A class that represents a Virtio shared memory region for a custom Virtio device in a virtual machine.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiosharedmemoryregion
func VZVirtioSharedMemoryRegionFromID ¶
func VZVirtioSharedMemoryRegionFromID(id objc.ID) *VZVirtioSharedMemoryRegion
func (*VZVirtioSharedMemoryRegion) MapMemoryAtOffsetSizeCompletionHandler ¶
func (o *VZVirtioSharedMemoryRegion) MapMemoryAtOffsetSizeCompletionHandler(memory unsafe.Pointer, offset uint64, size uint64, completionHandler func(unsafe.Pointer))
Maps a chunk of host memory into the shared memory region.
func (*VZVirtioSharedMemoryRegion) RegionID ¶
func (o *VZVirtioSharedMemoryRegion) RegionID() uint8
The shared memory region ID.
func (*VZVirtioSharedMemoryRegion) Size ¶
func (o *VZVirtioSharedMemoryRegion) Size() uint64
The size of the shared memory region.
func (*VZVirtioSharedMemoryRegion) UnmapMemoryAtOffsetSizeCompletionHandler ¶
func (o *VZVirtioSharedMemoryRegion) UnmapMemoryAtOffsetSizeCompletionHandler(offset uint64, size uint64, completionHandler func(unsafe.Pointer))
Unmaps a chunk of host memory from the shared memory region.
type VZVirtioSharedMemoryRegionConfiguration ¶
type VZVirtioSharedMemoryRegionConfiguration struct {
}
The configuration of a Virtio shared memory region.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiosharedmemoryregionconfiguration
func VZVirtioSharedMemoryRegionConfigurationFromID ¶
func VZVirtioSharedMemoryRegionConfigurationFromID(id objc.ID) *VZVirtioSharedMemoryRegionConfiguration
func (*VZVirtioSharedMemoryRegionConfiguration) InitWithRegionIDSize ¶
func (o *VZVirtioSharedMemoryRegionConfiguration) InitWithRegionIDSize(regionID uint8, size uint64) *VZVirtioSharedMemoryRegionConfiguration
Initializes a shared memory region with a shared memory region ID and size.
func (*VZVirtioSharedMemoryRegionConfiguration) RegionID ¶
func (o *VZVirtioSharedMemoryRegionConfiguration) RegionID() uint8
The shared memory region ID.
func (*VZVirtioSharedMemoryRegionConfiguration) Size ¶
func (o *VZVirtioSharedMemoryRegionConfiguration) Size() uint64
The size of the shared memory region.
type VZVirtioSocketConnection ¶
type VZVirtioSocketConnection struct {
foundation.NSObject
}
A port-based connection between the guest operating system and the host computer.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiosocketconnection
func VZVirtioSocketConnectionFromID ¶
func VZVirtioSocketConnectionFromID(id objc.ID) *VZVirtioSocketConnection
func (*VZVirtioSocketConnection) Close ¶
func (o *VZVirtioSocketConnection) Close()
Close the file descriptor associated with the socket.
func (*VZVirtioSocketConnection) DestinationPort ¶
func (o *VZVirtioSocketConnection) DestinationPort() uint32
@abstract The destination port number of the connection.
func (*VZVirtioSocketConnection) FileDescriptor ¶
func (o *VZVirtioSocketConnection) FileDescriptor() int
@abstract The file descriptor associated with the socket. @discussion Data is sent by writing to the file descriptor. Data is received by reading from the file descriptor. A file descriptor of -1 indicates a closed connection. The file descriptor is owned by the VZVirtioSocketConnection. It is automatically closed when the object is destroyed.
func (*VZVirtioSocketConnection) SourcePort ¶
func (o *VZVirtioSocketConnection) SourcePort() uint32
@abstract The source port number of the connection.
type VZVirtioSocketDevice ¶
type VZVirtioSocketDevice struct {
VZSocketDevice
}
A device that manages port-based connections between the guest system and the host computer.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiosocketdevice
func VZVirtioSocketDeviceFromID ¶
func VZVirtioSocketDeviceFromID(id objc.ID) *VZVirtioSocketDevice
func (*VZVirtioSocketDevice) ConnectToPortCompletionHandler ¶
func (o *VZVirtioSocketDevice) ConnectToPortCompletionHandler(port uint32, completionHandler func(*VZVirtioSocketConnection, unsafe.Pointer))
Initiates a connection to the specified port of the guest operating system.
func (*VZVirtioSocketDevice) RemoveSocketListenerForPort ¶
func (o *VZVirtioSocketDevice) RemoveSocketListenerForPort(port uint32)
Removes the listener object from the specfied port.
func (*VZVirtioSocketDevice) SetSocketListenerForPort ¶
func (o *VZVirtioSocketDevice) SetSocketListenerForPort(listener *VZVirtioSocketListener, port uint32)
Configures an object to monitor the specified port for new connections.
type VZVirtioSocketDeviceConfiguration ¶
type VZVirtioSocketDeviceConfiguration struct {
VZSocketDeviceConfiguration
}
A configuration object that requests the creation of a socket device to communicate with the guest system.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiosocketdeviceconfiguration
func VZVirtioSocketDeviceConfigurationFromID ¶
func VZVirtioSocketDeviceConfigurationFromID(id objc.ID) *VZVirtioSocketDeviceConfiguration
func (*VZVirtioSocketDeviceConfiguration) Init ¶
func (o *VZVirtioSocketDeviceConfiguration) Init() *VZVirtioSocketDeviceConfiguration
Creates a socket device configuration object.
type VZVirtioSocketListener ¶
type VZVirtioSocketListener struct {
foundation.NSObject
}
An object that listens for port-based connection requests from the guest operating system.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiosocketlistener
func VZVirtioSocketListenerFromID ¶
func VZVirtioSocketListenerFromID(id objc.ID) *VZVirtioSocketListener
func (*VZVirtioSocketListener) Delegate ¶
func (o *VZVirtioSocketListener) Delegate() VZVirtioSocketListenerDelegate
func (*VZVirtioSocketListener) SetDelegate ¶
func (o *VZVirtioSocketListener) SetDelegate(delegate VZVirtioSocketListenerDelegate)
type VZVirtioSocketListenerDelegate ¶
type VZVirtioSocketListenerDelegate interface {
}
VZVirtioSocketListenerDelegate wraps the ObjC protocol VZVirtioSocketListenerDelegate.
type VZVirtioSoundDeviceConfiguration ¶
type VZVirtioSoundDeviceConfiguration struct {
VZAudioDeviceConfiguration
}
An object that defines a Virtio sound device configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiosounddeviceconfiguration
func VZVirtioSoundDeviceConfigurationFromID ¶
func VZVirtioSoundDeviceConfigurationFromID(id objc.ID) *VZVirtioSoundDeviceConfiguration
func (*VZVirtioSoundDeviceConfiguration) Init ¶
func (o *VZVirtioSoundDeviceConfiguration) Init() *VZVirtioSoundDeviceConfiguration
Creates a new sound device configuration.
func (*VZVirtioSoundDeviceConfiguration) SetStreams ¶
func (o *VZVirtioSoundDeviceConfiguration) SetStreams(streams *foundation.NSArray[*VZVirtioSoundDeviceStreamConfiguration])
func (*VZVirtioSoundDeviceConfiguration) Streams ¶
func (o *VZVirtioSoundDeviceConfiguration) Streams() *foundation.NSArray[*VZVirtioSoundDeviceStreamConfiguration]
type VZVirtioSoundDeviceInputStreamConfiguration ¶
type VZVirtioSoundDeviceInputStreamConfiguration struct {
VZVirtioSoundDeviceStreamConfiguration
}
A PCM stream of input audio data, such as from a microphone.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiosounddeviceinputstreamconfiguration
func VZVirtioSoundDeviceInputStreamConfigurationFromID ¶
func VZVirtioSoundDeviceInputStreamConfigurationFromID(id objc.ID) *VZVirtioSoundDeviceInputStreamConfiguration
func (*VZVirtioSoundDeviceInputStreamConfiguration) Init ¶
func (o *VZVirtioSoundDeviceInputStreamConfiguration) Init() *VZVirtioSoundDeviceInputStreamConfiguration
Creates a new sound device input stream configuration.
func (*VZVirtioSoundDeviceInputStreamConfiguration) SetSource ¶
func (o *VZVirtioSoundDeviceInputStreamConfiguration) SetSource(source *VZAudioInputStreamSource)
func (*VZVirtioSoundDeviceInputStreamConfiguration) Source ¶
func (o *VZVirtioSoundDeviceInputStreamConfiguration) Source() *VZAudioInputStreamSource
type VZVirtioSoundDeviceOutputStreamConfiguration ¶
type VZVirtioSoundDeviceOutputStreamConfiguration struct {
VZVirtioSoundDeviceStreamConfiguration
}
An object that defines a Virtio sound device output stream configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiosounddeviceoutputstreamconfiguration
func VZVirtioSoundDeviceOutputStreamConfigurationFromID ¶
func VZVirtioSoundDeviceOutputStreamConfigurationFromID(id objc.ID) *VZVirtioSoundDeviceOutputStreamConfiguration
func (*VZVirtioSoundDeviceOutputStreamConfiguration) Init ¶
func (o *VZVirtioSoundDeviceOutputStreamConfiguration) Init() *VZVirtioSoundDeviceOutputStreamConfiguration
Creates a new sounds device output stream configuration.
func (*VZVirtioSoundDeviceOutputStreamConfiguration) SetSink ¶
func (o *VZVirtioSoundDeviceOutputStreamConfiguration) SetSink(sink *VZAudioOutputStreamSink)
func (*VZVirtioSoundDeviceOutputStreamConfiguration) Sink ¶
func (o *VZVirtioSoundDeviceOutputStreamConfiguration) Sink() *VZAudioOutputStreamSink
type VZVirtioSoundDeviceStreamConfiguration ¶
type VZVirtioSoundDeviceStreamConfiguration struct {
foundation.NSObject
}
An object that defines a Virtio sound device stream configuration.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiosounddevicestreamconfiguration
func VZVirtioSoundDeviceStreamConfigurationFromID ¶
func VZVirtioSoundDeviceStreamConfigurationFromID(id objc.ID) *VZVirtioSoundDeviceStreamConfiguration
type VZVirtioTraditionalMemoryBalloonDevice ¶
type VZVirtioTraditionalMemoryBalloonDevice struct {
VZMemoryBalloonDevice
}
The object you use to change the amount of memory allocated to the guest system.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiotraditionalmemoryballoondevice
func VZVirtioTraditionalMemoryBalloonDeviceFromID ¶
func VZVirtioTraditionalMemoryBalloonDeviceFromID(id objc.ID) *VZVirtioTraditionalMemoryBalloonDevice
func (*VZVirtioTraditionalMemoryBalloonDevice) SetTargetVirtualMachineMemorySize ¶
func (o *VZVirtioTraditionalMemoryBalloonDevice) SetTargetVirtualMachineMemorySize(targetVirtualMachineMemorySize uint64)
func (*VZVirtioTraditionalMemoryBalloonDevice) TargetVirtualMachineMemorySize ¶
func (o *VZVirtioTraditionalMemoryBalloonDevice) TargetVirtualMachineMemorySize() uint64
type VZVirtioTraditionalMemoryBalloonDeviceConfiguration ¶
type VZVirtioTraditionalMemoryBalloonDeviceConfiguration struct {
VZMemoryBalloonDeviceConfiguration
}
A configuration object that provides a way to reclaim memory from the guest system.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtiotraditionalmemoryballoondeviceconfiguration
func VZVirtioTraditionalMemoryBalloonDeviceConfigurationFromID ¶
func VZVirtioTraditionalMemoryBalloonDeviceConfigurationFromID(id objc.ID) *VZVirtioTraditionalMemoryBalloonDeviceConfiguration
func (*VZVirtioTraditionalMemoryBalloonDeviceConfiguration) Init ¶
func (o *VZVirtioTraditionalMemoryBalloonDeviceConfiguration) Init() *VZVirtioTraditionalMemoryBalloonDeviceConfiguration
Creates a memory ballon device configuration object to include with your virtual machine’s configuration data.
type VZVirtualMachine ¶
type VZVirtualMachine struct {
foundation.NSObject
}
An object that manages the overall state and configuration of your VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtualmachine
func VZVirtualMachineFromID ¶
func VZVirtualMachineFromID(id objc.ID) *VZVirtualMachine
func (*VZVirtualMachine) CanPause ¶
func (o *VZVirtualMachine) CanPause() bool
@abstract Return YES if the machine is in a state that can be paused. @see -[VZVirtualMachine pauseWithCompletionHandler:] @see -[VZVirtualMachine state]
func (*VZVirtualMachine) CanRequestStop ¶
func (o *VZVirtualMachine) CanRequestStop() bool
@abstract Returns whether the machine is in a state where the guest can be asked to stop. @see -[VZVirtualMachine requestStopWithError:] @see -[VZVirtualMachine state]
func (*VZVirtualMachine) CanResume ¶
func (o *VZVirtualMachine) CanResume() bool
@abstract Return YES if the machine is in a state that can be resumed. @see -[VZVirtualMachine resumeWithCompletionHandler:] @see -[VZVirtualMachine state]
func (*VZVirtualMachine) CanStart ¶
func (o *VZVirtualMachine) CanStart() bool
@abstract Return YES if the machine is in a state that can be started. @see -[VZVirtualMachine startWithCompletionHandler:]. @see -[VZVirtualMachine state]
func (*VZVirtualMachine) CanStop ¶
func (o *VZVirtualMachine) CanStop() bool
@abstract Return YES if the machine is in a state that can be stopped. @see -[VZVirtualMachine stopWithCompletionHandler:] @see -[VZVirtualMachine state]
func (*VZVirtualMachine) ConsoleDevices ¶
func (o *VZVirtualMachine) ConsoleDevices() *foundation.NSArray[*VZConsoleDevice]
@abstract Return the list of console devices configured on this virtual machine. Return an empty array if no console device is configured. @see VZVirtioConsoleDeviceConfiguration @see VZVirtualMachineConfiguration
func (*VZVirtualMachine) Delegate ¶
func (o *VZVirtualMachine) Delegate() VZVirtualMachineDelegate
@abstract The virtual machine delegate.
func (*VZVirtualMachine) DirectorySharingDevices ¶
func (o *VZVirtualMachine) DirectorySharingDevices() *foundation.NSArray[*VZDirectorySharingDevice]
@abstract Return the list of directory sharing devices configured on this virtual machine. Return an empty array if no directory sharing device is configured. @see VZVirtioFileSystemDeviceConfiguration @see VZVirtualMachineConfiguration
func (*VZVirtualMachine) GraphicsDevices ¶
func (o *VZVirtualMachine) GraphicsDevices() *foundation.NSArray[*VZGraphicsDevice]
@abstract Return the list of graphics devices configured on this virtual machine. Return an empty array if no graphics device is configured. @see VZGraphicsDeviceConfiguration @see VZVirtualMachineConfiguration
func (*VZVirtualMachine) InitWithConfiguration ¶
func (o *VZVirtualMachine) InitWithConfiguration(configuration *VZVirtualMachineConfiguration) *VZVirtualMachine
Creates the VM and configures it with the specified data.
func (*VZVirtualMachine) InitWithConfigurationQueue ¶
func (o *VZVirtualMachine) InitWithConfigurationQueue(configuration *VZVirtualMachineConfiguration, queue *foundation.NSObject) *VZVirtualMachine
Creates and configures the VM with the specified data and dispatch queue.
func (*VZVirtualMachine) MemoryBalloonDevices ¶
func (o *VZVirtualMachine) MemoryBalloonDevices() *foundation.NSArray[*VZMemoryBalloonDevice]
@abstract Return the list of memory balloon devices configured on this virtual machine. Return an empty array if no memory balloon device is configured. @see VZVirtioTraditionalMemoryBalloonDeviceConfiguration @see VZVirtualMachineConfiguration
func (*VZVirtualMachine) NetworkDevices ¶
func (o *VZVirtualMachine) NetworkDevices() *foundation.NSArray[*VZNetworkDevice]
@abstract Return the list of network devices configured on this virtual machine. Return an empty array if no network device is configured. @see VZVirtioNetworkDeviceConfiguration @see VZVirtualMachineConfiguration
func (*VZVirtualMachine) PauseWithCompletionHandler ¶
func (o *VZVirtualMachine) PauseWithCompletionHandler(completionHandler func(unsafe.Pointer))
Pauses a running VM and notifies the specified completion handler of the results.
func (*VZVirtualMachine) Queue ¶
func (o *VZVirtualMachine) Queue() *foundation.NSObject
@abstract The queue associated with this virtual machine. @discussion This property is a reference to the queue used to create the virtual machine. If no queue was passed, the default queue is the main queue. The property can be accessed from any queue or actor. Other properties or function calls on the VZVirtualMachine must happen on this queue. The completion handlers from the asynchronous functions are also invoked on this queue.
func (*VZVirtualMachine) RequestStopWithError ¶
func (o *VZVirtualMachine) RequestStopWithError() (bool, error)
Asks the guest operating system to stop running.
func (*VZVirtualMachine) RestoreMachineStateFromURLCompletionHandler ¶
func (o *VZVirtualMachine) RestoreMachineStateFromURLCompletionHandler(saveFileURL *foundation.NSURL, completionHandler func(unsafe.Pointer))
Restores a VM from a previously saved state.
func (*VZVirtualMachine) ResumeWithCompletionHandler ¶
func (o *VZVirtualMachine) ResumeWithCompletionHandler(completionHandler func(unsafe.Pointer))
Resumes a paused VM and notifies the specified completion handler of the results.
func (*VZVirtualMachine) SaveMachineStateToURLCompletionHandler ¶
func (o *VZVirtualMachine) SaveMachineStateToURLCompletionHandler(saveFileURL *foundation.NSURL, completionHandler func(unsafe.Pointer))
Saves the state of a VM.
func (*VZVirtualMachine) SetDelegate ¶
func (o *VZVirtualMachine) SetDelegate(delegate VZVirtualMachineDelegate)
func (*VZVirtualMachine) SocketDevices ¶
func (o *VZVirtualMachine) SocketDevices() *foundation.NSArray[*VZSocketDevice]
@abstract Return the list of socket devices configured on this virtual machine. Return an empty array if no socket device is configured. @see VZVirtioSocketDeviceConfiguration @see VZVirtualMachineConfiguration
func (*VZVirtualMachine) StartWithCompletionHandler ¶
func (o *VZVirtualMachine) StartWithCompletionHandler(completionHandler func(unsafe.Pointer))
Starts the VM and notifies the specified completion handler if startup was successful.
func (*VZVirtualMachine) StartWithOptionsCompletionHandler ¶
func (o *VZVirtualMachine) StartWithOptionsCompletionHandler(options *VZVirtualMachineStartOptions, completionHandler func(unsafe.Pointer))
Starts the VM with the options and a completion handler you provide.
func (*VZVirtualMachine) State ¶
func (o *VZVirtualMachine) State() VZVirtualMachineState
@abstract Execution state of the virtual machine.
func (*VZVirtualMachine) StopWithCompletionHandler ¶
func (o *VZVirtualMachine) StopWithCompletionHandler(completionHandler func(unsafe.Pointer))
Stops a VM that’s in either a running or paused state.
func (*VZVirtualMachine) UsbControllers ¶
func (o *VZVirtualMachine) UsbControllers() *foundation.NSArray[*VZUSBController]
@abstract Return the list of USB controllers configured on this virtual machine. Return an empty array if no USB controller is configured. @see VZUSBControllerConfiguration @see VZVirtualMachineConfiguration
type VZVirtualMachineConfiguration ¶
type VZVirtualMachineConfiguration struct {
foundation.NSObject
}
The environment attributes and list of devices to use during the configuration of macOS or Linux VMs.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtualmachineconfiguration
func VZVirtualMachineConfigurationFromID ¶
func VZVirtualMachineConfigurationFromID(id objc.ID) *VZVirtualMachineConfiguration
func (*VZVirtualMachineConfiguration) AudioDevices ¶
func (o *VZVirtualMachineConfiguration) AudioDevices() *foundation.NSArray[*VZAudioDeviceConfiguration]
@abstract List of audio devices. Empty by default. @see VZVirtioSoundDeviceConfiguration
func (*VZVirtualMachineConfiguration) BootLoader ¶
func (o *VZVirtualMachineConfiguration) BootLoader() *VZBootLoader
@abstract Boot loader used when the virtual machine starts. @see VZLinuxBootLoader @see VZMacOSBootLoader
func (*VZVirtualMachineConfiguration) CPUCount ¶
func (o *VZVirtualMachineConfiguration) CPUCount() uint
@abstract Number of CPUs. @discussion The number of CPUs must be a value between VZVirtualMachineConfiguration.minimumAllowedCPUCount and VZVirtualMachineConfiguration.maximumAllowedCPUCount. @see VZVirtualMachineConfiguration.minimumAllowedCPUCount @see VZVirtualMachineConfiguration.maximumAllowedCPUCount
func (*VZVirtualMachineConfiguration) ConsoleDevices ¶
func (o *VZVirtualMachineConfiguration) ConsoleDevices() *foundation.NSArray[*VZConsoleDeviceConfiguration]
@abstract List of console devices. Empty by default. @see VZVirtioConsoleDeviceConfiguration
func (*VZVirtualMachineConfiguration) CustomVirtioDevices ¶
func (o *VZVirtualMachineConfiguration) CustomVirtioDevices() *foundation.NSArray[*VZCustomVirtioDeviceConfiguration]
A list of custom Virtio devices. The list is empty by default. ## See Also - “VZCustomVirtioDeviceConfiguration“
func (*VZVirtualMachineConfiguration) DirectorySharingDevices ¶
func (o *VZVirtualMachineConfiguration) DirectorySharingDevices() *foundation.NSArray[*VZDirectorySharingDeviceConfiguration]
@abstract List of directory sharing devices. Empty by default. @see VZVirtioFileSystemDeviceConfiguration
func (*VZVirtualMachineConfiguration) EntropyDevices ¶
func (o *VZVirtualMachineConfiguration) EntropyDevices() *foundation.NSArray[*VZEntropyDeviceConfiguration]
@abstract List of entropy devices. Empty by default. @see VZVirtioEntropyDeviceConfiguration
func (*VZVirtualMachineConfiguration) GraphicsDevices ¶
func (o *VZVirtualMachineConfiguration) GraphicsDevices() *foundation.NSArray[*VZGraphicsDeviceConfiguration]
@abstract List of graphics devices. Empty by default. @see VZMacGraphicsDeviceConfiguration
func (*VZVirtualMachineConfiguration) Keyboards ¶
func (o *VZVirtualMachineConfiguration) Keyboards() *foundation.NSArray[*VZKeyboardConfiguration]
@abstract List of keyboards. Empty by default. @see VZUSBKeyboardConfiguration @see VZMacKeyboardConfiguration
func (*VZVirtualMachineConfiguration) Label ¶
func (o *VZVirtualMachineConfiguration) Label() *foundation.NSString
An optional label for the virtual machine. The framework uses this string as part of the name of the virtual machine in some system services. The label must be non-empty, less than or equal to 64 characters in length, and contain at least one non-whitespace character.
func (*VZVirtualMachineConfiguration) MemoryBalloonDevices ¶
func (o *VZVirtualMachineConfiguration) MemoryBalloonDevices() *foundation.NSArray[*VZMemoryBalloonDeviceConfiguration]
@abstract List of memory balloon devices. Empty by default. @see VZVirtioTraditionalMemoryBalloonDeviceConfiguration
func (*VZVirtualMachineConfiguration) MemorySize ¶
func (o *VZVirtualMachineConfiguration) MemorySize() uint64
@abstract Virtual machine memory size in bytes. @discussion The memory size must be a multiple of a 1 megabyte (1024 * 1024 bytes) between VZVirtualMachineConfiguration.minimumAllowedMemorySize and VZVirtualMachineConfiguration.maximumAllowedMemorySize. The memorySize represents the total physical memory seen by a guest OS running in the virtual machine. Not all memory is allocated on start, the virtual machine allocates memory on demand. @see VZVirtualMachineConfiguration.minimumAllowedMemorySize @see VZVirtualMachineConfiguration.maximumAllowedMemorySize
func (*VZVirtualMachineConfiguration) NetworkDevices ¶
func (o *VZVirtualMachineConfiguration) NetworkDevices() *foundation.NSArray[*VZNetworkDeviceConfiguration]
@abstract List of network adapters. Empty by default. @see VZVirtioNetworkDeviceConfiguration
func (*VZVirtualMachineConfiguration) Platform ¶
func (o *VZVirtualMachineConfiguration) Platform() *VZPlatformConfiguration
@abstract The hardware platform to use. @discussion Can be an instance of a VZGenericPlatformConfiguration or VZMacPlatformConfiguration. Defaults to VZGenericPlatformConfiguration. When restoring from saved state you must ensure your configuration matches that of the saved virtual machine. @see VZGenericPlatformConfiguration @see VZMacPlatformConfiguration
func (*VZVirtualMachineConfiguration) PointingDevices ¶
func (o *VZVirtualMachineConfiguration) PointingDevices() *foundation.NSArray[*VZPointingDeviceConfiguration]
@abstract List of pointing devices. Empty by default. @see VZUSBScreenCoordinatePointingDeviceConfiguration @see VZMacTrackpadConfiguration
func (*VZVirtualMachineConfiguration) SerialPorts ¶
func (o *VZVirtualMachineConfiguration) SerialPorts() *foundation.NSArray[*VZSerialPortConfiguration]
@abstract List of serial ports. Empty by default. @see VZVirtioConsoleDeviceSerialPortConfiguration
func (*VZVirtualMachineConfiguration) SetAudioDevices ¶
func (o *VZVirtualMachineConfiguration) SetAudioDevices(audioDevices *foundation.NSArray[*VZAudioDeviceConfiguration])
func (*VZVirtualMachineConfiguration) SetBootLoader ¶
func (o *VZVirtualMachineConfiguration) SetBootLoader(bootLoader *VZBootLoader)
func (*VZVirtualMachineConfiguration) SetCPUCount ¶
func (o *VZVirtualMachineConfiguration) SetCPUCount(cpuCount uint)
func (*VZVirtualMachineConfiguration) SetConsoleDevices ¶
func (o *VZVirtualMachineConfiguration) SetConsoleDevices(consoleDevices *foundation.NSArray[*VZConsoleDeviceConfiguration])
func (*VZVirtualMachineConfiguration) SetCustomVirtioDevices ¶
func (o *VZVirtualMachineConfiguration) SetCustomVirtioDevices(customVirtioDevices *foundation.NSArray[*VZCustomVirtioDeviceConfiguration])
func (*VZVirtualMachineConfiguration) SetDirectorySharingDevices ¶
func (o *VZVirtualMachineConfiguration) SetDirectorySharingDevices(directorySharingDevices *foundation.NSArray[*VZDirectorySharingDeviceConfiguration])
func (*VZVirtualMachineConfiguration) SetEntropyDevices ¶
func (o *VZVirtualMachineConfiguration) SetEntropyDevices(entropyDevices *foundation.NSArray[*VZEntropyDeviceConfiguration])
func (*VZVirtualMachineConfiguration) SetGraphicsDevices ¶
func (o *VZVirtualMachineConfiguration) SetGraphicsDevices(graphicsDevices *foundation.NSArray[*VZGraphicsDeviceConfiguration])
func (*VZVirtualMachineConfiguration) SetKeyboards ¶
func (o *VZVirtualMachineConfiguration) SetKeyboards(keyboards *foundation.NSArray[*VZKeyboardConfiguration])
func (*VZVirtualMachineConfiguration) SetLabel ¶
func (o *VZVirtualMachineConfiguration) SetLabel(label *foundation.NSString)
func (*VZVirtualMachineConfiguration) SetMemoryBalloonDevices ¶
func (o *VZVirtualMachineConfiguration) SetMemoryBalloonDevices(memoryBalloonDevices *foundation.NSArray[*VZMemoryBalloonDeviceConfiguration])
func (*VZVirtualMachineConfiguration) SetMemorySize ¶
func (o *VZVirtualMachineConfiguration) SetMemorySize(memorySize uint64)
func (*VZVirtualMachineConfiguration) SetNetworkDevices ¶
func (o *VZVirtualMachineConfiguration) SetNetworkDevices(networkDevices *foundation.NSArray[*VZNetworkDeviceConfiguration])
func (*VZVirtualMachineConfiguration) SetPlatform ¶
func (o *VZVirtualMachineConfiguration) SetPlatform(platform *VZPlatformConfiguration)
func (*VZVirtualMachineConfiguration) SetPointingDevices ¶
func (o *VZVirtualMachineConfiguration) SetPointingDevices(pointingDevices *foundation.NSArray[*VZPointingDeviceConfiguration])
func (*VZVirtualMachineConfiguration) SetSerialPorts ¶
func (o *VZVirtualMachineConfiguration) SetSerialPorts(serialPorts *foundation.NSArray[*VZSerialPortConfiguration])
func (*VZVirtualMachineConfiguration) SetSocketDevices ¶
func (o *VZVirtualMachineConfiguration) SetSocketDevices(socketDevices *foundation.NSArray[*VZSocketDeviceConfiguration])
func (*VZVirtualMachineConfiguration) SetStorageDevices ¶
func (o *VZVirtualMachineConfiguration) SetStorageDevices(storageDevices *foundation.NSArray[*VZStorageDeviceConfiguration])
func (*VZVirtualMachineConfiguration) SetUsbControllers ¶
func (o *VZVirtualMachineConfiguration) SetUsbControllers(usbControllers *foundation.NSArray[*VZUSBControllerConfiguration])
func (*VZVirtualMachineConfiguration) SocketDevices ¶
func (o *VZVirtualMachineConfiguration) SocketDevices() *foundation.NSArray[*VZSocketDeviceConfiguration]
@abstract List of socket devices. Empty by default. @see VZVirtioSocketDeviceConfiguration
func (*VZVirtualMachineConfiguration) StorageDevices ¶
func (o *VZVirtualMachineConfiguration) StorageDevices() *foundation.NSArray[*VZStorageDeviceConfiguration]
@abstract List of disk devices. Empty by default. @see VZNVMExpressControllerDeviceConfiguration @see VZUSBMassStorageDeviceConfiguration @see VZVirtioBlockDeviceConfiguration
func (*VZVirtualMachineConfiguration) UsbControllers ¶
func (o *VZVirtualMachineConfiguration) UsbControllers() *foundation.NSArray[*VZUSBControllerConfiguration]
@abstract List of USB Controllers. Empty by default. @discussion This list represents a set of USB controllers that the virtual machine will start with. For each entry in this list, there will be a corresponding runtime object created in VZVirtualMachine.usbControllers property. @see VZUSBControllerConfiguration
func (*VZVirtualMachineConfiguration) ValidateSaveRestoreSupportWithError ¶
func (o *VZVirtualMachineConfiguration) ValidateSaveRestoreSupportWithError() (bool, error)
Determines whether the framework can save or restore the VM’s current configuration.
func (*VZVirtualMachineConfiguration) ValidateWithError ¶
func (o *VZVirtualMachineConfiguration) ValidateWithError() (bool, error)
Validates the current configuration settings and reports any issues that might prevent the successful initialization of the VM.
type VZVirtualMachineDelegate ¶
type VZVirtualMachineDelegate interface {
}
VZVirtualMachineDelegate wraps the ObjC protocol VZVirtualMachineDelegate.
type VZVirtualMachineStartOptions ¶
type VZVirtualMachineStartOptions struct {
foundation.NSObject
}
The abstract class for VM start options.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtualmachinestartoptions
func VZVirtualMachineStartOptionsFromID ¶
func VZVirtualMachineStartOptionsFromID(id objc.ID) *VZVirtualMachineStartOptions
type VZVirtualMachineState ¶
type VZVirtualMachineState int64
const ( // Initial state before the virtual machine is started. VZVirtualMachineStateStopped VZVirtualMachineState = 0 // Running virtual machine. VZVirtualMachineStateRunning VZVirtualMachineState = 1 // A started virtual machine is paused. This state can only be transitioned from VZVirtualMachineStatePausing. VZVirtualMachineStatePaused VZVirtualMachineState = 2 // The virtual machine has encountered an internal error. VZVirtualMachineStateError VZVirtualMachineState = 3 // The virtual machine is configuring the hardware and starting. VZVirtualMachineStateStarting VZVirtualMachineState = 4 // The virtual machine is being paused. This is the intermediate state between VZVirtualMachineStateRunning and VZVirtualMachineStatePaused. VZVirtualMachineStatePausing VZVirtualMachineState = 5 // The virtual machine is being resumed. This is the intermediate state between VZVirtualMachineStatePaused and VZVirtualMachineStateRunning. VZVirtualMachineStateResuming VZVirtualMachineState = 6 // The virtual machine is being stopped. This is the intermediate state between VZVirtualMachineStateRunning and VZVirtualMachineStateStopped. VZVirtualMachineStateStopping VZVirtualMachineState = 7 // The virtual machine is being saved. This is the intermediate state between VZVirtualMachineStatePaused and VZVirtualMachineStatePaused. VZVirtualMachineStateSaving VZVirtualMachineState = 8 // The virtual machine is being restored. This is the intermediate state between VZVirtualMachineStateStopped and either VZVirtualMachineStatePaused on success or VZVirtualMachineStateStopped on failure. VZVirtualMachineStateRestoring VZVirtualMachineState = 9 )
func (VZVirtualMachineState) String ¶
func (e VZVirtualMachineState) String() string
type VZVirtualMachineView ¶
A view that allows user interaction with a VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvirtualmachineview
func VZVirtualMachineViewFromID ¶
func VZVirtualMachineViewFromID(id objc.ID) *VZVirtualMachineView
func (*VZVirtualMachineView) AutomaticallyReconfiguresDisplay ¶
func (o *VZVirtualMachineView) AutomaticallyReconfiguresDisplay() bool
@abstract Automatically reconfigures the graphics display associated with this view with respect to view changes. Defaults to NO. @discussion Automatically resize or reconfigure this graphics display when the view properties update. For example, resizing the display when the view has a live resize operation. When enabled, the graphics display will automatically be reconfigured to match the host display environment. This property can only be set on a single VZVirtualMachineView targeting a particular VZGraphicsDisplay at a time. If multiple VZVirtualMachineViews targeting the same VZGraphicsDisplay enable this property, only one view will respect the property, and the other view will have had the property disabled.
func (*VZVirtualMachineView) CapturesSystemKeys ¶
func (o *VZVirtualMachineView) CapturesSystemKeys() bool
@abstract Whether certain system hot keys should be sent to the guest instead of the host. Defaults to NO.
func (*VZVirtualMachineView) SetAutomaticallyReconfiguresDisplay ¶
func (o *VZVirtualMachineView) SetAutomaticallyReconfiguresDisplay(automaticallyReconfiguresDisplay bool)
func (*VZVirtualMachineView) SetCapturesSystemKeys ¶
func (o *VZVirtualMachineView) SetCapturesSystemKeys(capturesSystemKeys bool)
func (*VZVirtualMachineView) SetVirtualMachine ¶
func (o *VZVirtualMachineView) SetVirtualMachine(virtualMachine *VZVirtualMachine)
func (*VZVirtualMachineView) VirtualMachine ¶
func (o *VZVirtualMachineView) VirtualMachine() *VZVirtualMachine
@abstract The virtual machine to display in the view. @discussion In Swift, when set, the `adaptor` property is set to nil. If the `adaptor` is set, `virtualMachine` is reset to nil.
type VZVmnetNetworkDeviceAttachment ¶
type VZVmnetNetworkDeviceAttachment struct {
VZNetworkDeviceAttachment
}
A network device attachment that allows a custom network topology.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzvmnetnetworkdeviceattachment
func VZVmnetNetworkDeviceAttachmentFromID ¶
func VZVmnetNetworkDeviceAttachmentFromID(id objc.ID) *VZVmnetNetworkDeviceAttachment
func (*VZVmnetNetworkDeviceAttachment) InitWithNetwork ¶
func (o *VZVmnetNetworkDeviceAttachment) InitWithNetwork(network unsafe.Pointer) *VZVmnetNetworkDeviceAttachment
Creates the attachment and configures it with the specified data.
func (*VZVmnetNetworkDeviceAttachment) Network ¶
func (o *VZVmnetNetworkDeviceAttachment) Network() unsafe.Pointer
type VZXHCIController ¶
type VZXHCIController struct {
VZUSBController
}
A class that represents a USB Extensible Host Controller Interface (XHCI) controller in a VM.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzxhcicontroller
func VZXHCIControllerFromID ¶
func VZXHCIControllerFromID(id objc.ID) *VZXHCIController
type VZXHCIControllerConfiguration ¶
type VZXHCIControllerConfiguration struct {
VZUSBControllerConfiguration
}
The configuration object for the USB Extensible Host Controller Interface (XHCI) controller.
Apple documentation: https://developer.apple.com/documentation/virtualization/vzxhcicontrollerconfiguration
func VZXHCIControllerConfigurationFromID ¶
func VZXHCIControllerConfigurationFromID(id objc.ID) *VZXHCIControllerConfiguration
func (*VZXHCIControllerConfiguration) Init ¶
func (o *VZXHCIControllerConfiguration) Init() *VZXHCIControllerConfiguration
Creates a USB Extensible Host Controller Interface (XHCI) configuration.
type Virtual_memory_guard_exception_code_t ¶
type Virtual_memory_guard_exception_code_t uint32
const ( KGUARD_EXC_DEALLOC_GAP Virtual_memory_guard_exception_code_t = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE Virtual_memory_guard_exception_code_t = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE Virtual_memory_guard_exception_code_t = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE Virtual_memory_guard_exception_code_t = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE Virtual_memory_guard_exception_code_t = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE Virtual_memory_guard_exception_code_t = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE Virtual_memory_guard_exception_code_t = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION Virtual_memory_guard_exception_code_t = 12 // Guard exception sent to a thread when a CoW defeatured map attempts to copy memory which is not permitted by system policy. KGUARD_EXC_COW_DEFEATURED_COPY_DENIED Virtual_memory_guard_exception_code_t = 13 // Guard exception sent to a thread when it attempts to extract a given type of memory in a way which is not permitted for CoW defeatured maps. KGUARD_EXC_COW_DEFEATURED_EXTRACT_DENIED Virtual_memory_guard_exception_code_t = 14 // Guard exception sent to a thread when it attempts to copy-map a memory entry which was created for sharing by a CoW defeatured map. KGUARD_EXC_COW_DEFEATURED_SHARE_MAP_AS_COPY_DENIED Virtual_memory_guard_exception_code_t = 15 KGUARD_EXC_COW_DEFEATURED_FIRST Virtual_memory_guard_exception_code_t = 13 KGUARD_EXC_COW_DEFEATURED_LAST Virtual_memory_guard_exception_code_t = 15 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY Virtual_memory_guard_exception_code_t = 16 KGUARD_EXC_SEC_ACCESS_FAULT Virtual_memory_guard_exception_code_t = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT Virtual_memory_guard_exception_code_t = 99 KGUARD_EXC_SEC_COPY_DENIED Virtual_memory_guard_exception_code_t = 100 KGUARD_EXC_SEC_SHARING_DENIED Virtual_memory_guard_exception_code_t = 101 KGUARD_EXC_MTE_SYNC_FAULT Virtual_memory_guard_exception_code_t = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204 )
func (Virtual_memory_guard_exception_code_t) String ¶
func (e Virtual_memory_guard_exception_code_t) String() string
type Xpc_listener_create_flags_t ¶
type Xpc_listener_create_flags_t uint64
const ( XPC_LISTENER_CREATE_NONE Xpc_listener_create_flags_t = 0 XPC_LISTENER_CREATE_INACTIVE Xpc_listener_create_flags_t = 1 XPC_LISTENER_CREATE_FORCE_MACH Xpc_listener_create_flags_t = 2 XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4 )
func (Xpc_listener_create_flags_t) String ¶
func (e Xpc_listener_create_flags_t) String() string
type Xpc_session_create_flags_t ¶
type Xpc_session_create_flags_t uint64
const ( XPC_SESSION_CREATE_NONE Xpc_session_create_flags_t = 0 XPC_SESSION_CREATE_INACTIVE Xpc_session_create_flags_t = 1 XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2 )
func (Xpc_session_create_flags_t) String ¶
func (e Xpc_session_create_flags_t) String() string
Source Files
¶
- VZAudioDeviceConfiguration.go
- VZAudioInputStreamSource.go
- VZAudioOutputStreamSink.go
- VZBootLoader.go
- VZBridgedNetworkDeviceAttachment.go
- VZBridgedNetworkInterface.go
- VZConsoleDevice.go
- VZConsoleDeviceConfiguration.go
- VZConsolePortConfiguration.go
- VZCustomVirtioDevice.go
- VZCustomVirtioDeviceConfiguration.go
- VZCustomVirtioDeviceDelegateProvider.go
- VZCustomVirtioDeviceProvider.go
- VZDirectoryShare.go
- VZDirectorySharingDevice.go
- VZDirectorySharingDeviceConfiguration.go
- VZDiskBlockDeviceStorageDeviceAttachment.go
- VZDiskImageStorageDeviceAttachment.go
- VZEFIBootLoader.go
- VZEFISignature.go
- VZEFISignatureDatabaseConfiguration.go
- VZEFISignatureList.go
- VZEFISignatureSHA256Hash.go
- VZEFISignatureX509Certificate.go
- VZEFIVariableStore.go
- VZEntropyDeviceConfiguration.go
- VZFileHandleNetworkDeviceAttachment.go
- VZFileHandleSerialPortAttachment.go
- VZFileSerialPortAttachment.go
- VZGenericMachineIdentifier.go
- VZGenericPlatformConfiguration.go
- VZGraphicsDevice.go
- VZGraphicsDeviceConfiguration.go
- VZGraphicsDisplay.go
- VZGraphicsDisplayConfiguration.go
- VZGuestMemoryMapping.go
- VZGuestProvisioningOptions.go
- VZHostAudioInputStreamSource.go
- VZHostAudioOutputStreamSink.go
- VZKeyboardConfiguration.go
- VZLinuxBootLoader.go
- VZLinuxRosettaAbstractSocketCachingOptions.go
- VZLinuxRosettaCachingOptions.go
- VZLinuxRosettaDirectoryShare.go
- VZLinuxRosettaUnixSocketCachingOptions.go
- VZMACAddress.go
- VZMacAuxiliaryStorage.go
- VZMacGraphicsDevice.go
- VZMacGraphicsDeviceConfiguration.go
- VZMacGraphicsDisplay.go
- VZMacGraphicsDisplayConfiguration.go
- VZMacGuestProvisioningOptions.go
- VZMacHardwareModel.go
- VZMacKeyboardConfiguration.go
- VZMacMachineIdentifier.go
- VZMacOSBootLoader.go
- VZMacOSConfigurationRequirements.go
- VZMacOSInstaller.go
- VZMacOSRestoreImage.go
- VZMacOSVirtualMachineStartOptions.go
- VZMacPlatformConfiguration.go
- VZMacTrackpadConfiguration.go
- VZMemoryBalloonDevice.go
- VZMemoryBalloonDeviceConfiguration.go
- VZMultipleDirectoryShare.go
- VZNATNetworkDeviceAttachment.go
- VZNVMExpressControllerDeviceConfiguration.go
- VZNegotiatedVirtioFeatureSet.go
- VZNetworkBlockDeviceStorageDeviceAttachment.go
- VZNetworkDevice.go
- VZNetworkDeviceAttachment.go
- VZNetworkDeviceConfiguration.go
- VZPlatformConfiguration.go
- VZPointingDeviceConfiguration.go
- VZSerialPortAttachment.go
- VZSerialPortConfiguration.go
- VZSharedDirectory.go
- VZSingleDirectoryShare.go
- VZSocketDevice.go
- VZSocketDeviceConfiguration.go
- VZSpiceAgentPortAttachment.go
- VZStorageDevice.go
- VZStorageDeviceAttachment.go
- VZStorageDeviceConfiguration.go
- VZUSBController.go
- VZUSBControllerConfiguration.go
- VZUSBKeyboardConfiguration.go
- VZUSBMassStorageDevice.go
- VZUSBMassStorageDeviceConfiguration.go
- VZUSBPassthroughDevice.go
- VZUSBPassthroughDeviceConfiguration.go
- VZUSBScreenCoordinatePointingDeviceConfiguration.go
- VZVirtioBlockDeviceConfiguration.go
- VZVirtioConsoleDevice.go
- VZVirtioConsoleDeviceConfiguration.go
- VZVirtioConsoleDeviceSerialPortConfiguration.go
- VZVirtioConsolePort.go
- VZVirtioConsolePortArray.go
- VZVirtioConsolePortConfiguration.go
- VZVirtioConsolePortConfigurationArray.go
- VZVirtioDeviceSpecificConfiguration.go
- VZVirtioEntropyDeviceConfiguration.go
- VZVirtioFeatureSet.go
- VZVirtioFileSystemDevice.go
- VZVirtioFileSystemDeviceConfiguration.go
- VZVirtioGraphicsDevice.go
- VZVirtioGraphicsDeviceConfiguration.go
- VZVirtioGraphicsScanout.go
- VZVirtioGraphicsScanoutConfiguration.go
- VZVirtioNetworkDeviceConfiguration.go
- VZVirtioQueue.go
- VZVirtioQueueElement.go
- VZVirtioSharedMemoryRegion.go
- VZVirtioSharedMemoryRegionConfiguration.go
- VZVirtioSocketConnection.go
- VZVirtioSocketDevice.go
- VZVirtioSocketDeviceConfiguration.go
- VZVirtioSocketListener.go
- VZVirtioSoundDeviceConfiguration.go
- VZVirtioSoundDeviceInputStreamConfiguration.go
- VZVirtioSoundDeviceOutputStreamConfiguration.go
- VZVirtioSoundDeviceStreamConfiguration.go
- VZVirtioTraditionalMemoryBalloonDevice.go
- VZVirtioTraditionalMemoryBalloonDeviceConfiguration.go
- VZVirtualMachine.go
- VZVirtualMachineConfiguration.go
- VZVirtualMachineStartOptions.go
- VZVirtualMachineView.go
- VZVmnetNetworkDeviceAttachment.go
- VZXHCIController.go
- VZXHCIControllerConfiguration.go
- doc.go
- virtualization_enums.go
- virtualization_externs.go
- virtualization_protocols.go
- virtualization_runtime.go