virtualization

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package virtualization provides purego-based Go bindings for the macOS Virtualization framework.

Apple documentation: https://developer.apple.com/documentation/virtualization

Index

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 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_tag_t

type Acl_tag_t int32
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_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

type Clockid_t

type Clockid_t int32

func (Clockid_t) String

func (e Clockid_t) 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

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 EvCmd

type EvCmd int32
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) 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 Idtype_t

type Idtype_t int32
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_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 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

Creates the attachment from a bridged network interface object.

func (*VZBridgedNetworkDeviceAttachment) Interface

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

@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 (*VZConsolePortConfiguration) SetAttachment

func (o *VZConsolePortConfiguration) SetAttachment(attachment *VZSerialPortAttachment)

type VZDirectoryShare

type VZDirectoryShare struct {
	foundation.NSObject
}

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

@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

@abstract Whether the underlying disk attachment is read-only.

func (*VZDiskBlockDeviceStorageDeviceAttachment) SynchronizationMode

@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

@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

@abstract The mode in which the disk image synchronizes data with the underlying storage device.

func (*VZDiskImageStorageDeviceAttachment) URL

@abstract URL of the underlying disk image.

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

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 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) 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) URL

type VZEFIVariableStoreInitializationOptions

type VZEFIVariableStoreInitializationOptions uint64

Constants that describe the options available when creating a new Extensible Firmware Interface (EFI) variable store.

const (
	VZEFIVariableStoreInitializationOptionAllowOverwrite VZEFIVariableStoreInitializationOptions = 1
)

func (VZEFIVariableStoreInitializationOptions) 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

Errors you might encounter when configuring or using a virtual machine.

const (
	VZErrorInternal                             VZErrorCode = 1
	VZErrorInvalidVirtualMachineConfiguration   VZErrorCode = 2
	VZErrorInvalidVirtualMachineState           VZErrorCode = 3
	VZErrorInvalidVirtualMachineStateTransition VZErrorCode = 4
	VZErrorInvalidDiskImage                     VZErrorCode = 5
	VZErrorVirtualMachineLimitExceeded          VZErrorCode = 6
	VZErrorNetworkError                         VZErrorCode = 7
	VZErrorOutOfDiskSpace                       VZErrorCode = 8
	VZErrorOperationCancelled                   VZErrorCode = 9
	VZErrorNotSupported                         VZErrorCode = 10
	VZErrorSave                                 VZErrorCode = 11
	VZErrorRestore                              VZErrorCode = 12
	VZErrorRestoreImageCatalogLoadFailed        VZErrorCode = 10001
	VZErrorInvalidRestoreImageCatalog           VZErrorCode = 10002
	VZErrorNoSupportedRestoreImagesInCatalog    VZErrorCode = 10003
	VZErrorRestoreImageLoadFailed               VZErrorCode = 10004
	VZErrorInvalidRestoreImage                  VZErrorCode = 10005
	VZErrorInstallationRequiresUpdate           VZErrorCode = 10006
	VZErrorInstallationFailed                   VZErrorCode = 10007
	VZErrorNetworkBlockDeviceNegotiationFailed  VZErrorCode = 20001
	VZErrorNetworkBlockDeviceDisconnected       VZErrorCode = 20002
	VZErrorUSBControllerNotFound                VZErrorCode = 30001
	VZErrorDeviceAlreadyAttached                VZErrorCode = 30002
	VZErrorDeviceInitializationFailure          VZErrorCode = 30003
	VZErrorDeviceNotFound                       VZErrorCode = 30004
)

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

@abstract The file handle associated with this attachment.

func (*VZFileHandleNetworkDeviceAttachment) InitWithFileHandle

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

@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

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

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

@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

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 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

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

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

Initialize options to set on a Rosetta directory share.

func (*VZLinuxRosettaAbstractSocketCachingOptions) Name

@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

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 {
	VZDirectoryShare
}

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

Creates a new Rosetta directory share, or returns an error if Rosetta isn’t installed.

func (*VZLinuxRosettaDirectoryShare) Options

@abstract Enable translation caching and configure the socket communication type for Rosetta.

func (*VZLinuxRosettaDirectoryShare) SetOptions

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

Creates a new Rosetta caching options object for a UNIX domain socket.

func (*VZLinuxRosettaUnixSocketCachingOptions) InitWithPathError

Creates a new Rosetta caching options object for a UNIX domain socket with the path you specify.

func (*VZLinuxRosettaUnixSocketCachingOptions) Path

@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 addresses (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 addresses (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

Initializes an auxiliary storage object with data from the location at the URL you provide.

func (*VZMacAuxiliaryStorage) URL

type VZMacAuxiliaryStorageInitializationOptions

type VZMacAuxiliaryStorageInitializationOptions uint64

Options you can set when creating new auxiliary storage.

const (
	// Overwrite an existing auxiliary storage.
	VZMacAuxiliaryStorageInitializationOptionAllowOverwrite VZMacAuxiliaryStorageInitializationOptions = 1
)

func (VZMacAuxiliaryStorageInitializationOptions) 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 (*VZMacGraphicsDeviceConfiguration) Init

Creates a new Mac graphics device configuration.

func (*VZMacGraphicsDeviceConfiguration) SetDisplays

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 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

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

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

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

@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. @seealso VZMacPlatformConfiguration @seealso 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

@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) SetStartUpFromMacOSRecovery

func (o *VZMacOSVirtualMachineStartOptions) SetStartUpFromMacOSRecovery(startUpFromMacOSRecovery bool)

func (*VZMacOSVirtualMachineStartOptions) StartUpFromMacOSRecovery

func (o *VZMacOSVirtualMachineStartOptions) StartUpFromMacOSRecovery() bool

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

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

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 {
	VZDirectoryShare
}

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

@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

Initializes the directory share with an empty set of directories.

func (*VZMultipleDirectoryShare) InitWithDirectories

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

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

Creates a new NVM Express controller configuration with the storage device attachment you provide.

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

@abstract The attachment's delegate.

func (*VZNetworkBlockDeviceStorageDeviceAttachment) InitWithURLError

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 (*VZNetworkBlockDeviceStorageDeviceAttachment) SynchronizationMode

@abstract The mode in which the NBD client synchronizes data with the NBD server.

func (*VZNetworkBlockDeviceStorageDeviceAttachment) Timeout

@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

@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

@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 (*VZSerialPortConfiguration) SetAttachment

func (o *VZSerialPortConfiguration) SetAttachment(attachment *VZSerialPortAttachment)

type VZSharedDirectory

type VZSharedDirectory struct {
	foundation.NSObject
}

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

@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 {
	VZDirectoryShare
}

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

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

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) DetachDeviceCompletionHandler

func (o *VZUSBController) DetachDeviceCompletionHandler(device VZUSBDevice, completionHandler func(unsafe.Pointer))

Detaches a USB device from the controller.

func (*VZUSBController) UsbDevices

func (o *VZUSBController) UsbDevices() *foundation.NSArray[VZUSBDevice]

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 (*VZUSBControllerConfiguration) UsbDevices

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

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

Creates a new storage device configuration with the specified attachment.

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

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

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

@abstract Pointer to a delegate object for the console device.

func (*VZVirtioConsoleDevice) Ports

@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

Creates a console port configuration object.

func (*VZVirtioConsoleDeviceConfiguration) Ports

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

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

@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

@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

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

@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

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 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

Creates an entropy device configuration object.

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

@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

@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

Creates a configuration for a VIRTIO file system device.

func (*VZVirtioFileSystemDeviceConfiguration) SetShare

func (*VZVirtioFileSystemDeviceConfiguration) SetTag

func (*VZVirtioFileSystemDeviceConfiguration) Share

@abstract Directory share. Defines how host resources are exposed to the guest virtual machine. @see VZSingleDirectoryShare @see VZMultipleDirectoryShare @see VZLinuxRosettaDirectoryShare

func (*VZVirtioFileSystemDeviceConfiguration) Tag

@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

Creates a new Virtio graphics device.

func (*VZVirtioGraphicsDeviceConfiguration) Scanouts

func (*VZVirtioGraphicsDeviceConfiguration) SetScanouts

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

Creates a network device configuration object for you to configure.

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

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 (*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

Creates a new sound device configuration.

func (*VZVirtioSoundDeviceConfiguration) SetStreams

func (*VZVirtioSoundDeviceConfiguration) Streams

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

Creates a new sound device input stream configuration.

func (*VZVirtioSoundDeviceInputStreamConfiguration) SetSource

func (*VZVirtioSoundDeviceInputStreamConfiguration) Source

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

Creates a new sounds device output stream configuration.

func (*VZVirtioSoundDeviceOutputStreamConfiguration) SetSink

func (*VZVirtioSoundDeviceOutputStreamConfiguration) Sink

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

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

@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

@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

@abstract List of audio devices. Empty by default. @see VZVirtioSoundDeviceConfiguration

func (*VZVirtualMachineConfiguration) BootLoader

@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

@abstract List of console devices. Empty by default. @see VZVirtioConsoleDeviceConfiguration

func (*VZVirtualMachineConfiguration) DirectorySharingDevices

@abstract List of directory sharing devices. Empty by default. @see VZVirtioFileSystemDeviceConfiguration

func (*VZVirtualMachineConfiguration) EntropyDevices

@abstract List of entropy devices. Empty by default. @see VZVirtioEntropyDeviceConfiguration

func (*VZVirtualMachineConfiguration) GraphicsDevices

@abstract List of graphics devices. Empty by default. @see VZMacGraphicsDeviceConfiguration

func (*VZVirtualMachineConfiguration) Keyboards

@abstract List of keyboards. Empty by default. @see VZUSBKeyboardConfiguration @see VZMacKeyboardConfiguration

func (*VZVirtualMachineConfiguration) MemoryBalloonDevices

@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

@abstract List of network adapters. Empty by default. @see VZVirtioNetworkDeviceConfiguration

func (*VZVirtualMachineConfiguration) Platform

@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

@abstract List of pointing devices. Empty by default. @see VZUSBScreenCoordinatePointingDeviceConfiguration @see VZMacTrackpadConfiguration

func (*VZVirtualMachineConfiguration) SerialPorts

@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) 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 (*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 (*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

@abstract List of socket devices. Empty by default. @see VZVirtioSocketDeviceConfiguration

func (*VZVirtualMachineConfiguration) StorageDevices

@abstract List of disk devices. Empty by default. @see VZNVMExpressControllerDeviceConfiguration @see VZUSBMassStorageDeviceConfiguration @see VZVirtioBlockDeviceConfiguration

func (*VZVirtualMachineConfiguration) UsbControllers

@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

The execution states of the VM.

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 VZVirtualMachineStateStop.
	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

type VZVirtualMachineView struct {
	appkit.NSView
}

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.

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

Creates the attachment and configures it with the specified data.

func (*VZVmnetNetworkDeviceAttachment) Network

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

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
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    Virtual_memory_guard_exception_code_t = 13
	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

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

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

Source Files

Jump to

Keyboard shortcuts

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