Documentation
¶
Overview ¶
Package virtualization provides a fluent Go API over the macOS Virtualization framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Errors ¶
Failing calls return errors carrying the Objective-C error domain and code. Match them against this package's Err… sentinel values with errors.Is, or inspect domain, code, and Apple's prose via errors.As with *errkit.Error.
Main-thread requirements ¶
Methods, setters, and constructors of classes Apple isolates to the main thread run there automatically; callers never need to arrange main-thread dispatch for the generated API.
Delegates ¶
A …Delegate interface is implemented by a plain Go value and installed with the matching With… setter; the package builds the Objective-C delegate object behind the scenes. Optional protocol methods are separate one-method …Handler interfaces — implement the ones you need on the same value and the framework calls them too.
Types ¶
Each base type below lists the concrete types you construct and pass where the base is accepted:
- AudioDeviceConfiguration: VirtioSoundDeviceConfiguration
- AudioInputStreamSource: HostAudioInputStreamSource
- AudioOutputStreamSink: HostAudioOutputStreamSink
- BootLoader: EFIBootLoader, LinuxBootLoader, MacOSBootLoader
- ConsoleDevice: VirtioConsoleDevice
- ConsoleDeviceConfiguration: VirtioConsoleDeviceConfiguration
- ConsolePortConfiguration: VirtioConsolePortConfiguration
- CustomVirtioDeviceProvider: CustomVirtioDeviceDelegateProvider
- DirectoryShare: LinuxRosettaDirectoryShare, MultipleDirectoryShare, SingleDirectoryShare
- DirectorySharingDevice: VirtioFileSystemDevice
- DirectorySharingDeviceConfiguration: VirtioFileSystemDeviceConfiguration
- EFISignature: EFISignatureSHA256Hash, EFISignatureX509Certificate
- EntropyDeviceConfiguration: VirtioEntropyDeviceConfiguration
- GraphicsDevice: MacGraphicsDevice, VirtioGraphicsDevice
- GraphicsDeviceConfiguration: MacGraphicsDeviceConfiguration, VirtioGraphicsDeviceConfiguration
- GraphicsDisplay: MacGraphicsDisplay, VirtioGraphicsScanout
- GraphicsDisplayConfiguration: MacGraphicsDisplayConfiguration, VirtioGraphicsScanoutConfiguration
- GuestProvisioningOptions: MacGuestProvisioningOptions
- KeyboardConfiguration: MacKeyboardConfiguration, USBKeyboardConfiguration
- LinuxRosettaCachingOptions: LinuxRosettaAbstractSocketCachingOptions, LinuxRosettaUnixSocketCachingOptions
- MemoryBalloonDevice: VirtioTraditionalMemoryBalloonDevice
- MemoryBalloonDeviceConfiguration: VirtioTraditionalMemoryBalloonDeviceConfiguration
- NetworkDeviceAttachment: BridgedNetworkDeviceAttachment, FileHandleNetworkDeviceAttachment, NATNetworkDeviceAttachment, VmnetNetworkDeviceAttachment
- NetworkDeviceConfiguration: VirtioNetworkDeviceConfiguration
- PlatformConfiguration: GenericPlatformConfiguration, MacPlatformConfiguration
- PointingDeviceConfiguration: MacTrackpadConfiguration, USBScreenCoordinatePointingDeviceConfiguration
- SerialPortAttachment: FileHandleSerialPortAttachment, FileSerialPortAttachment, SpiceAgentPortAttachment
- SerialPortConfiguration: VirtioConsoleDeviceSerialPortConfiguration
- SocketDevice: VirtioSocketDevice
- SocketDeviceConfiguration: VirtioSocketDeviceConfiguration
- StorageDevice: USBMassStorageDevice
- StorageDeviceAttachment: DiskBlockDeviceStorageDeviceAttachment, DiskImageStorageDeviceAttachment, NetworkBlockDeviceStorageDeviceAttachment
- StorageDeviceConfiguration: NVMExpressControllerDeviceConfiguration, USBMassStorageDeviceConfiguration, VirtioBlockDeviceConfiguration
- USBController: XHCIController
- USBControllerConfiguration: XHCIControllerConfiguration
- VirtioSoundDeviceStreamConfiguration: VirtioSoundDeviceInputStreamConfiguration, VirtioSoundDeviceOutputStreamConfiguration
- VirtualMachineStartOptions: MacOSVirtualMachineStartOptions
Index ¶
- Variables
- func CanonicalizedNameFromName(name string) string
- func InstallRosetta(ctx context.Context) error
- func IsNestedVirtualizationSupported() bool
- func IsSupported() bool
- func MacOSGuestAutomountTag() string
- func MaximumAllowedCPUCount() int
- func MaximumAllowedMemorySize() uint64
- func MaximumAllowedSharedMemoryRegionCount() int
- func MaximumNameLength() int
- func MaximumPathLength() int
- func MinimumAllowedCPUCount() int
- func MinimumAllowedMemorySize() uint64
- func SpiceAgentPortName() string
- func VZErrorDomain() obj.Object
- func ValidateBlockDeviceIdentifier(blockDeviceIdentifier string) error
- func ValidateName(name string) error
- func ValidateTag(tag string) error
- func ValidateURL(url string) error
- type AudioDeviceConfiguration
- type AudioDeviceConfigurationProvider
- type AudioInputStreamSource
- type AudioInputStreamSourceProvider
- type AudioOutputStreamSink
- type AudioOutputStreamSinkProvider
- type BootLoader
- type BootLoaderProvider
- type BridgedNetworkDeviceAttachment
- type BridgedNetworkInterface
- func (bni *BridgedNetworkInterface) Description() string
- func (bni *BridgedNetworkInterface) Identifier() string
- func (bni *BridgedNetworkInterface) IsEqual(other obj.Object) bool
- func (bni *BridgedNetworkInterface) IsKind(className string) bool
- func (bni *BridgedNetworkInterface) LocalizedDisplayName() string
- func (bni *BridgedNetworkInterface) String() string
- type CGLCPContextPriorityRequest
- type Clockid
- type ConsoleDevice
- type ConsoleDeviceConfiguration
- type ConsoleDeviceConfigurationProvider
- type ConsoleDeviceProvider
- type ConsolePortConfiguration
- func (cpc *ConsolePortConfiguration) Attachment() *SerialPortAttachment
- func (cpc *ConsolePortConfiguration) Description() string
- func (cpc *ConsolePortConfiguration) IsEqual(other obj.Object) bool
- func (cpc *ConsolePortConfiguration) IsKind(className string) bool
- func (cpc *ConsolePortConfiguration) String() string
- func (cpc *ConsolePortConfiguration) WithAttachment(attachment SerialPortAttachmentProvider) *ConsolePortConfiguration
- type ConsolePortConfigurationProvider
- type CustomVirtioDevice
- func (cvd *CustomVirtioDevice) Description() string
- func (cvd *CustomVirtioDevice) DeviceQueue() *foundation.Object
- func (cvd *CustomVirtioDevice) GuestMemoryMappingAtPhysicalAddressLength(physicalAddress uint64, length int) *GuestMemoryMapping
- func (cvd *CustomVirtioDevice) IsEqual(other obj.Object) bool
- func (cvd *CustomVirtioDevice) IsKind(className string) bool
- func (cvd *CustomVirtioDevice) NegotiatedFeatures() *NegotiatedVirtioFeatureSet
- func (cvd *CustomVirtioDevice) QueueAtIndex(index uint16) *VirtioQueue
- func (cvd *CustomVirtioDevice) RequestDeviceReset()
- func (cvd *CustomVirtioDevice) SharedMemoryRegions() []*VirtioSharedMemoryRegion
- func (cvd *CustomVirtioDevice) String() string
- func (cvd *CustomVirtioDevice) UpdateDeviceSpecificConfiguration(ctx context.Context, newConfiguration *VirtioDeviceSpecificConfiguration) error
- func (cvd *CustomVirtioDevice) WithDelegate(delegate CustomVirtioDeviceDelegate) *CustomVirtioDevice
- type CustomVirtioDeviceConfiguration
- func (cvdc *CustomVirtioDeviceConfiguration) Description() string
- func (cvdc *CustomVirtioDeviceConfiguration) DeviceID() uint16
- func (cvdc *CustomVirtioDeviceConfiguration) DeviceSpecificConfiguration() *VirtioDeviceSpecificConfiguration
- func (cvdc *CustomVirtioDeviceConfiguration) IsEqual(other obj.Object) bool
- func (cvdc *CustomVirtioDeviceConfiguration) IsKind(className string) bool
- func (cvdc *CustomVirtioDeviceConfiguration) MandatoryFeatures() *VirtioFeatureSet
- func (cvdc *CustomVirtioDeviceConfiguration) OptionalFeatures() *VirtioFeatureSet
- func (cvdc *CustomVirtioDeviceConfiguration) PCIClassID() uint8
- func (cvdc *CustomVirtioDeviceConfiguration) PCISubclassID() uint8
- func (cvdc *CustomVirtioDeviceConfiguration) Provider() *CustomVirtioDeviceProvider
- func (cvdc *CustomVirtioDeviceConfiguration) SharedMemoryRegions() []*VirtioSharedMemoryRegionConfiguration
- func (cvdc *CustomVirtioDeviceConfiguration) String() string
- func (cvdc *CustomVirtioDeviceConfiguration) SupportsSaveRestore() bool
- func (cvdc *CustomVirtioDeviceConfiguration) VirtioQueueCount() uint16
- func (cvdc *CustomVirtioDeviceConfiguration) WithDeviceID(deviceID uint16) *CustomVirtioDeviceConfiguration
- func (cvdc *CustomVirtioDeviceConfiguration) WithDeviceSpecificConfiguration(deviceSpecificConfiguration *VirtioDeviceSpecificConfiguration) *CustomVirtioDeviceConfiguration
- func (cvdc *CustomVirtioDeviceConfiguration) WithPCIClassID(pciClassID uint8) *CustomVirtioDeviceConfiguration
- func (cvdc *CustomVirtioDeviceConfiguration) WithPCISubclassID(pciSubclassID uint8) *CustomVirtioDeviceConfiguration
- func (cvdc *CustomVirtioDeviceConfiguration) WithProvider(provider CustomVirtioDeviceProviderProvider) *CustomVirtioDeviceConfiguration
- func (cvdc *CustomVirtioDeviceConfiguration) WithSharedMemoryRegions(items ...*VirtioSharedMemoryRegionConfiguration) *CustomVirtioDeviceConfiguration
- func (cvdc *CustomVirtioDeviceConfiguration) WithSupportsSaveRestore(supportsSaveRestore bool) *CustomVirtioDeviceConfiguration
- func (cvdc *CustomVirtioDeviceConfiguration) WithVirtioQueueCount(virtioQueueCount uint16) *CustomVirtioDeviceConfiguration
- type CustomVirtioDeviceConfigurationDelegate
- type CustomVirtioDeviceDelegate
- type CustomVirtioDeviceDelegateCustomVirtioDeviceDidAcceptDriverOkHandler
- type CustomVirtioDeviceDelegateCustomVirtioDeviceDidReceiveNotificationForQueueHandler
- type CustomVirtioDeviceDelegateCustomVirtioDeviceShouldRestoreSaveStateHandler
- type CustomVirtioDeviceDelegateCustomVirtioDeviceWillPauseHandler
- type CustomVirtioDeviceDelegateCustomVirtioDeviceWillResetHandler
- type CustomVirtioDeviceDelegateCustomVirtioDeviceWillResumeHandler
- type CustomVirtioDeviceDelegateCustomVirtioDeviceWillStopHandler
- type CustomVirtioDeviceDelegateProvider
- type CustomVirtioDeviceProvider
- type CustomVirtioDeviceProviderProvider
- type DirectoryShare
- type DirectoryShareProvider
- type DirectorySharingDevice
- type DirectorySharingDeviceConfiguration
- type DirectorySharingDeviceConfigurationProvider
- type DirectorySharingDeviceProvider
- type DiskBlockDeviceStorageDeviceAttachment
- type DiskImageCachingMode
- type DiskImageStorageDeviceAttachment
- func DiskImageStorageDeviceAttachmentFromID(id objc.ID) *DiskImageStorageDeviceAttachment
- func NewDiskImageStorageDeviceAttachmentWithURLReadOnly(url string, readOnly bool) (result *DiskImageStorageDeviceAttachment, err error)
- func NewDiskImageStorageDeviceAttachmentWithURLReadOnlyCachingModeSynchronizationMode(url string, readOnly bool, cachingMode DiskImageCachingMode, ...) (result *DiskImageStorageDeviceAttachment, err error)
- func (disda *DiskImageStorageDeviceAttachment) CachingMode() DiskImageCachingMode
- func (disda *DiskImageStorageDeviceAttachment) IsReadOnly() bool
- func (disda *DiskImageStorageDeviceAttachment) SynchronizationMode() DiskImageSynchronizationMode
- func (disda *DiskImageStorageDeviceAttachment) URL() string
- type DiskImageSynchronizationMode
- type DiskSynchronizationMode
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EFIBootLoader
- type EFISignature
- type EFISignatureDatabaseConfiguration
- func (esdc *EFISignatureDatabaseConfiguration) DbSignatures() []*EFISignatureList
- func (esdc *EFISignatureDatabaseConfiguration) DbxSignatures() []*EFISignatureList
- func (esdc *EFISignatureDatabaseConfiguration) Description() string
- func (esdc *EFISignatureDatabaseConfiguration) IsEqual(other obj.Object) bool
- func (esdc *EFISignatureDatabaseConfiguration) IsKind(className string) bool
- func (esdc *EFISignatureDatabaseConfiguration) KeyExchangeKeys() []*EFISignatureList
- func (esdc *EFISignatureDatabaseConfiguration) String() string
- type EFISignatureList
- type EFISignatureProvider
- type EFISignatureSHA256Hash
- type EFISignatureX509Certificate
- type EFIVariableStore
- func (evs *EFIVariableStore) Description() string
- func (evs *EFIVariableStore) DisableSecureBoot() error
- func (evs *EFIVariableStore) EnableSecureBootUsingDefaultPlatformKey() error
- func (evs *EFIVariableStore) EnableSecureBootWithPlatformKey(platformKey obj.Object) error
- func (evs *EFIVariableStore) EnrollDefaultSecureBootSignatures() error
- func (evs *EFIVariableStore) EnrollSecureBootSignatures(signatures *EFISignatureDatabaseConfiguration) error
- func (evs *EFIVariableStore) GetEnrolledSecureBootSignatures() (result *EFISignatureDatabaseConfiguration, err error)
- func (evs *EFIVariableStore) GetSecureBootEnabled() (enabled bool, err error)
- func (evs *EFIVariableStore) IsEqual(other obj.Object) bool
- func (evs *EFIVariableStore) IsKind(className string) bool
- func (evs *EFIVariableStore) ResetSecureBoot() error
- func (evs *EFIVariableStore) String() string
- func (evs *EFIVariableStore) URL() string
- type EFIVariableStoreInitializationOptions
- type EntropyDeviceConfiguration
- type EntropyDeviceConfigurationProvider
- type EntryID
- type ErrorCode
- type EvCmd
- type FileHandleNetworkDeviceAttachment
- func (fhnda *FileHandleNetworkDeviceAttachment) FileHandle() *foundation.FileHandle
- func (fhnda *FileHandleNetworkDeviceAttachment) MaximumTransmissionUnit() int
- func (fhnda *FileHandleNetworkDeviceAttachment) WithMaximumTransmissionUnit(maximumTransmissionUnit int) *FileHandleNetworkDeviceAttachment
- type FileHandleSerialPortAttachment
- type FileSerialPortAttachment
- type FilesecProperty
- type Flag
- type GenericMachineIdentifier
- func (gmi *GenericMachineIdentifier) DataRepresentation() []byte
- func (gmi *GenericMachineIdentifier) Description() string
- func (gmi *GenericMachineIdentifier) IsEqual(other obj.Object) bool
- func (gmi *GenericMachineIdentifier) IsKind(className string) bool
- func (gmi *GenericMachineIdentifier) String() string
- type GenericPlatformConfiguration
- func (gpc *GenericPlatformConfiguration) IsNestedVirtualizationEnabled() bool
- func (gpc *GenericPlatformConfiguration) MachineIdentifier() *GenericMachineIdentifier
- func (gpc *GenericPlatformConfiguration) WithMachineIdentifier(machineIdentifier *GenericMachineIdentifier) *GenericPlatformConfiguration
- func (gpc *GenericPlatformConfiguration) WithNestedVirtualizationEnabled(nestedVirtualizationEnabled bool) *GenericPlatformConfiguration
- type GraphicsDevice
- type GraphicsDeviceConfiguration
- type GraphicsDeviceConfigurationProvider
- type GraphicsDeviceProvider
- type GraphicsDisplay
- func (gd *GraphicsDisplay) Description() string
- func (gd *GraphicsDisplay) IsEqual(other obj.Object) bool
- func (gd *GraphicsDisplay) IsKind(className string) bool
- func (gd *GraphicsDisplay) ReconfigureWithConfiguration(configuration *GraphicsDisplayConfiguration) error
- func (gd *GraphicsDisplay) ReconfigureWithSizeInPixels(sizeInPixels corefoundation.CGSize) error
- func (gd *GraphicsDisplay) SizeInPixels() corefoundation.CGSize
- func (gd *GraphicsDisplay) String() string
- type GraphicsDisplayConfiguration
- type GraphicsDisplayConfigurationProvider
- type GraphicsDisplayObserver
- type GraphicsDisplayObserverDisplayDidBeginReconfigurationHandler
- type GraphicsDisplayObserverDisplayDidEndReconfigurationHandler
- type GraphicsDisplayProvider
- type GuestMemoryMapping
- func (gmm *GuestMemoryMapping) Description() string
- func (gmm *GuestMemoryMapping) IsEqual(other obj.Object) bool
- func (gmm *GuestMemoryMapping) IsKind(className string) bool
- func (gmm *GuestMemoryMapping) Length() int
- func (gmm *GuestMemoryMapping) MutableBytes() unsafe.Pointer
- func (gmm *GuestMemoryMapping) PhysicalAddress() uint64
- func (gmm *GuestMemoryMapping) String() string
- type GuestProvisioningOptions
- type GuestProvisioningOptionsProvider
- type HostAudioInputStreamSource
- type HostAudioOutputStreamSink
- type Idtype
- type IpcInfoObjectType
- type KeyboardConfiguration
- type KeyboardConfigurationProvider
- type LaunchDataType
- type LinuxBootLoader
- func (lbl *LinuxBootLoader) CommandLine() string
- func (lbl *LinuxBootLoader) KernelURL() string
- func (lbl *LinuxBootLoader) WithCommandLine(commandLine string) *LinuxBootLoader
- func (lbl *LinuxBootLoader) WithInitialRamdiskURL(initialRamdiskURL string) *LinuxBootLoader
- func (lbl *LinuxBootLoader) WithKernelURL(kernelURL string) *LinuxBootLoader
- type LinuxRosettaAbstractSocketCachingOptions
- type LinuxRosettaAvailability
- type LinuxRosettaCachingOptions
- type LinuxRosettaCachingOptionsProvider
- type LinuxRosettaDirectoryShare
- type LinuxRosettaUnixSocketCachingOptions
- func LinuxRosettaUnixSocketCachingOptionsFromID(id objc.ID) *LinuxRosettaUnixSocketCachingOptions
- func NewLinuxRosettaUnixSocketCachingOptions() *LinuxRosettaUnixSocketCachingOptions
- func NewLinuxRosettaUnixSocketCachingOptionsWithPath(path string) (result *LinuxRosettaUnixSocketCachingOptions, err error)
- type MACAddress
- func (ma *MACAddress) Description() string
- func (ma *MACAddress) EthernetAddress() unsafe.Pointer
- func (ma *MACAddress) IsBroadcastAddress() bool
- func (ma *MACAddress) IsEqual(other obj.Object) bool
- func (ma *MACAddress) IsKind(className string) bool
- func (ma *MACAddress) IsLocallyAdministeredAddress() bool
- func (ma *MACAddress) IsMulticastAddress() bool
- func (ma *MACAddress) IsUnicastAddress() bool
- func (ma *MACAddress) IsUniversallyAdministeredAddress() bool
- func (ma *MACAddress) String() string
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MacAuxiliaryStorage
- func MacAuxiliaryStorageFromID(id objc.ID) *MacAuxiliaryStorage
- func NewMACAuxiliaryStorageCreatingStorageAtURLHardwareModelOptions(url string, hardwareModel *MacHardwareModel, ...) (result *MacAuxiliaryStorage, err error)
- func NewMACAuxiliaryStorageWithContentsOfURL(url string) *MacAuxiliaryStorage
- func NewMACAuxiliaryStorageWithURL(url string) *MacAuxiliaryStorage
- type MacAuxiliaryStorageInitializationOptions
- type MacGraphicsDevice
- type MacGraphicsDeviceConfiguration
- type MacGraphicsDisplay
- type MacGraphicsDisplayConfiguration
- func MacGraphicsDisplayConfigurationFromID(id objc.ID) *MacGraphicsDisplayConfiguration
- func NewMACGraphicsDisplayConfigurationForScreenSizeInPoints(screen obj.Object, sizeInPoints corefoundation.CGSize) *MacGraphicsDisplayConfiguration
- func NewMACGraphicsDisplayConfigurationWithWidthInPixelsHeightInPixelsPixelsPerInch(widthInPixels int, heightInPixels int, pixelsPerInch int) *MacGraphicsDisplayConfiguration
- func (mgdc *MacGraphicsDisplayConfiguration) HeightInPixels() int
- func (mgdc *MacGraphicsDisplayConfiguration) PixelsPerInch() int
- func (mgdc *MacGraphicsDisplayConfiguration) WidthInPixels() int
- func (mgdc *MacGraphicsDisplayConfiguration) WithHeightInPixels(heightInPixels int) *MacGraphicsDisplayConfiguration
- func (mgdc *MacGraphicsDisplayConfiguration) WithPixelsPerInch(pixelsPerInch int) *MacGraphicsDisplayConfiguration
- func (mgdc *MacGraphicsDisplayConfiguration) WithWidthInPixels(widthInPixels int) *MacGraphicsDisplayConfiguration
- type MacGuestProvisioningOptions
- func (mgpo *MacGuestProvisioningOptions) EnablesRemoteLogin() bool
- func (mgpo *MacGuestProvisioningOptions) FullName() string
- func (mgpo *MacGuestProvisioningOptions) LogsInAutomatically() bool
- func (mgpo *MacGuestProvisioningOptions) Password() string
- func (mgpo *MacGuestProvisioningOptions) Username() string
- func (mgpo *MacGuestProvisioningOptions) WithEnablesRemoteLogin(enablesRemoteLogin bool) *MacGuestProvisioningOptions
- func (mgpo *MacGuestProvisioningOptions) WithFullName(fullName string) *MacGuestProvisioningOptions
- func (mgpo *MacGuestProvisioningOptions) WithLogsInAutomatically(logsInAutomatically bool) *MacGuestProvisioningOptions
- func (mgpo *MacGuestProvisioningOptions) WithPassword(password string) *MacGuestProvisioningOptions
- func (mgpo *MacGuestProvisioningOptions) WithUsername(username string) *MacGuestProvisioningOptions
- type MacHardwareModel
- func (mhm *MacHardwareModel) DataRepresentation() []byte
- func (mhm *MacHardwareModel) Description() string
- func (mhm *MacHardwareModel) IsEqual(other obj.Object) bool
- func (mhm *MacHardwareModel) IsKind(className string) bool
- func (mhm *MacHardwareModel) IsSupported() bool
- func (mhm *MacHardwareModel) String() string
- type MacKeyboardConfiguration
- type MacMachineIdentifier
- type MacOSBootLoader
- type MacOSConfigurationRequirements
- func (mocr *MacOSConfigurationRequirements) Description() string
- func (mocr *MacOSConfigurationRequirements) HardwareModel() *MacHardwareModel
- func (mocr *MacOSConfigurationRequirements) IsEqual(other obj.Object) bool
- func (mocr *MacOSConfigurationRequirements) IsKind(className string) bool
- func (mocr *MacOSConfigurationRequirements) MinimumSupportedCPUCount() int
- func (mocr *MacOSConfigurationRequirements) MinimumSupportedMemorySize() uint64
- func (mocr *MacOSConfigurationRequirements) String() string
- type MacOSInstaller
- func (moi *MacOSInstaller) Description() string
- func (moi *MacOSInstaller) Install(ctx context.Context) error
- func (moi *MacOSInstaller) IsEqual(other obj.Object) bool
- func (moi *MacOSInstaller) IsKind(className string) bool
- func (moi *MacOSInstaller) Progress() *foundation.Progress
- func (moi *MacOSInstaller) RestoreImageURL() string
- func (moi *MacOSInstaller) String() string
- func (moi *MacOSInstaller) VirtualMachine() *VirtualMachine
- type MacOSRestoreImage
- func (mori *MacOSRestoreImage) BuildVersion() string
- func (mori *MacOSRestoreImage) Description() string
- func (mori *MacOSRestoreImage) IsEqual(other obj.Object) bool
- func (mori *MacOSRestoreImage) IsKind(className string) bool
- func (mori *MacOSRestoreImage) IsSupported() bool
- func (mori *MacOSRestoreImage) MostFeaturefulSupportedConfiguration() *MacOSConfigurationRequirements
- func (mori *MacOSRestoreImage) OperatingSystemVersion() foundation.NSOperatingSystemVersion
- func (mori *MacOSRestoreImage) String() string
- func (mori *MacOSRestoreImage) URL() string
- type MacOSVirtualMachineStartOptions
- func (movmso *MacOSVirtualMachineStartOptions) GuestProvisioningOptions() *MacGuestProvisioningOptions
- func (movmso *MacOSVirtualMachineStartOptions) SetGuestProvisioning(guestProvisioningOptions *MacGuestProvisioningOptions) error
- func (movmso *MacOSVirtualMachineStartOptions) StartUpFromMACOSRecovery() bool
- func (movmso *MacOSVirtualMachineStartOptions) WithStartUpFromMACOSRecovery(startUpFromMacOSRecovery bool) *MacOSVirtualMachineStartOptions
- type MacPlatformConfiguration
- func (mpc *MacPlatformConfiguration) AuxiliaryStorage() *MacAuxiliaryStorage
- func (mpc *MacPlatformConfiguration) HardwareModel() *MacHardwareModel
- func (mpc *MacPlatformConfiguration) MachineIdentifier() *MacMachineIdentifier
- func (mpc *MacPlatformConfiguration) WithAuxiliaryStorage(auxiliaryStorage *MacAuxiliaryStorage) *MacPlatformConfiguration
- func (mpc *MacPlatformConfiguration) WithHardwareModel(hardwareModel *MacHardwareModel) *MacPlatformConfiguration
- func (mpc *MacPlatformConfiguration) WithMachineIdentifier(machineIdentifier *MacMachineIdentifier) *MacPlatformConfiguration
- type MacTrackpadConfiguration
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MemoryBalloonDevice
- type MemoryBalloonDeviceConfiguration
- type MemoryBalloonDeviceConfigurationProvider
- type MemoryBalloonDeviceProvider
- type MpoFlags
- type MultipleDirectoryShare
- type NATNetworkDeviceAttachment
- type NVMExpressControllerDeviceConfiguration
- type NXMouseButton
- type NegotiatedVirtioFeatureSet
- func (nvfs *NegotiatedVirtioFeatureSet) Description() string
- func (nvfs *NegotiatedVirtioFeatureSet) IsEqual(other obj.Object) bool
- func (nvfs *NegotiatedVirtioFeatureSet) IsKind(className string) bool
- func (nvfs *NegotiatedVirtioFeatureSet) String() string
- func (nvfs *NegotiatedVirtioFeatureSet) Subset0() uint32
- func (nvfs *NegotiatedVirtioFeatureSet) Subset1() uint32
- type NetworkBlockDeviceStorageDeviceAttachment
- func NetworkBlockDeviceStorageDeviceAttachmentFromID(id objc.ID) *NetworkBlockDeviceStorageDeviceAttachment
- func NewNetworkBlockDeviceStorageDeviceAttachmentWithURL(url string) (result *NetworkBlockDeviceStorageDeviceAttachment, err error)
- func NewNetworkBlockDeviceStorageDeviceAttachmentWithURLTimeoutForcedReadOnlySynchronizationMode(url string, timeout float64, forcedReadOnly bool, ...) (result *NetworkBlockDeviceStorageDeviceAttachment, err error)
- func (nbdsda *NetworkBlockDeviceStorageDeviceAttachment) IsForcedReadOnly() bool
- func (nbdsda *NetworkBlockDeviceStorageDeviceAttachment) SynchronizationMode() DiskSynchronizationMode
- func (nbdsda *NetworkBlockDeviceStorageDeviceAttachment) Timeout() float64
- func (nbdsda *NetworkBlockDeviceStorageDeviceAttachment) URL() string
- func (nbdsda *NetworkBlockDeviceStorageDeviceAttachment) WithDelegate(delegate NetworkBlockDeviceStorageDeviceAttachmentDelegate) *NetworkBlockDeviceStorageDeviceAttachment
- type NetworkBlockDeviceStorageDeviceAttachmentDelegate
- type NetworkBlockDeviceStorageDeviceAttachmentDelegateAttachmentDidEncounterErrorHandler
- type NetworkBlockDeviceStorageDeviceAttachmentDelegateAttachmentWasConnectedHandler
- type NetworkDevice
- func (nd *NetworkDevice) Attachment() *NetworkDeviceAttachment
- func (nd *NetworkDevice) Description() string
- func (nd *NetworkDevice) IsEqual(other obj.Object) bool
- func (nd *NetworkDevice) IsKind(className string) bool
- func (nd *NetworkDevice) String() string
- func (nd *NetworkDevice) WithAttachment(attachment NetworkDeviceAttachmentProvider) *NetworkDevice
- type NetworkDeviceAttachment
- type NetworkDeviceAttachmentProvider
- type NetworkDeviceConfiguration
- func (ndc *NetworkDeviceConfiguration) Attachment() *NetworkDeviceAttachment
- func (ndc *NetworkDeviceConfiguration) Description() string
- func (ndc *NetworkDeviceConfiguration) IsEqual(other obj.Object) bool
- func (ndc *NetworkDeviceConfiguration) IsKind(className string) bool
- func (ndc *NetworkDeviceConfiguration) MACAddress() *MACAddress
- func (ndc *NetworkDeviceConfiguration) String() string
- func (ndc *NetworkDeviceConfiguration) WithAttachment(attachment NetworkDeviceAttachmentProvider) *NetworkDeviceConfiguration
- func (ndc *NetworkDeviceConfiguration) WithMACAddress(macAddress *MACAddress) *NetworkDeviceConfiguration
- type NetworkDeviceConfigurationProvider
- type OSClockid
- type OSUnfairLockFlags
- type PMPageToPaperMappingType
- type Perm
- type PlatformConfiguration
- type PlatformConfigurationProvider
- type PointingDeviceConfiguration
- type PointingDeviceConfigurationProvider
- type PtrauthKey
- type QosClass
- type SerialPortAttachment
- type SerialPortAttachmentProvider
- type SerialPortConfiguration
- func (spc *SerialPortConfiguration) Attachment() *SerialPortAttachment
- func (spc *SerialPortConfiguration) Description() string
- func (spc *SerialPortConfiguration) IsEqual(other obj.Object) bool
- func (spc *SerialPortConfiguration) IsKind(className string) bool
- func (spc *SerialPortConfiguration) String() string
- func (spc *SerialPortConfiguration) WithAttachment(attachment SerialPortAttachmentProvider) *SerialPortConfiguration
- type SerialPortConfigurationProvider
- type SharedDirectory
- type SingleDirectoryShare
- type SocketDevice
- type SocketDeviceConfiguration
- type SocketDeviceConfigurationProvider
- type SocketDeviceProvider
- type SpiceAgentPortAttachment
- type StorageDevice
- type StorageDeviceAttachment
- type StorageDeviceAttachmentProvider
- type StorageDeviceConfiguration
- func (sdc *StorageDeviceConfiguration) Attachment() *StorageDeviceAttachment
- func (sdc *StorageDeviceConfiguration) Description() string
- func (sdc *StorageDeviceConfiguration) IsEqual(other obj.Object) bool
- func (sdc *StorageDeviceConfiguration) IsKind(className string) bool
- func (sdc *StorageDeviceConfiguration) String() string
- type StorageDeviceConfigurationProvider
- type StorageDeviceProvider
- type Tag
- type TaskSharedRegionStubs
- type Type
- type USBController
- func (uc *USBController) Description() string
- func (uc *USBController) IsEqual(other obj.Object) bool
- func (uc *USBController) IsKind(className string) bool
- func (uc *USBController) String() string
- func (uc *USBController) USBDevices() []obj.Object
- func (uc *USBController) WithDelegate(delegate USBControllerDelegate) *USBController
- type USBControllerConfiguration
- func (ucc *USBControllerConfiguration) Description() string
- func (ucc *USBControllerConfiguration) IsEqual(other obj.Object) bool
- func (ucc *USBControllerConfiguration) IsKind(className string) bool
- func (ucc *USBControllerConfiguration) SetUSBDevices(usbDevices []obj.Object)
- func (ucc *USBControllerConfiguration) String() string
- func (ucc *USBControllerConfiguration) USBDevices() []obj.Object
- type USBControllerConfigurationProvider
- type USBControllerDelegate
- type USBControllerDelegateUSBControllerUSBPassthroughDeviceDidDisconnectHandler
- type USBControllerProvider
- type USBDevice
- type USBDeviceConfiguration
- type USBKeyboardConfiguration
- type USBMassStorageDevice
- type USBMassStorageDeviceConfiguration
- type USBPassthroughDevice
- type USBPassthroughDeviceConfiguration
- type USBScreenCoordinatePointingDeviceConfiguration
- type VirtioBlockDeviceConfiguration
- type VirtioConsoleDevice
- type VirtioConsoleDeviceConfiguration
- type VirtioConsoleDeviceDelegate
- type VirtioConsoleDeviceDelegateConsoleDeviceDidClosePortHandler
- type VirtioConsoleDeviceDelegateConsoleDeviceDidOpenPortHandler
- type VirtioConsoleDeviceSerialPortConfiguration
- type VirtioConsolePort
- func (vcp *VirtioConsolePort) Attachment() *SerialPortAttachment
- func (vcp *VirtioConsolePort) Description() string
- func (vcp *VirtioConsolePort) IsEqual(other obj.Object) bool
- func (vcp *VirtioConsolePort) IsKind(className string) bool
- func (vcp *VirtioConsolePort) Name() string
- func (vcp *VirtioConsolePort) String() string
- func (vcp *VirtioConsolePort) WithAttachment(attachment SerialPortAttachmentProvider) *VirtioConsolePort
- type VirtioConsolePortArray
- func (vcpa *VirtioConsolePortArray) Description() string
- func (vcpa *VirtioConsolePortArray) IsEqual(other obj.Object) bool
- func (vcpa *VirtioConsolePortArray) IsKind(className string) bool
- func (vcpa *VirtioConsolePortArray) MaximumPortCount() uint32
- func (vcpa *VirtioConsolePortArray) ObjectAtIndexedSubscript(portIndex int) *VirtioConsolePort
- func (vcpa *VirtioConsolePortArray) String() string
- type VirtioConsolePortConfiguration
- func (vcpc *VirtioConsolePortConfiguration) IsConsole() bool
- func (vcpc *VirtioConsolePortConfiguration) Name() string
- func (vcpc *VirtioConsolePortConfiguration) WithAttachment(attachment SerialPortAttachmentProvider) *VirtioConsolePortConfiguration
- func (vcpc *VirtioConsolePortConfiguration) WithIsConsole(isConsole bool) *VirtioConsolePortConfiguration
- func (vcpc *VirtioConsolePortConfiguration) WithName(name string) *VirtioConsolePortConfiguration
- type VirtioConsolePortConfigurationArray
- func (vcpca *VirtioConsolePortConfigurationArray) Description() string
- func (vcpca *VirtioConsolePortConfigurationArray) IsEqual(other obj.Object) bool
- func (vcpca *VirtioConsolePortConfigurationArray) IsKind(className string) bool
- func (vcpca *VirtioConsolePortConfigurationArray) MaximumPortCount() uint32
- func (vcpca *VirtioConsolePortConfigurationArray) ObjectAtIndexedSubscript(portIndex int) *VirtioConsolePortConfiguration
- func (vcpca *VirtioConsolePortConfigurationArray) SetObjectAtIndexedSubscript(configuration *VirtioConsolePortConfiguration, portIndex int)
- func (vcpca *VirtioConsolePortConfigurationArray) String() string
- func (vcpca *VirtioConsolePortConfigurationArray) WithMaximumPortCount(maximumPortCount uint32) *VirtioConsolePortConfigurationArray
- type VirtioDeviceSpecificConfiguration
- func (vdsc *VirtioDeviceSpecificConfiguration) ConfigurationData() []byte
- func (vdsc *VirtioDeviceSpecificConfiguration) Description() string
- func (vdsc *VirtioDeviceSpecificConfiguration) IsEqual(other obj.Object) bool
- func (vdsc *VirtioDeviceSpecificConfiguration) IsKind(className string) bool
- func (vdsc *VirtioDeviceSpecificConfiguration) String() string
- type VirtioEntropyDeviceConfiguration
- type VirtioFeatureSet
- func (vfs *VirtioFeatureSet) Description() string
- func (vfs *VirtioFeatureSet) IsEqual(other obj.Object) bool
- func (vfs *VirtioFeatureSet) IsKind(className string) bool
- func (vfs *VirtioFeatureSet) String() string
- func (vfs *VirtioFeatureSet) Subset0() uint32
- func (vfs *VirtioFeatureSet) Subset1() uint32
- func (vfs *VirtioFeatureSet) WithSubset0(subset0 uint32) *VirtioFeatureSet
- func (vfs *VirtioFeatureSet) WithSubset1(subset1 uint32) *VirtioFeatureSet
- type VirtioFileSystemDevice
- type VirtioFileSystemDeviceConfiguration
- func (vfsdc *VirtioFileSystemDeviceConfiguration) Share() *DirectoryShare
- func (vfsdc *VirtioFileSystemDeviceConfiguration) Tag() string
- func (vfsdc *VirtioFileSystemDeviceConfiguration) WithShare(share DirectoryShareProvider) *VirtioFileSystemDeviceConfiguration
- func (vfsdc *VirtioFileSystemDeviceConfiguration) WithTag(tag string) *VirtioFileSystemDeviceConfiguration
- type VirtioGraphicsDevice
- type VirtioGraphicsDeviceConfiguration
- type VirtioGraphicsScanout
- type VirtioGraphicsScanoutConfiguration
- func (vgsc *VirtioGraphicsScanoutConfiguration) HeightInPixels() int
- func (vgsc *VirtioGraphicsScanoutConfiguration) WidthInPixels() int
- func (vgsc *VirtioGraphicsScanoutConfiguration) WithHeightInPixels(heightInPixels int) *VirtioGraphicsScanoutConfiguration
- func (vgsc *VirtioGraphicsScanoutConfiguration) WithWidthInPixels(widthInPixels int) *VirtioGraphicsScanoutConfiguration
- type VirtioNetworkDeviceConfiguration
- type VirtioQueue
- func (vq *VirtioQueue) Description() string
- func (vq *VirtioQueue) IsEqual(other obj.Object) bool
- func (vq *VirtioQueue) IsKind(className string) bool
- func (vq *VirtioQueue) NextElement() *VirtioQueueElement
- func (vq *VirtioQueue) QueueIndex() uint16
- func (vq *VirtioQueue) QueueSize() uint16
- func (vq *VirtioQueue) String() string
- type VirtioQueueElement
- func (vqe *VirtioQueueElement) Description() string
- func (vqe *VirtioQueueElement) IsEqual(other obj.Object) bool
- func (vqe *VirtioQueueElement) IsKind(className string) bool
- func (vqe *VirtioQueueElement) PeekIntoReadBuffersWithExactLength(exactLength int) (result []byte, err error)
- func (vqe *VirtioQueueElement) ReadBuffers() [][]byte
- func (vqe *VirtioQueueElement) ReadBuffersAvailableByteCount() int
- func (vqe *VirtioQueueElement) ReadBuffersByteCount() int
- func (vqe *VirtioQueueElement) ReadBytesIntoBufferExactLength(buffer unsafe.Pointer, exactLength int) error
- func (vqe *VirtioQueueElement) ReadBytesWithExactLength(exactLength int) (result []byte, err error)
- func (vqe *VirtioQueueElement) ReturnToQueue()
- func (vqe *VirtioQueueElement) String() string
- func (vqe *VirtioQueueElement) WriteBufferExactLength(buffer unsafe.Pointer, exactLength int) error
- func (vqe *VirtioQueueElement) WriteBuffersAvailableByteCount() int
- func (vqe *VirtioQueueElement) WriteBuffersByteCount() int
- func (vqe *VirtioQueueElement) WriteData(data []byte) error
- func (vqe *VirtioQueueElement) WrittenByteCount() int
- type VirtioSharedMemoryRegion
- func (vsmr *VirtioSharedMemoryRegion) Description() string
- func (vsmr *VirtioSharedMemoryRegion) IsEqual(other obj.Object) bool
- func (vsmr *VirtioSharedMemoryRegion) IsKind(className string) bool
- func (vsmr *VirtioSharedMemoryRegion) MapMemoryAtOffsetSize(ctx context.Context, memory unsafe.Pointer, offset uint64, size uint64) error
- func (vsmr *VirtioSharedMemoryRegion) RegionID() uint8
- func (vsmr *VirtioSharedMemoryRegion) Size() uint64
- func (vsmr *VirtioSharedMemoryRegion) String() string
- func (vsmr *VirtioSharedMemoryRegion) UnmapMemoryAtOffsetSize(ctx context.Context, offset uint64, size uint64) error
- type VirtioSharedMemoryRegionConfiguration
- func (vsmrc *VirtioSharedMemoryRegionConfiguration) Description() string
- func (vsmrc *VirtioSharedMemoryRegionConfiguration) IsEqual(other obj.Object) bool
- func (vsmrc *VirtioSharedMemoryRegionConfiguration) IsKind(className string) bool
- func (vsmrc *VirtioSharedMemoryRegionConfiguration) RegionID() uint8
- func (vsmrc *VirtioSharedMemoryRegionConfiguration) Size() uint64
- func (vsmrc *VirtioSharedMemoryRegionConfiguration) String() string
- type VirtioSocketConnection
- func (vsc *VirtioSocketConnection) Close()
- func (vsc *VirtioSocketConnection) Description() string
- func (vsc *VirtioSocketConnection) DestinationPort() uint32
- func (vsc *VirtioSocketConnection) FileDescriptor() int
- func (vsc *VirtioSocketConnection) IsEqual(other obj.Object) bool
- func (vsc *VirtioSocketConnection) IsKind(className string) bool
- func (vsc *VirtioSocketConnection) SourcePort() uint32
- func (vsc *VirtioSocketConnection) String() string
- type VirtioSocketDevice
- type VirtioSocketDeviceConfiguration
- type VirtioSocketListener
- func (vsl *VirtioSocketListener) Description() string
- func (vsl *VirtioSocketListener) IsEqual(other obj.Object) bool
- func (vsl *VirtioSocketListener) IsKind(className string) bool
- func (vsl *VirtioSocketListener) String() string
- func (vsl *VirtioSocketListener) WithDelegate(delegate VirtioSocketListenerDelegate) *VirtioSocketListener
- type VirtioSocketListenerDelegate
- type VirtioSocketListenerDelegateListenerShouldAcceptNewConnectionFromSocketDeviceHandler
- type VirtioSoundDeviceConfiguration
- type VirtioSoundDeviceInputStreamConfiguration
- type VirtioSoundDeviceOutputStreamConfiguration
- type VirtioSoundDeviceStreamConfiguration
- func (vsdsc *VirtioSoundDeviceStreamConfiguration) Description() string
- func (vsdsc *VirtioSoundDeviceStreamConfiguration) IsEqual(other obj.Object) bool
- func (vsdsc *VirtioSoundDeviceStreamConfiguration) IsKind(className string) bool
- func (vsdsc *VirtioSoundDeviceStreamConfiguration) String() string
- type VirtioSoundDeviceStreamConfigurationProvider
- type VirtioTraditionalMemoryBalloonDevice
- type VirtioTraditionalMemoryBalloonDeviceConfiguration
- type VirtualMachine
- func (vm *VirtualMachine) CanPause() bool
- func (vm *VirtualMachine) CanRequestStop() bool
- func (vm *VirtualMachine) CanResume() bool
- func (vm *VirtualMachine) CanStart() bool
- func (vm *VirtualMachine) CanStop() bool
- func (vm *VirtualMachine) ConsoleDevices() []*ConsoleDevice
- func (vm *VirtualMachine) Description() string
- func (vm *VirtualMachine) DirectorySharingDevices() []*DirectorySharingDevice
- func (vm *VirtualMachine) GraphicsDevices() []*GraphicsDevice
- func (vm *VirtualMachine) IsEqual(other obj.Object) bool
- func (vm *VirtualMachine) IsKind(className string) bool
- func (vm *VirtualMachine) MemoryBalloonDevices() []*MemoryBalloonDevice
- func (vm *VirtualMachine) NetworkDevices() []*NetworkDevice
- func (vm *VirtualMachine) Pause(ctx context.Context) error
- func (vm *VirtualMachine) Queue() *foundation.Object
- func (vm *VirtualMachine) RequestStop() error
- func (vm *VirtualMachine) RestoreMachineStateFromURL(ctx context.Context, saveFileURL string) error
- func (vm *VirtualMachine) Resume(ctx context.Context) error
- func (vm *VirtualMachine) SaveMachineStateToURL(ctx context.Context, saveFileURL string) error
- func (vm *VirtualMachine) SocketDevices() []*SocketDevice
- func (vm *VirtualMachine) Start(ctx context.Context) error
- func (vm *VirtualMachine) StartWithOptions(ctx context.Context, options *VirtualMachineStartOptions) error
- func (vm *VirtualMachine) State() VirtualMachineState
- func (vm *VirtualMachine) Stop(ctx context.Context) error
- func (vm *VirtualMachine) String() string
- func (vm *VirtualMachine) USBControllers() []*USBController
- func (vm *VirtualMachine) WithDelegate(delegate VirtualMachineDelegate) *VirtualMachine
- type VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) AudioDevices() []*AudioDeviceConfiguration
- func (vmc *VirtualMachineConfiguration) BootLoader() *BootLoader
- func (vmc *VirtualMachineConfiguration) CPUCount() int
- func (vmc *VirtualMachineConfiguration) ConsoleDevices() []*ConsoleDeviceConfiguration
- func (vmc *VirtualMachineConfiguration) CustomVirtioDevices() []*CustomVirtioDeviceConfiguration
- func (vmc *VirtualMachineConfiguration) Description() string
- func (vmc *VirtualMachineConfiguration) DirectorySharingDevices() []*DirectorySharingDeviceConfiguration
- func (vmc *VirtualMachineConfiguration) EntropyDevices() []*EntropyDeviceConfiguration
- func (vmc *VirtualMachineConfiguration) GraphicsDevices() []*GraphicsDeviceConfiguration
- func (vmc *VirtualMachineConfiguration) IsEqual(other obj.Object) bool
- func (vmc *VirtualMachineConfiguration) IsKind(className string) bool
- func (vmc *VirtualMachineConfiguration) Keyboards() []*KeyboardConfiguration
- func (vmc *VirtualMachineConfiguration) Label() string
- func (vmc *VirtualMachineConfiguration) MemoryBalloonDevices() []*MemoryBalloonDeviceConfiguration
- func (vmc *VirtualMachineConfiguration) MemorySize() uint64
- func (vmc *VirtualMachineConfiguration) NetworkDevices() []*NetworkDeviceConfiguration
- func (vmc *VirtualMachineConfiguration) Platform() *PlatformConfiguration
- func (vmc *VirtualMachineConfiguration) PointingDevices() []*PointingDeviceConfiguration
- func (vmc *VirtualMachineConfiguration) SerialPorts() []*SerialPortConfiguration
- func (vmc *VirtualMachineConfiguration) SocketDevices() []*SocketDeviceConfiguration
- func (vmc *VirtualMachineConfiguration) StorageDevices() []*StorageDeviceConfiguration
- func (vmc *VirtualMachineConfiguration) String() string
- func (vmc *VirtualMachineConfiguration) USBControllers() []*USBControllerConfiguration
- func (vmc *VirtualMachineConfiguration) Validate() error
- func (vmc *VirtualMachineConfiguration) ValidateSaveRestoreSupport() error
- func (vmc *VirtualMachineConfiguration) WithAudioDevices(items ...AudioDeviceConfigurationProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithBootLoader(bootLoader BootLoaderProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithCPUCount(cpuCount int) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithConsoleDevices(items ...ConsoleDeviceConfigurationProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithCustomVirtioDevices(items ...*CustomVirtioDeviceConfiguration) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithDirectorySharingDevices(items ...DirectorySharingDeviceConfigurationProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithEntropyDevices(items ...EntropyDeviceConfigurationProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithGraphicsDevices(items ...GraphicsDeviceConfigurationProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithKeyboards(items ...KeyboardConfigurationProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithLabel(label string) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithMemoryBalloonDevices(items ...MemoryBalloonDeviceConfigurationProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithMemorySize(memorySize uint64) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithNetworkDevices(items ...NetworkDeviceConfigurationProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithPlatform(platform PlatformConfigurationProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithPointingDevices(items ...PointingDeviceConfigurationProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithSerialPorts(items ...SerialPortConfigurationProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithSocketDevices(items ...SocketDeviceConfigurationProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithStorageDevices(items ...StorageDeviceConfigurationProvider) *VirtualMachineConfiguration
- func (vmc *VirtualMachineConfiguration) WithUSBControllers(items ...USBControllerConfigurationProvider) *VirtualMachineConfiguration
- type VirtualMachineDelegate
- type VirtualMachineDelegateGuestDidStopVirtualMachineHandler
- type VirtualMachineDelegateVirtualMachineDidStopWithErrorHandler
- type VirtualMachineDelegateVirtualMachineNetworkDeviceAttachmentWasDisconnectedWithErrorHandler
- type VirtualMachineStartOptions
- type VirtualMachineStartOptionsProvider
- type VirtualMachineState
- type VirtualMachineView
- func (vmv *VirtualMachineView) AutomaticallyReconfiguresDisplay() bool
- func (vmv *VirtualMachineView) CapturesSystemKeys() bool
- func (vmv *VirtualMachineView) Description() string
- func (vmv *VirtualMachineView) IsEqual(other obj.Object) bool
- func (vmv *VirtualMachineView) IsKind(className string) bool
- func (vmv *VirtualMachineView) String() string
- func (vmv *VirtualMachineView) VirtualMachine() *VirtualMachine
- func (vmv *VirtualMachineView) WithAutomaticallyReconfiguresDisplay(automaticallyReconfiguresDisplay bool) *VirtualMachineView
- func (vmv *VirtualMachineView) WithCapturesSystemKeys(capturesSystemKeys bool) *VirtualMachineView
- func (vmv *VirtualMachineView) WithVirtualMachine(virtualMachine *VirtualMachine) *VirtualMachineView
- type VirtualMemoryGuardExceptionCode
- type VmnetNetworkDeviceAttachment
- type XHCIController
- type XHCIControllerConfiguration
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
var ErrDeviceAlreadyAttached = errkit.New("VZErrorDomain", 30002)
ErrDeviceAlreadyAttached matches the Virtualization error VZErrorDeviceAlreadyAttached.
var ErrDeviceInitializationFailure = errkit.New("VZErrorDomain", 30003)
ErrDeviceInitializationFailure matches the Virtualization error VZErrorDeviceInitializationFailure.
var ErrDeviceNotFound = errkit.New("VZErrorDomain", 30004)
ErrDeviceNotFound matches the Virtualization error VZErrorDeviceNotFound.
var ErrEFISecureBootEnrollmentFailed = errkit.New("VZErrorDomain", 50001)
ErrEFISecureBootEnrollmentFailed matches the Virtualization error VZErrorEFISecureBootEnrollmentFailed.
var ErrEFIVariableInaccessible = errkit.New("VZErrorDomain", 50002)
ErrEFIVariableInaccessible matches the Virtualization error VZErrorEFIVariableInaccessible.
var ErrGuestProvisioningInvalidFullName = errkit.New("VZErrorDomain", 40001)
ErrGuestProvisioningInvalidFullName matches the Virtualization error VZErrorGuestProvisioningInvalidFullName.
var ErrGuestProvisioningInvalidPassword = errkit.New("VZErrorDomain", 40003)
ErrGuestProvisioningInvalidPassword matches the Virtualization error VZErrorGuestProvisioningInvalidPassword.
var ErrGuestProvisioningInvalidUsername = errkit.New("VZErrorDomain", 40002)
ErrGuestProvisioningInvalidUsername matches the Virtualization error VZErrorGuestProvisioningInvalidUsername.
var ErrInstallationFailed = errkit.New("VZErrorDomain", 10007)
ErrInstallationFailed matches the Virtualization error VZErrorInstallationFailed.
var ErrInstallationRequiresUpdate = errkit.New("VZErrorDomain", 10006)
ErrInstallationRequiresUpdate matches the Virtualization error VZErrorInstallationRequiresUpdate.
var ErrInternal = errkit.New("VZErrorDomain", 1)
ErrInternal matches the Virtualization error VZErrorInternal.
var ErrInvalidDiskImage = errkit.New("VZErrorDomain", 5)
ErrInvalidDiskImage matches the Virtualization error VZErrorInvalidDiskImage.
var ErrInvalidRestoreImage = errkit.New("VZErrorDomain", 10005)
ErrInvalidRestoreImage matches the Virtualization error VZErrorInvalidRestoreImage.
var ErrInvalidRestoreImageCatalog = errkit.New("VZErrorDomain", 10002)
ErrInvalidRestoreImageCatalog matches the Virtualization error VZErrorInvalidRestoreImageCatalog.
var ErrInvalidVirtualMachineConfiguration = errkit.New("VZErrorDomain", 2)
ErrInvalidVirtualMachineConfiguration matches the Virtualization error VZErrorInvalidVirtualMachineConfiguration.
var ErrInvalidVirtualMachineState = errkit.New("VZErrorDomain", 3)
ErrInvalidVirtualMachineState matches the Virtualization error VZErrorInvalidVirtualMachineState.
var ErrInvalidVirtualMachineStateTransition = errkit.New("VZErrorDomain", 4)
ErrInvalidVirtualMachineStateTransition matches the Virtualization error VZErrorInvalidVirtualMachineStateTransition.
var ErrNetworkBlockDeviceDisconnected = errkit.New("VZErrorDomain", 20002)
ErrNetworkBlockDeviceDisconnected matches the Virtualization error VZErrorNetworkBlockDeviceDisconnected.
var ErrNetworkBlockDeviceNegotiationFailed = errkit.New("VZErrorDomain", 20001)
ErrNetworkBlockDeviceNegotiationFailed matches the Virtualization error VZErrorNetworkBlockDeviceNegotiationFailed.
var ErrNetworkError = errkit.New("VZErrorDomain", 7)
ErrNetworkError matches the Virtualization error VZErrorNetworkError.
var ErrNoSupportedRestoreImagesInCatalog = errkit.New("VZErrorDomain", 10003)
ErrNoSupportedRestoreImagesInCatalog matches the Virtualization error VZErrorNoSupportedRestoreImagesInCatalog.
var ErrNotSupported = errkit.New("VZErrorDomain", 10)
ErrNotSupported matches the Virtualization error VZErrorNotSupported.
var ErrOperationCancelled = errkit.New("VZErrorDomain", 9)
ErrOperationCancelled matches the Virtualization error VZErrorOperationCancelled.
var ErrOutOfDiskSpace = errkit.New("VZErrorDomain", 8)
ErrOutOfDiskSpace matches the Virtualization error VZErrorOutOfDiskSpace.
var ErrRestore = errkit.New("VZErrorDomain", 12)
ErrRestore matches the Virtualization error VZErrorRestore.
var ErrRestoreImageCatalogLoadFailed = errkit.New("VZErrorDomain", 10001)
ErrRestoreImageCatalogLoadFailed matches the Virtualization error VZErrorRestoreImageCatalogLoadFailed.
var ErrRestoreImageLoadFailed = errkit.New("VZErrorDomain", 10004)
ErrRestoreImageLoadFailed matches the Virtualization error VZErrorRestoreImageLoadFailed.
var ErrSave = errkit.New("VZErrorDomain", 11)
ErrSave matches the Virtualization error VZErrorSave.
var ErrUSBControllerNotFound = errkit.New("VZErrorDomain", 30001)
ErrUSBControllerNotFound matches the Virtualization error VZErrorUSBControllerNotFound.
var ErrVirtualMachineLimitExceeded = errkit.New("VZErrorDomain", 6)
ErrVirtualMachineLimitExceeded matches the Virtualization error VZErrorVirtualMachineLimitExceeded.
Functions ¶
func CanonicalizedNameFromName ¶ added in v0.17.0
CanonicalizedNameFromName transforms a string to be a valid directory name.
func InstallRosetta ¶ added in v0.17.0
InstallRosetta starts the installation of Rosetta.
InstallRosetta blocks until the operation completes or ctx is cancelled.
func IsNestedVirtualizationSupported ¶ added in v0.17.0
func IsNestedVirtualizationSupported() bool
IsNestedVirtualizationSupported reports whether nested virtualization is available. 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.
func IsSupported ¶ added in v0.17.0
func IsSupported() bool
IsSupported reports whether virtualization is available. If virtualization is unavailable, no VZVirtualMachineConfiguration will validate. The validation error of the VZVirtualMachineConfiguration provides more information about why virtualization is unavailable.
func MacOSGuestAutomountTag ¶ added in v0.17.0
func MacOSGuestAutomountTag() string
MacOSGuestAutomountTag returns the macOS automount tag. A device configured with this tag will be automatically mounted in a macOS guest.
func MaximumAllowedCPUCount ¶ added in v0.17.0
func MaximumAllowedCPUCount() int
MaximumAllowedCPUCount returns maximum number of CPUs for a virtual machine.
func MaximumAllowedMemorySize ¶ added in v0.17.0
func MaximumAllowedMemorySize() uint64
MaximumAllowedMemorySize returns maximum amount of memory allowed for a virtual machine.
func MaximumAllowedSharedMemoryRegionCount ¶
func MaximumAllowedSharedMemoryRegionCount() int
MaximumAllowedSharedMemoryRegionCount returns the maximum number of Virtio shared memory regions the framework allows. ## See Also - “VZCustomVirtioDeviceConfiguration/sharedMemoryRegions“
func MaximumNameLength ¶ added in v0.17.0
func MaximumNameLength() int
MaximumNameLength returns the maximum allowed length of name, as defined by the sockaddr_un structure in Linux.
func MaximumPathLength ¶ added in v0.17.0
func MaximumPathLength() int
MaximumPathLength returns the maximum allowed length of path, as defined by the sockaddr_un structure in Linux.
func MinimumAllowedCPUCount ¶ added in v0.17.0
func MinimumAllowedCPUCount() int
MinimumAllowedCPUCount returns minimum number of CPUs for a virtual machine.
func MinimumAllowedMemorySize ¶ added in v0.17.0
func MinimumAllowedMemorySize() uint64
MinimumAllowedMemorySize returns minimum amount of memory required by virtual machines.
func SpiceAgentPortName ¶ added in v0.17.0
func SpiceAgentPortName() string
SpiceAgentPortName returns the Spice agent port name. 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 VZErrorDomain ¶
VZErrorDomain returns the string constant VZErrorDomain, for use as a dictionary key or argument.
func ValidateBlockDeviceIdentifier ¶ added in v0.17.0
ValidateBlockDeviceIdentifier checks the validity of a block device identifier.
func ValidateName ¶ added in v0.17.0
ValidateName check if a name is a valid directory name.
func ValidateTag ¶ added in v0.17.0
ValidateTag checks to see whether a Virtio tag is valid.
func ValidateURL ¶ added in v0.17.0
ValidateURL checks if the URL is a valid network block device URL.
Types ¶
type AudioDeviceConfiguration ¶ added in v0.17.0
AudioDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZAudioDeviceConfiguration.
AudioDeviceConfiguration is an abstract base — you do not construct it directly. Construct one of VirtioSoundDeviceConfiguration and pass it where a AudioDeviceConfiguration is accepted.
The base class for an audio device configuration.
func AudioDeviceConfigurationFromID ¶ added in v0.17.0
func AudioDeviceConfigurationFromID(id objc.ID) *AudioDeviceConfiguration
AudioDeviceConfigurationFromID adopts an existing Objective-C object as a AudioDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*AudioDeviceConfiguration) Description ¶ added in v0.17.0
func (adc *AudioDeviceConfiguration) Description() string
Description returns the object's -description text.
func (*AudioDeviceConfiguration) IsEqual ¶ added in v0.17.0
func (adc *AudioDeviceConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*AudioDeviceConfiguration) IsKind ¶ added in v0.17.0
func (adc *AudioDeviceConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*AudioDeviceConfiguration) String ¶ added in v0.17.0
func (adc *AudioDeviceConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type AudioDeviceConfigurationProvider ¶ added in v0.17.0
type AudioDeviceConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
AudioDeviceConfigurationProvider is accepted wherever a VZAudioDeviceConfiguration (or one of its subclasses) is expected.
type AudioInputStreamSource ¶ added in v0.17.0
AudioInputStreamSource is an idiomatic wrapper over the Objective-C class VZAudioInputStreamSource.
AudioInputStreamSource is an abstract base — you do not construct it directly. Construct one of HostAudioInputStreamSource and pass it where a AudioInputStreamSource is accepted.
The base class for an audio input stream source.
func AudioInputStreamSourceFromID ¶ added in v0.17.0
func AudioInputStreamSourceFromID(id objc.ID) *AudioInputStreamSource
AudioInputStreamSourceFromID adopts an existing Objective-C object as a AudioInputStreamSource (nil for 0), retaining it and registering a release finalizer.
func (*AudioInputStreamSource) Description ¶ added in v0.17.0
func (aiss *AudioInputStreamSource) Description() string
Description returns the object's -description text.
func (*AudioInputStreamSource) IsEqual ¶ added in v0.17.0
func (aiss *AudioInputStreamSource) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*AudioInputStreamSource) IsKind ¶ added in v0.17.0
func (aiss *AudioInputStreamSource) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*AudioInputStreamSource) String ¶ added in v0.17.0
func (aiss *AudioInputStreamSource) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type AudioInputStreamSourceProvider ¶ added in v0.17.0
type AudioInputStreamSourceProvider interface {
objref.Object
// contains filtered or unexported methods
}
AudioInputStreamSourceProvider is accepted wherever a VZAudioInputStreamSource (or one of its subclasses) is expected.
type AudioOutputStreamSink ¶ added in v0.17.0
AudioOutputStreamSink is an idiomatic wrapper over the Objective-C class VZAudioOutputStreamSink.
AudioOutputStreamSink is an abstract base — you do not construct it directly. Construct one of HostAudioOutputStreamSink and pass it where a AudioOutputStreamSink is accepted.
The base class for an audio output stream sink.
func AudioOutputStreamSinkFromID ¶ added in v0.17.0
func AudioOutputStreamSinkFromID(id objc.ID) *AudioOutputStreamSink
AudioOutputStreamSinkFromID adopts an existing Objective-C object as a AudioOutputStreamSink (nil for 0), retaining it and registering a release finalizer.
func (*AudioOutputStreamSink) Description ¶ added in v0.17.0
func (aoss *AudioOutputStreamSink) Description() string
Description returns the object's -description text.
func (*AudioOutputStreamSink) IsEqual ¶ added in v0.17.0
func (aoss *AudioOutputStreamSink) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*AudioOutputStreamSink) IsKind ¶ added in v0.17.0
func (aoss *AudioOutputStreamSink) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*AudioOutputStreamSink) String ¶ added in v0.17.0
func (aoss *AudioOutputStreamSink) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type AudioOutputStreamSinkProvider ¶ added in v0.17.0
type AudioOutputStreamSinkProvider interface {
objref.Object
// contains filtered or unexported methods
}
AudioOutputStreamSinkProvider is accepted wherever a VZAudioOutputStreamSink (or one of its subclasses) is expected.
type BootLoader ¶ added in v0.17.0
BootLoader is an idiomatic wrapper over the Objective-C class VZBootLoader.
BootLoader is an abstract base — you do not construct it directly. Construct one of EFIBootLoader, LinuxBootLoader, MacOSBootLoader and pass it where a BootLoader is accepted.
The base class that defines the management of the initial process of the guest system.
func BootLoaderFromID ¶ added in v0.17.0
func BootLoaderFromID(id objc.ID) *BootLoader
BootLoaderFromID adopts an existing Objective-C object as a BootLoader (nil for 0), retaining it and registering a release finalizer.
func (*BootLoader) Description ¶ added in v0.17.0
func (bl *BootLoader) Description() string
Description returns the object's -description text.
func (*BootLoader) IsEqual ¶ added in v0.17.0
func (bl *BootLoader) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*BootLoader) IsKind ¶ added in v0.17.0
func (bl *BootLoader) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*BootLoader) String ¶ added in v0.17.0
func (bl *BootLoader) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type BootLoaderProvider ¶ added in v0.17.0
BootLoaderProvider is accepted wherever a VZBootLoader (or one of its subclasses) is expected.
type BridgedNetworkDeviceAttachment ¶ added in v0.17.0
type BridgedNetworkDeviceAttachment struct {
NetworkDeviceAttachment
}
BridgedNetworkDeviceAttachment is an idiomatic wrapper over the Objective-C class VZBridgedNetworkDeviceAttachment.
It embeds NetworkDeviceAttachment, promoting that type's methods.
A network device that interacts directly with a physical network interface on the host computer.
func BridgedNetworkDeviceAttachmentFromID ¶ added in v0.17.0
func BridgedNetworkDeviceAttachmentFromID(id objc.ID) *BridgedNetworkDeviceAttachment
BridgedNetworkDeviceAttachmentFromID adopts an existing Objective-C object as a BridgedNetworkDeviceAttachment (nil for 0), retaining it and registering a release finalizer.
func NewBridgedNetworkDeviceAttachmentWithInterface ¶ added in v0.17.0
func NewBridgedNetworkDeviceAttachmentWithInterface(interface_ *BridgedNetworkInterface) *BridgedNetworkDeviceAttachment
NewBridgedNetworkDeviceAttachmentWithInterface creates the attachment from a bridged network interface object.
func (*BridgedNetworkDeviceAttachment) Interface ¶ added in v0.17.0
func (bnda *BridgedNetworkDeviceAttachment) Interface() *BridgedNetworkInterface
Interface returns the interface.
type BridgedNetworkInterface ¶ added in v0.17.0
BridgedNetworkInterface is an idiomatic wrapper over the Objective-C class VZBridgedNetworkInterface.
An object that identifies the supported network interfaces of the host computer.
func BridgedNetworkInterfaceFromID ¶ added in v0.17.0
func BridgedNetworkInterfaceFromID(id objc.ID) *BridgedNetworkInterface
BridgedNetworkInterfaceFromID adopts an existing Objective-C object as a BridgedNetworkInterface (nil for 0), retaining it and registering a release finalizer.
func NetworkInterfaces ¶ added in v0.17.0
func NetworkInterfaces() []*BridgedNetworkInterface
NetworkInterfaces returns the list of network interfaces available for bridging.
NetworkInterfaces returns the collection as a Go slice.
func NewBridgedNetworkInterface ¶ added in v0.17.0
func NewBridgedNetworkInterface() *BridgedNetworkInterface
NewBridgedNetworkInterface creates a new BridgedNetworkInterface.
func (*BridgedNetworkInterface) Description ¶ added in v0.17.0
func (bni *BridgedNetworkInterface) Description() string
Description returns the object's -description text.
func (*BridgedNetworkInterface) Identifier ¶ added in v0.17.0
func (bni *BridgedNetworkInterface) Identifier() string
Identifier returns the unique identifier for this interface. The identifier is the BSD name associated with the interface (e.g. "en0").
func (*BridgedNetworkInterface) IsEqual ¶ added in v0.17.0
func (bni *BridgedNetworkInterface) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*BridgedNetworkInterface) IsKind ¶ added in v0.17.0
func (bni *BridgedNetworkInterface) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*BridgedNetworkInterface) LocalizedDisplayName ¶ added in v0.17.0
func (bni *BridgedNetworkInterface) LocalizedDisplayName() string
LocalizedDisplayName returns a display name if available (e.g. "Ethernet").
func (*BridgedNetworkInterface) String ¶ added in v0.17.0
func (bni *BridgedNetworkInterface) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type CGLCPContextPriorityRequest ¶
type CGLCPContextPriorityRequest int32
const ( KCGLCPContextPriorityRequestHigh CGLCPContextPriorityRequest = 0 KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1 KCGLCPContextPriorityRequestLow CGLCPContextPriorityRequest = 2 )
func (CGLCPContextPriorityRequest) String ¶
func (e CGLCPContextPriorityRequest) String() string
String returns the CGLCPContextPriorityRequest constant's name, or its numeric form when the value is not a known constant.
type ConsoleDevice ¶ added in v0.17.0
ConsoleDevice is an idiomatic wrapper over the Objective-C class VZConsoleDevice.
ConsoleDevice is an abstract base — you do not construct it directly. Construct one of VirtioConsoleDevice and pass it where a ConsoleDevice is accepted.
A class that represents a console device in a VM.
func ConsoleDeviceFromID ¶ added in v0.17.0
func ConsoleDeviceFromID(id objc.ID) *ConsoleDevice
ConsoleDeviceFromID adopts an existing Objective-C object as a ConsoleDevice (nil for 0), retaining it and registering a release finalizer.
func (*ConsoleDevice) Description ¶ added in v0.17.0
func (cd *ConsoleDevice) Description() string
Description returns the object's -description text.
func (*ConsoleDevice) IsEqual ¶ added in v0.17.0
func (cd *ConsoleDevice) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ConsoleDevice) IsKind ¶ added in v0.17.0
func (cd *ConsoleDevice) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ConsoleDevice) String ¶ added in v0.17.0
func (cd *ConsoleDevice) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type ConsoleDeviceConfiguration ¶ added in v0.17.0
ConsoleDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZConsoleDeviceConfiguration.
ConsoleDeviceConfiguration is an abstract base — you do not construct it directly. Construct one of VirtioConsoleDeviceConfiguration and pass it where a ConsoleDeviceConfiguration is accepted.
The base class for a console device configuration.
func ConsoleDeviceConfigurationFromID ¶ added in v0.17.0
func ConsoleDeviceConfigurationFromID(id objc.ID) *ConsoleDeviceConfiguration
ConsoleDeviceConfigurationFromID adopts an existing Objective-C object as a ConsoleDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*ConsoleDeviceConfiguration) Description ¶ added in v0.17.0
func (cdc *ConsoleDeviceConfiguration) Description() string
Description returns the object's -description text.
func (*ConsoleDeviceConfiguration) IsEqual ¶ added in v0.17.0
func (cdc *ConsoleDeviceConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ConsoleDeviceConfiguration) IsKind ¶ added in v0.17.0
func (cdc *ConsoleDeviceConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ConsoleDeviceConfiguration) String ¶ added in v0.17.0
func (cdc *ConsoleDeviceConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type ConsoleDeviceConfigurationProvider ¶ added in v0.17.0
type ConsoleDeviceConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
ConsoleDeviceConfigurationProvider is accepted wherever a VZConsoleDeviceConfiguration (or one of its subclasses) is expected.
type ConsoleDeviceProvider ¶ added in v0.17.0
ConsoleDeviceProvider is accepted wherever a VZConsoleDevice (or one of its subclasses) is expected.
type ConsolePortConfiguration ¶ added in v0.17.0
ConsolePortConfiguration is an idiomatic wrapper over the Objective-C class VZConsolePortConfiguration.
ConsolePortConfiguration is an abstract base — you do not construct it directly. Construct one of VirtioConsolePortConfiguration and pass it where a ConsolePortConfiguration is accepted.
The base class for a console port configuration.
func ConsolePortConfigurationFromID ¶ added in v0.17.0
func ConsolePortConfigurationFromID(id objc.ID) *ConsolePortConfiguration
ConsolePortConfigurationFromID adopts an existing Objective-C object as a ConsolePortConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*ConsolePortConfiguration) Attachment ¶ added in v0.17.0
func (cpc *ConsolePortConfiguration) Attachment() *SerialPortAttachment
Attachment returns the attachment.
func (*ConsolePortConfiguration) Description ¶ added in v0.17.0
func (cpc *ConsolePortConfiguration) Description() string
Description returns the object's -description text.
func (*ConsolePortConfiguration) IsEqual ¶ added in v0.17.0
func (cpc *ConsolePortConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ConsolePortConfiguration) IsKind ¶ added in v0.17.0
func (cpc *ConsolePortConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ConsolePortConfiguration) String ¶ added in v0.17.0
func (cpc *ConsolePortConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ConsolePortConfiguration) WithAttachment ¶ added in v0.17.0
func (cpc *ConsolePortConfiguration) WithAttachment(attachment SerialPortAttachmentProvider) *ConsolePortConfiguration
WithAttachment sets the serial port attachment.
type ConsolePortConfigurationProvider ¶ added in v0.17.0
type ConsolePortConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
ConsolePortConfigurationProvider is accepted wherever a VZConsolePortConfiguration (or one of its subclasses) is expected.
type CustomVirtioDevice ¶
CustomVirtioDevice is an idiomatic wrapper over the Objective-C class VZCustomVirtioDevice.
An interface that represents a custom Virtio device that you provide the implementation for.
func CustomVirtioDeviceFromID ¶
func CustomVirtioDeviceFromID(id objc.ID) *CustomVirtioDevice
CustomVirtioDeviceFromID adopts an existing Objective-C object as a CustomVirtioDevice (nil for 0), retaining it and registering a release finalizer.
func NewCustomVirtioDevice ¶
func NewCustomVirtioDevice() *CustomVirtioDevice
NewCustomVirtioDevice creates a new CustomVirtioDevice.
func (*CustomVirtioDevice) Description ¶
func (cvd *CustomVirtioDevice) Description() string
Description returns the object's -description text.
func (*CustomVirtioDevice) DeviceQueue ¶
func (cvd *CustomVirtioDevice) DeviceQueue() *foundation.Object
DeviceQueue returns the dispatch queue this device uses. The framework performs all operations on `VZCustomVirtioDevice` and “VZCustomVirtioDeviceDelegate“ on this serial queue.
func (*CustomVirtioDevice) GuestMemoryMappingAtPhysicalAddressLength ¶
func (cvd *CustomVirtioDevice) GuestMemoryMappingAtPhysicalAddressLength(physicalAddress uint64, length int) *GuestMemoryMapping
GuestMemoryMappingAtPhysicalAddressLength returns guest memory mapping referred to by physicalAddress and length.
func (*CustomVirtioDevice) IsEqual ¶
func (cvd *CustomVirtioDevice) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*CustomVirtioDevice) IsKind ¶
func (cvd *CustomVirtioDevice) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*CustomVirtioDevice) NegotiatedFeatures ¶
func (cvd *CustomVirtioDevice) NegotiatedFeatures() *NegotiatedVirtioFeatureSet
NegotiatedFeatures returns the set of features that the driver and the device have successfully negotiated, or `nil` if no feature negotiation has taken place. The value is only valid after the framework calls “VZCustomVirtioDeviceDelegate/customVirtioDeviceDidAcceptDriverOk:“. The framework calls this method when the guest driver sets `DRIVER_OK`.
func (*CustomVirtioDevice) QueueAtIndex ¶
func (cvd *CustomVirtioDevice) QueueAtIndex(index uint16) *VirtioQueue
QueueAtIndex returns Virtio queue at the specified index that belongs to this device.
func (*CustomVirtioDevice) RequestDeviceReset ¶
func (cvd *CustomVirtioDevice) RequestDeviceReset()
RequestDeviceReset a request to reset the device.
func (*CustomVirtioDevice) SharedMemoryRegions ¶
func (cvd *CustomVirtioDevice) SharedMemoryRegions() []*VirtioSharedMemoryRegion
SharedMemoryRegions returns an array of shared memory regions that this device exposes to the guest. ## See Also - “VZVirtioSharedMemoryRegion“
SharedMemoryRegions returns the collection as a Go slice.
func (*CustomVirtioDevice) String ¶
func (cvd *CustomVirtioDevice) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*CustomVirtioDevice) UpdateDeviceSpecificConfiguration ¶
func (cvd *CustomVirtioDevice) UpdateDeviceSpecificConfiguration(ctx context.Context, newConfiguration *VirtioDeviceSpecificConfiguration) error
UpdateDeviceSpecificConfiguration updates the device’s device-specific configuration.
UpdateDeviceSpecificConfiguration blocks until the operation completes or ctx is cancelled.
func (*CustomVirtioDevice) WithDelegate ¶
func (cvd *CustomVirtioDevice) WithDelegate(delegate CustomVirtioDeviceDelegate) *CustomVirtioDevice
WithDelegate sets the device’s delegate.
type CustomVirtioDeviceConfiguration ¶
CustomVirtioDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZCustomVirtioDeviceConfiguration.
An object that defines a custom Virtio Device configuration.
func CustomVirtioDeviceConfigurationFromID ¶
func CustomVirtioDeviceConfigurationFromID(id objc.ID) *CustomVirtioDeviceConfiguration
CustomVirtioDeviceConfigurationFromID adopts an existing Objective-C object as a CustomVirtioDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func NewCustomVirtioDeviceConfiguration ¶
func NewCustomVirtioDeviceConfiguration() *CustomVirtioDeviceConfiguration
NewCustomVirtioDeviceConfiguration creates a new CustomVirtioDeviceConfiguration.
func (*CustomVirtioDeviceConfiguration) Description ¶
func (cvdc *CustomVirtioDeviceConfiguration) Description() string
Description returns the object's -description text.
func (*CustomVirtioDeviceConfiguration) DeviceID ¶
func (cvdc *CustomVirtioDeviceConfiguration) DeviceID() uint16
DeviceID returns the Virtio device ID of the device.
func (*CustomVirtioDeviceConfiguration) DeviceSpecificConfiguration ¶
func (cvdc *CustomVirtioDeviceConfiguration) DeviceSpecificConfiguration() *VirtioDeviceSpecificConfiguration
DeviceSpecificConfiguration returns the device-specific configuration for the device.
func (*CustomVirtioDeviceConfiguration) IsEqual ¶
func (cvdc *CustomVirtioDeviceConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*CustomVirtioDeviceConfiguration) IsKind ¶
func (cvdc *CustomVirtioDeviceConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*CustomVirtioDeviceConfiguration) MandatoryFeatures ¶
func (cvdc *CustomVirtioDeviceConfiguration) MandatoryFeatures() *VirtioFeatureSet
MandatoryFeatures returns the set of mandatory features that the device offers and the guest must accept. The mandatory features are the set of features that the device offers and the guest must accept. The framework won't successfully initialize the device if the guest driver fails to accept this set of features. The feature bit `VIRTIO_F_VERSION_1` is always set to `1` internally by default.
func (*CustomVirtioDeviceConfiguration) OptionalFeatures ¶
func (cvdc *CustomVirtioDeviceConfiguration) OptionalFeatures() *VirtioFeatureSet
OptionalFeatures returns the set of optional features that the device offers. The optional features are the set of features that the guest driver may or may not accept, see “VZCustomVirtioDevice/negotiatedFeatures“ for the set of features that the guest accepts. A few feature bits are always set internally by default for optimal performance.
func (*CustomVirtioDeviceConfiguration) PCIClassID ¶
func (cvdc *CustomVirtioDeviceConfiguration) PCIClassID() uint8
PCIClassID returns the PCI class ID of the device.
func (*CustomVirtioDeviceConfiguration) PCISubclassID ¶
func (cvdc *CustomVirtioDeviceConfiguration) PCISubclassID() uint8
PCISubclassID returns the PCI subclass ID of the device.
func (*CustomVirtioDeviceConfiguration) Provider ¶
func (cvdc *CustomVirtioDeviceConfiguration) Provider() *CustomVirtioDeviceProvider
Provider returns the custom Virtio device provider. This data defines how the virtual device is implemented. ## See Also - “VZCustomVirtioDeviceDelegateProvider“
func (*CustomVirtioDeviceConfiguration) SharedMemoryRegions ¶
func (cvdc *CustomVirtioDeviceConfiguration) SharedMemoryRegions() []*VirtioSharedMemoryRegionConfiguration
SharedMemoryRegions returns the list of shared memory regions. The list is empty by default.
SharedMemoryRegions returns the collection as a Go slice.
func (*CustomVirtioDeviceConfiguration) String ¶
func (cvdc *CustomVirtioDeviceConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*CustomVirtioDeviceConfiguration) SupportsSaveRestore ¶
func (cvdc *CustomVirtioDeviceConfiguration) SupportsSaveRestore() bool
SupportsSaveRestore reports whether the device supports save/restore. This property defaults to `NO`. Set to `YES` if the device supports save/restore. If `supportsSaveRestore` is `YES` but the delegate set on `VZCustomVirtioDevice` does not actually implement the save/restore methods, an exception will be raised.
func (*CustomVirtioDeviceConfiguration) VirtioQueueCount ¶
func (cvdc *CustomVirtioDeviceConfiguration) VirtioQueueCount() uint16
VirtioQueueCount returns the number of virtqueues (Virtio queues) on this device.
func (*CustomVirtioDeviceConfiguration) WithDeviceID ¶
func (cvdc *CustomVirtioDeviceConfiguration) WithDeviceID(deviceID uint16) *CustomVirtioDeviceConfiguration
WithDeviceID sets the Virtio device ID of the device.
func (*CustomVirtioDeviceConfiguration) WithDeviceSpecificConfiguration ¶
func (cvdc *CustomVirtioDeviceConfiguration) WithDeviceSpecificConfiguration(deviceSpecificConfiguration *VirtioDeviceSpecificConfiguration) *CustomVirtioDeviceConfiguration
WithDeviceSpecificConfiguration sets the device-specific configuration for the device.
func (*CustomVirtioDeviceConfiguration) WithPCIClassID ¶
func (cvdc *CustomVirtioDeviceConfiguration) WithPCIClassID(pciClassID uint8) *CustomVirtioDeviceConfiguration
WithPCIClassID sets the PCI class ID of the device.
func (*CustomVirtioDeviceConfiguration) WithPCISubclassID ¶
func (cvdc *CustomVirtioDeviceConfiguration) WithPCISubclassID(pciSubclassID uint8) *CustomVirtioDeviceConfiguration
WithPCISubclassID sets the PCI subclass ID of the device.
func (*CustomVirtioDeviceConfiguration) WithProvider ¶
func (cvdc *CustomVirtioDeviceConfiguration) WithProvider(provider CustomVirtioDeviceProviderProvider) *CustomVirtioDeviceConfiguration
WithProvider sets the custom Virtio device provider.
func (*CustomVirtioDeviceConfiguration) WithSharedMemoryRegions ¶
func (cvdc *CustomVirtioDeviceConfiguration) WithSharedMemoryRegions(items ...*VirtioSharedMemoryRegionConfiguration) *CustomVirtioDeviceConfiguration
WithSharedMemoryRegions sets the list of shared memory regions.
func (*CustomVirtioDeviceConfiguration) WithSupportsSaveRestore ¶
func (cvdc *CustomVirtioDeviceConfiguration) WithSupportsSaveRestore(supportsSaveRestore bool) *CustomVirtioDeviceConfiguration
WithSupportsSaveRestore sets whether the device supports save/restore. This property defaults to `NO`. Set to `YES` if the device supports save/restore. If `supportsSaveRestore` is `YES` but the delegate set on `VZCustomVirtioDevice` does not actually implement the save/restore methods, an exception will be raised.
func (*CustomVirtioDeviceConfiguration) WithVirtioQueueCount ¶
func (cvdc *CustomVirtioDeviceConfiguration) WithVirtioQueueCount(virtioQueueCount uint16) *CustomVirtioDeviceConfiguration
WithVirtioQueueCount sets the number of virtqueues (Virtio queues) on this device.
type CustomVirtioDeviceConfigurationDelegate ¶
type CustomVirtioDeviceConfigurationDelegate interface {
}
CustomVirtioDeviceConfigurationDelegate is the Go form of the Objective-C protocol VZCustomVirtioDeviceConfigurationDelegate.
type CustomVirtioDeviceDelegate ¶
type CustomVirtioDeviceDelegate interface {
}
CustomVirtioDeviceDelegate receives the callbacks of the Objective-C protocol VZCustomVirtioDeviceDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (CustomVirtioDeviceDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type CustomVirtioDeviceDelegateCustomVirtioDeviceDidAcceptDriverOkHandler ¶
type CustomVirtioDeviceDelegateCustomVirtioDeviceDidAcceptDriverOkHandler interface {
CustomVirtioDeviceDidAcceptDriverOk(device *CustomVirtioDevice)
}
CustomVirtioDeviceDelegateCustomVirtioDeviceDidAcceptDriverOkHandler is the optional VZCustomVirtioDeviceDelegate method customVirtioDeviceDidAcceptDriverOk:. Implement it on a CustomVirtioDeviceDelegate value to receive that callback; a value without it is simply never sent one.
type CustomVirtioDeviceDelegateCustomVirtioDeviceDidReceiveNotificationForQueueHandler ¶
type CustomVirtioDeviceDelegateCustomVirtioDeviceDidReceiveNotificationForQueueHandler interface {
CustomVirtioDeviceDidReceiveNotificationForQueue(device *CustomVirtioDevice, queue *VirtioQueue)
}
CustomVirtioDeviceDelegateCustomVirtioDeviceDidReceiveNotificationForQueueHandler is the optional VZCustomVirtioDeviceDelegate method customVirtioDevice:didReceiveNotificationForQueue:. Implement it on a CustomVirtioDeviceDelegate value to receive that callback; a value without it is simply never sent one.
type CustomVirtioDeviceDelegateCustomVirtioDeviceShouldRestoreSaveStateHandler ¶
type CustomVirtioDeviceDelegateCustomVirtioDeviceShouldRestoreSaveStateHandler interface {
CustomVirtioDeviceShouldRestoreSaveState(device *CustomVirtioDevice, saveState []byte) bool
}
CustomVirtioDeviceDelegateCustomVirtioDeviceShouldRestoreSaveStateHandler is the optional VZCustomVirtioDeviceDelegate method customVirtioDeviceShouldRestore:saveState:. Implement it on a CustomVirtioDeviceDelegate value to receive that callback; a value without it is simply never sent one.
type CustomVirtioDeviceDelegateCustomVirtioDeviceWillPauseHandler ¶
type CustomVirtioDeviceDelegateCustomVirtioDeviceWillPauseHandler interface {
CustomVirtioDeviceWillPause(device *CustomVirtioDevice)
}
CustomVirtioDeviceDelegateCustomVirtioDeviceWillPauseHandler is the optional VZCustomVirtioDeviceDelegate method customVirtioDeviceWillPause:. Implement it on a CustomVirtioDeviceDelegate value to receive that callback; a value without it is simply never sent one.
type CustomVirtioDeviceDelegateCustomVirtioDeviceWillResetHandler ¶
type CustomVirtioDeviceDelegateCustomVirtioDeviceWillResetHandler interface {
CustomVirtioDeviceWillReset(device *CustomVirtioDevice)
}
CustomVirtioDeviceDelegateCustomVirtioDeviceWillResetHandler is the optional VZCustomVirtioDeviceDelegate method customVirtioDeviceWillReset:. Implement it on a CustomVirtioDeviceDelegate value to receive that callback; a value without it is simply never sent one.
type CustomVirtioDeviceDelegateCustomVirtioDeviceWillResumeHandler ¶
type CustomVirtioDeviceDelegateCustomVirtioDeviceWillResumeHandler interface {
CustomVirtioDeviceWillResume(device *CustomVirtioDevice)
}
CustomVirtioDeviceDelegateCustomVirtioDeviceWillResumeHandler is the optional VZCustomVirtioDeviceDelegate method customVirtioDeviceWillResume:. Implement it on a CustomVirtioDeviceDelegate value to receive that callback; a value without it is simply never sent one.
type CustomVirtioDeviceDelegateCustomVirtioDeviceWillStopHandler ¶
type CustomVirtioDeviceDelegateCustomVirtioDeviceWillStopHandler interface {
CustomVirtioDeviceWillStop(device *CustomVirtioDevice)
}
CustomVirtioDeviceDelegateCustomVirtioDeviceWillStopHandler is the optional VZCustomVirtioDeviceDelegate method customVirtioDeviceWillStop:. Implement it on a CustomVirtioDeviceDelegate value to receive that callback; a value without it is simply never sent one.
type CustomVirtioDeviceDelegateProvider ¶
type CustomVirtioDeviceDelegateProvider struct {
CustomVirtioDeviceProvider
}
CustomVirtioDeviceDelegateProvider is an idiomatic wrapper over the Objective-C class VZCustomVirtioDeviceDelegateProvider.
It embeds CustomVirtioDeviceProvider, promoting that type's methods.
A custom Virtio Device provider for devices that implement a custom Virtio device configuration delegate.
func CustomVirtioDeviceDelegateProviderFromID ¶
func CustomVirtioDeviceDelegateProviderFromID(id objc.ID) *CustomVirtioDeviceDelegateProvider
CustomVirtioDeviceDelegateProviderFromID adopts an existing Objective-C object as a CustomVirtioDeviceDelegateProvider (nil for 0), retaining it and registering a release finalizer.
func NewCustomVirtioDeviceDelegateProvider ¶
func NewCustomVirtioDeviceDelegateProvider() *CustomVirtioDeviceDelegateProvider
NewCustomVirtioDeviceDelegateProvider creates a new CustomVirtioDeviceDelegateProvider.
func (*CustomVirtioDeviceDelegateProvider) DeviceQueue ¶
func (cvddp *CustomVirtioDeviceDelegateProvider) DeviceQueue() *foundation.Object
DeviceQueue returns the queue the framework uses to synchronize operations for this device.
type CustomVirtioDeviceProvider ¶
CustomVirtioDeviceProvider is an idiomatic wrapper over the Objective-C class VZCustomVirtioDeviceProvider.
CustomVirtioDeviceProvider is an abstract base — you do not construct it directly. Construct one of CustomVirtioDeviceDelegateProvider and pass it where a CustomVirtioDeviceProvider is accepted.
A base class that describes the provider of a custom Virtio device.
func CustomVirtioDeviceProviderFromID ¶
func CustomVirtioDeviceProviderFromID(id objc.ID) *CustomVirtioDeviceProvider
CustomVirtioDeviceProviderFromID adopts an existing Objective-C object as a CustomVirtioDeviceProvider (nil for 0), retaining it and registering a release finalizer.
func (*CustomVirtioDeviceProvider) Description ¶
func (cvdp *CustomVirtioDeviceProvider) Description() string
Description returns the object's -description text.
func (*CustomVirtioDeviceProvider) IsEqual ¶
func (cvdp *CustomVirtioDeviceProvider) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*CustomVirtioDeviceProvider) IsKind ¶
func (cvdp *CustomVirtioDeviceProvider) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*CustomVirtioDeviceProvider) String ¶
func (cvdp *CustomVirtioDeviceProvider) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type CustomVirtioDeviceProviderProvider ¶
type CustomVirtioDeviceProviderProvider interface {
objref.Object
// contains filtered or unexported methods
}
CustomVirtioDeviceProviderProvider is accepted wherever a VZCustomVirtioDeviceProvider (or one of its subclasses) is expected.
type DirectoryShare ¶ added in v0.17.0
type DirectoryShare struct {
}
DirectoryShare is an idiomatic wrapper over the Objective-C class VZDirectoryShare.
DirectoryShare is an abstract base — you do not construct it directly. Construct one of LinuxRosettaDirectoryShare, MultipleDirectoryShare, SingleDirectoryShare and pass it where a DirectoryShare is accepted.
The base class for a directory share.
func DirectoryShareFromID ¶ added in v0.17.0
func DirectoryShareFromID(id objc.ID) *DirectoryShare
DirectoryShareFromID adopts an existing Objective-C object as a DirectoryShare (nil for 0), retaining it and registering a release finalizer.
func (*DirectoryShare) Description ¶ added in v0.17.0
func (ds *DirectoryShare) Description() string
Description returns the object's -description text.
func (*DirectoryShare) IsEqual ¶ added in v0.17.0
func (ds *DirectoryShare) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*DirectoryShare) IsKind ¶ added in v0.17.0
func (ds *DirectoryShare) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*DirectoryShare) String ¶ added in v0.17.0
func (ds *DirectoryShare) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type DirectoryShareProvider ¶ added in v0.17.0
DirectoryShareProvider is accepted wherever a VZDirectoryShare (or one of its subclasses) is expected.
type DirectorySharingDevice ¶ added in v0.17.0
DirectorySharingDevice is an idiomatic wrapper over the Objective-C class VZDirectorySharingDevice.
DirectorySharingDevice is an abstract base — you do not construct it directly. Construct one of VirtioFileSystemDevice and pass it where a DirectorySharingDevice is accepted.
The base class that represents a directory sharing device in a VM.
func DirectorySharingDeviceFromID ¶ added in v0.17.0
func DirectorySharingDeviceFromID(id objc.ID) *DirectorySharingDevice
DirectorySharingDeviceFromID adopts an existing Objective-C object as a DirectorySharingDevice (nil for 0), retaining it and registering a release finalizer.
func (*DirectorySharingDevice) Description ¶ added in v0.17.0
func (dsd *DirectorySharingDevice) Description() string
Description returns the object's -description text.
func (*DirectorySharingDevice) IsEqual ¶ added in v0.17.0
func (dsd *DirectorySharingDevice) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*DirectorySharingDevice) IsKind ¶ added in v0.17.0
func (dsd *DirectorySharingDevice) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*DirectorySharingDevice) String ¶ added in v0.17.0
func (dsd *DirectorySharingDevice) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type DirectorySharingDeviceConfiguration ¶ added in v0.17.0
DirectorySharingDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZDirectorySharingDeviceConfiguration.
DirectorySharingDeviceConfiguration is an abstract base — you do not construct it directly. Construct one of VirtioFileSystemDeviceConfiguration and pass it where a DirectorySharingDeviceConfiguration is accepted.
The base class for a directory sharing device configuration.
func DirectorySharingDeviceConfigurationFromID ¶ added in v0.17.0
func DirectorySharingDeviceConfigurationFromID(id objc.ID) *DirectorySharingDeviceConfiguration
DirectorySharingDeviceConfigurationFromID adopts an existing Objective-C object as a DirectorySharingDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*DirectorySharingDeviceConfiguration) Description ¶ added in v0.17.0
func (dsdc *DirectorySharingDeviceConfiguration) Description() string
Description returns the object's -description text.
func (*DirectorySharingDeviceConfiguration) IsEqual ¶ added in v0.17.0
func (dsdc *DirectorySharingDeviceConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*DirectorySharingDeviceConfiguration) IsKind ¶ added in v0.17.0
func (dsdc *DirectorySharingDeviceConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*DirectorySharingDeviceConfiguration) String ¶ added in v0.17.0
func (dsdc *DirectorySharingDeviceConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type DirectorySharingDeviceConfigurationProvider ¶ added in v0.17.0
type DirectorySharingDeviceConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
DirectorySharingDeviceConfigurationProvider is accepted wherever a VZDirectorySharingDeviceConfiguration (or one of its subclasses) is expected.
type DirectorySharingDeviceProvider ¶ added in v0.17.0
type DirectorySharingDeviceProvider interface {
objref.Object
// contains filtered or unexported methods
}
DirectorySharingDeviceProvider is accepted wherever a VZDirectorySharingDevice (or one of its subclasses) is expected.
type DiskBlockDeviceStorageDeviceAttachment ¶ added in v0.17.0
type DiskBlockDeviceStorageDeviceAttachment struct {
StorageDeviceAttachment
}
DiskBlockDeviceStorageDeviceAttachment is an idiomatic wrapper over the Objective-C class VZDiskBlockDeviceStorageDeviceAttachment.
It embeds StorageDeviceAttachment, promoting that type's methods.
A storage device attachment that uses a disk to store data.
func DiskBlockDeviceStorageDeviceAttachmentFromID ¶ added in v0.17.0
func DiskBlockDeviceStorageDeviceAttachmentFromID(id objc.ID) *DiskBlockDeviceStorageDeviceAttachment
DiskBlockDeviceStorageDeviceAttachmentFromID adopts an existing Objective-C object as a DiskBlockDeviceStorageDeviceAttachment (nil for 0), retaining it and registering a release finalizer.
func NewDiskBlockDeviceStorageDeviceAttachmentWithFileHandleReadOnlySynchronizationMode ¶ added in v0.17.0
func NewDiskBlockDeviceStorageDeviceAttachmentWithFileHandleReadOnlySynchronizationMode(fileHandle obj.Object, readOnly bool, synchronizationMode DiskSynchronizationMode) (result *DiskBlockDeviceStorageDeviceAttachment, err error)
NewDiskBlockDeviceStorageDeviceAttachmentWithFileHandleReadOnlySynchronizationMode 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 (*DiskBlockDeviceStorageDeviceAttachment) FileHandle ¶ added in v0.17.0
func (dbdsda *DiskBlockDeviceStorageDeviceAttachment) FileHandle() *foundation.FileHandle
FileHandle returns file handle to the underlying disk used for storage by the attachment.
func (*DiskBlockDeviceStorageDeviceAttachment) IsReadOnly ¶ added in v0.17.0
func (dbdsda *DiskBlockDeviceStorageDeviceAttachment) IsReadOnly() bool
IsReadOnly reports whether the underlying disk attachment is read-only.
func (*DiskBlockDeviceStorageDeviceAttachment) SynchronizationMode ¶ added in v0.17.0
func (dbdsda *DiskBlockDeviceStorageDeviceAttachment) SynchronizationMode() DiskSynchronizationMode
SynchronizationMode returns the mode in which the disk image synchronizes data with the underlying storage device.
type DiskImageCachingMode ¶ added in v0.17.0
type DiskImageCachingMode int64
An integer that describes the disk image caching mode.
const ( // Allows the virtualization framework to automatically determine whether to enable data caching. DiskImageCachingModeAutomatic DiskImageCachingMode = 0 // Disables data caching. DiskImageCachingModeUncached DiskImageCachingMode = 1 // Enables data caching. DiskImageCachingModeCached DiskImageCachingMode = 2 )
func (DiskImageCachingMode) String ¶ added in v0.17.0
func (e DiskImageCachingMode) String() string
String returns the DiskImageCachingMode constant's name, or its numeric form when the value is not a known constant.
type DiskImageStorageDeviceAttachment ¶ added in v0.17.0
type DiskImageStorageDeviceAttachment struct {
StorageDeviceAttachment
}
DiskImageStorageDeviceAttachment is an idiomatic wrapper over the Objective-C class VZDiskImageStorageDeviceAttachment.
It embeds StorageDeviceAttachment, promoting that type's methods.
A device that stores content in a disk image.
func DiskImageStorageDeviceAttachmentFromID ¶ added in v0.17.0
func DiskImageStorageDeviceAttachmentFromID(id objc.ID) *DiskImageStorageDeviceAttachment
DiskImageStorageDeviceAttachmentFromID adopts an existing Objective-C object as a DiskImageStorageDeviceAttachment (nil for 0), retaining it and registering a release finalizer.
func NewDiskImageStorageDeviceAttachmentWithURLReadOnly ¶ added in v0.17.0
func NewDiskImageStorageDeviceAttachmentWithURLReadOnly(url string, readOnly bool) (result *DiskImageStorageDeviceAttachment, err error)
NewDiskImageStorageDeviceAttachmentWithURLReadOnly creates the attachment object from the specified disk image.
func NewDiskImageStorageDeviceAttachmentWithURLReadOnlyCachingModeSynchronizationMode ¶ added in v0.17.0
func NewDiskImageStorageDeviceAttachmentWithURLReadOnlyCachingModeSynchronizationMode(url string, readOnly bool, cachingMode DiskImageCachingMode, synchronizationMode DiskImageSynchronizationMode) (result *DiskImageStorageDeviceAttachment, err error)
NewDiskImageStorageDeviceAttachmentWithURLReadOnlyCachingModeSynchronizationMode initialize the attachment from a local file URL.
func (*DiskImageStorageDeviceAttachment) CachingMode ¶ added in v0.17.0
func (disda *DiskImageStorageDeviceAttachment) CachingMode() DiskImageCachingMode
CachingMode returns how disk image data is cached by the host.
func (*DiskImageStorageDeviceAttachment) IsReadOnly ¶ added in v0.17.0
func (disda *DiskImageStorageDeviceAttachment) IsReadOnly() bool
IsReadOnly reports whether the underlying disk image is read-only.
func (*DiskImageStorageDeviceAttachment) SynchronizationMode ¶ added in v0.17.0
func (disda *DiskImageStorageDeviceAttachment) SynchronizationMode() DiskImageSynchronizationMode
SynchronizationMode returns the mode in which the disk image synchronizes data with the underlying storage device.
func (*DiskImageStorageDeviceAttachment) URL ¶ added in v0.17.0
func (disda *DiskImageStorageDeviceAttachment) URL() string
URL returns URL of the underlying disk image. If the attachment was created with `initWithDiskImage:`, this is the URL of the top image in the stack.
type DiskImageSynchronizationMode ¶ added in v0.17.0
type DiskImageSynchronizationMode int64
An integer that describes the disk image synchronization mode.
const ( // Synchronizes data to the permanent storage holding the disk image. DiskImageSynchronizationModeFull DiskImageSynchronizationMode = 1 // Synchronizes data to the drive using the system’s best-effort synchronization mode. DiskImageSynchronizationModeFsync DiskImageSynchronizationMode = 2 // Disables data synchronization with the permanent storage. DiskImageSynchronizationModeNone DiskImageSynchronizationMode = 3 )
func (DiskImageSynchronizationMode) String ¶ added in v0.17.0
func (e DiskImageSynchronizationMode) String() string
String returns the DiskImageSynchronizationMode constant's name, or its numeric form when the value is not a known constant.
type DiskSynchronizationMode ¶ added in v0.17.0
type DiskSynchronizationMode int64
Values that describe the synchronization modes available to the guest OS.
const ( // Perform all synchronization operations as requested by the guest OS. DiskSynchronizationModeFull DiskSynchronizationMode = 0 // Don’t synchronize the data with the permanent storage. DiskSynchronizationModeNone DiskSynchronizationMode = 1 )
func (DiskSynchronizationMode) String ¶ added in v0.17.0
func (e DiskSynchronizationMode) String() string
String returns the DiskSynchronizationMode constant's name, or its numeric form when the value is not a known constant.
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type EFIBootLoader ¶ added in v0.17.0
type EFIBootLoader struct {
BootLoader
}
EFIBootLoader is an idiomatic wrapper over the Objective-C class VZEFIBootLoader.
It embeds BootLoader, promoting that type's methods.
The boot loader configuration the system uses to boot guest-operating systems that expect an Extensible Firmware Interface (EFI) ROM.
func EFIBootLoaderFromID ¶ added in v0.17.0
func EFIBootLoaderFromID(id objc.ID) *EFIBootLoader
EFIBootLoaderFromID adopts an existing Objective-C object as a EFIBootLoader (nil for 0), retaining it and registering a release finalizer.
func NewEFIBootLoader ¶ added in v0.17.0
func NewEFIBootLoader() *EFIBootLoader
NewEFIBootLoader creates a new EFIBootLoader.
func (*EFIBootLoader) VariableStore ¶ added in v0.17.0
func (ebl *EFIBootLoader) VariableStore() *EFIVariableStore
VariableStore returns the variable store.
func (*EFIBootLoader) WithVariableStore ¶ added in v0.17.0
func (ebl *EFIBootLoader) WithVariableStore(variableStore *EFIVariableStore) *EFIBootLoader
WithVariableStore sets the boot loader’s EFI variable store.
type EFISignature ¶
EFISignature is an idiomatic wrapper over the Objective-C class VZEFISignature.
EFISignature is an abstract base — you do not construct it directly. Construct one of EFISignatureSHA256Hash, EFISignatureX509Certificate and pass it where a EFISignature is accepted.
func EFISignatureFromID ¶
func EFISignatureFromID(id objc.ID) *EFISignature
EFISignatureFromID adopts an existing Objective-C object as a EFISignature (nil for 0), retaining it and registering a release finalizer.
func (*EFISignature) Description ¶
func (es *EFISignature) Description() string
Description returns the object's -description text.
func (*EFISignature) IsEqual ¶
func (es *EFISignature) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*EFISignature) IsKind ¶
func (es *EFISignature) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*EFISignature) String ¶
func (es *EFISignature) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type EFISignatureDatabaseConfiguration ¶
EFISignatureDatabaseConfiguration is an idiomatic wrapper over the Objective-C class VZEFISignatureDatabaseConfiguration.
A container for Unified Extensible Firmware Interface (UEFI) Secure Boot signature lists.
func EFISignatureDatabaseConfigurationFromID ¶
func EFISignatureDatabaseConfigurationFromID(id objc.ID) *EFISignatureDatabaseConfiguration
EFISignatureDatabaseConfigurationFromID adopts an existing Objective-C object as a EFISignatureDatabaseConfiguration (nil for 0), retaining it and registering a release finalizer.
func NewEFISignatureDatabaseConfigurationWithKeyExchangeKeysDbSignaturesDbxSignatures ¶
func NewEFISignatureDatabaseConfigurationWithKeyExchangeKeysDbSignaturesDbxSignatures(keyExchangeKeys []*EFISignatureList, dbSignatures []*EFISignatureList, dbxSignatures []*EFISignatureList) *EFISignatureDatabaseConfiguration
NewEFISignatureDatabaseConfigurationWithKeyExchangeKeysDbSignaturesDbxSignatures creates a signature lists container from signature list objects.
func (*EFISignatureDatabaseConfiguration) DbSignatures ¶
func (esdc *EFISignatureDatabaseConfiguration) DbSignatures() []*EFISignatureList
DbSignatures returns allowed signature database (db) entries.
DbSignatures returns the collection as a Go slice.
func (*EFISignatureDatabaseConfiguration) DbxSignatures ¶
func (esdc *EFISignatureDatabaseConfiguration) DbxSignatures() []*EFISignatureList
DbxSignatures returns forbidden signature database (dbx) entries.
DbxSignatures returns the collection as a Go slice.
func (*EFISignatureDatabaseConfiguration) Description ¶
func (esdc *EFISignatureDatabaseConfiguration) Description() string
Description returns the object's -description text.
func (*EFISignatureDatabaseConfiguration) IsEqual ¶
func (esdc *EFISignatureDatabaseConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*EFISignatureDatabaseConfiguration) IsKind ¶
func (esdc *EFISignatureDatabaseConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*EFISignatureDatabaseConfiguration) KeyExchangeKeys ¶
func (esdc *EFISignatureDatabaseConfiguration) KeyExchangeKeys() []*EFISignatureList
KeyExchangeKeys returns key Exchange Key (KEK) database entries.
KeyExchangeKeys returns the collection as a Go slice.
func (*EFISignatureDatabaseConfiguration) String ¶
func (esdc *EFISignatureDatabaseConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type EFISignatureList ¶
EFISignatureList is an idiomatic wrapper over the Objective-C class VZEFISignatureList.
A class that represents a Unified Extensible Firmware Interface (UEFI) signature list.
func EFISignatureListFromID ¶
func EFISignatureListFromID(id objc.ID) *EFISignatureList
EFISignatureListFromID adopts an existing Objective-C object as a EFISignatureList (nil for 0), retaining it and registering a release finalizer.
func NewEFISignatureListWithContentsOfURL ¶
func NewEFISignatureListWithContentsOfURL(url string) (result *EFISignatureList, err error)
NewEFISignatureListWithContentsOfURL creates a signature list from a file.
func NewEFISignatureListWithSignatures ¶
func NewEFISignatureListWithSignatures(signatures []*EFISignature) *EFISignatureList
NewEFISignatureListWithSignatures creates a signature list from the provided signatures.
func (*EFISignatureList) Description ¶
func (esl *EFISignatureList) Description() string
Description returns the object's -description text.
func (*EFISignatureList) IsEqual ¶
func (esl *EFISignatureList) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*EFISignatureList) IsKind ¶
func (esl *EFISignatureList) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*EFISignatureList) Signatures ¶
func (esl *EFISignatureList) Signatures() []*EFISignature
Signatures returns the signatures.
Signatures returns the collection as a Go slice.
func (*EFISignatureList) String ¶
func (esl *EFISignatureList) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type EFISignatureProvider ¶
EFISignatureProvider is accepted wherever a VZEFISignature (or one of its subclasses) is expected.
type EFISignatureSHA256Hash ¶
type EFISignatureSHA256Hash struct {
EFISignature
}
EFISignatureSHA256Hash is an idiomatic wrapper over the Objective-C class VZEFISignatureSHA256Hash.
It embeds EFISignature, promoting that type's methods.
A class that represents a Unified Extensible Firmware Interface (UEFI) signature based on a SHA-256 cryptographic hash.
func EFISignatureSHA256HashFromID ¶
func EFISignatureSHA256HashFromID(id objc.ID) *EFISignatureSHA256Hash
EFISignatureSHA256HashFromID adopts an existing Objective-C object as a EFISignatureSHA256Hash (nil for 0), retaining it and registering a release finalizer.
func NewEFISignatureSHA256HashWithData ¶
func NewEFISignatureSHA256HashWithData(data []byte) *EFISignatureSHA256Hash
NewEFISignatureSHA256HashWithData creates a signature from SHA-256 hash data.
func (*EFISignatureSHA256Hash) Data ¶
func (essh *EFISignatureSHA256Hash) Data() []byte
Data returns the data.
type EFISignatureX509Certificate ¶
type EFISignatureX509Certificate struct {
EFISignature
}
EFISignatureX509Certificate is an idiomatic wrapper over the Objective-C class VZEFISignatureX509Certificate.
It embeds EFISignature, promoting that type's methods.
A class that represents a Unified Extensible Firmware Interface (UEFI) signature based on an X.509 certificate.
func EFISignatureX509CertificateFromID ¶
func EFISignatureX509CertificateFromID(id objc.ID) *EFISignatureX509Certificate
EFISignatureX509CertificateFromID adopts an existing Objective-C object as a EFISignatureX509Certificate (nil for 0), retaining it and registering a release finalizer.
func NewEFISignatureX509CertificateWithCertificate ¶
func NewEFISignatureX509CertificateWithCertificate(certificate obj.Object) *EFISignatureX509Certificate
NewEFISignatureX509CertificateWithCertificate creates a signature from an X.509 certificate.
func (*EFISignatureX509Certificate) Certificate ¶
func (esxc *EFISignatureX509Certificate) Certificate() obj.Object
Certificate returns the certificate.
type EFIVariableStore ¶ added in v0.17.0
EFIVariableStore is an idiomatic wrapper over the Objective-C class VZEFIVariableStore.
An object that represents the Extensible Firmware Interface (EFI) variable store that contains NVRAM variables the EFI exposes.
func EFIVariableStoreFromID ¶ added in v0.17.0
func EFIVariableStoreFromID(id objc.ID) *EFIVariableStore
EFIVariableStoreFromID adopts an existing Objective-C object as a EFIVariableStore (nil for 0), retaining it and registering a release finalizer.
func NewEFIVariableStoreCreatingVariableStoreAtURLOptions ¶ added in v0.17.0
func NewEFIVariableStoreCreatingVariableStoreAtURLOptions(url string, options EFIVariableStoreInitializationOptions) (result *EFIVariableStore, err error)
NewEFIVariableStoreCreatingVariableStoreAtURLOptions creates a new EFI variable store at specified the URL on the filesystem, initialization options, and error-return variable.
func NewEFIVariableStoreWithURL ¶ added in v0.17.0
func NewEFIVariableStoreWithURL(url string) *EFIVariableStore
NewEFIVariableStoreWithURL initialize the variable store from the URL of an existing file.
func (*EFIVariableStore) Description ¶ added in v0.17.0
func (evs *EFIVariableStore) Description() string
Description returns the object's -description text.
func (*EFIVariableStore) DisableSecureBoot ¶
func (evs *EFIVariableStore) DisableSecureBoot() error
DisableSecureBoot disables Secure Boot while preserving the existing configuration.
DisableSecureBoot returns an error if the operation did not succeed.
func (*EFIVariableStore) EnableSecureBootUsingDefaultPlatformKey ¶
func (evs *EFIVariableStore) EnableSecureBootUsingDefaultPlatformKey() error
EnableSecureBootUsingDefaultPlatformKey enables Secure Boot with an Apple-managed Platform Key.
EnableSecureBootUsingDefaultPlatformKey returns an error if the operation did not succeed.
func (*EFIVariableStore) EnableSecureBootWithPlatformKey ¶
func (evs *EFIVariableStore) EnableSecureBootWithPlatformKey(platformKey obj.Object) error
EnableSecureBootWithPlatformKey enables Secure Boot with a custom Platform Key.
func (*EFIVariableStore) EnrollDefaultSecureBootSignatures ¶
func (evs *EFIVariableStore) EnrollDefaultSecureBootSignatures() error
EnrollDefaultSecureBootSignatures enrolls the default signatures to Secure Boot databases.
EnrollDefaultSecureBootSignatures returns an error if the operation did not succeed.
func (*EFIVariableStore) EnrollSecureBootSignatures ¶
func (evs *EFIVariableStore) EnrollSecureBootSignatures(signatures *EFISignatureDatabaseConfiguration) error
EnrollSecureBootSignatures enrolls the given signatures to Secure Boot databases.
func (*EFIVariableStore) GetEnrolledSecureBootSignatures ¶
func (evs *EFIVariableStore) GetEnrolledSecureBootSignatures() (result *EFISignatureDatabaseConfiguration, err error)
GetEnrolledSecureBootSignatures returns the currently enrolled Secure Boot signatures in the Key Exchange Key (KEK), allowed signature (db), and forbidden signature (dbx) databases.
func (*EFIVariableStore) GetSecureBootEnabled ¶
func (evs *EFIVariableStore) GetSecureBootEnabled() (enabled bool, err error)
GetSecureBootEnabled returns a Boolean value that indicates whether Secure Boot is in an enabled state in the variable store.
func (*EFIVariableStore) IsEqual ¶ added in v0.17.0
func (evs *EFIVariableStore) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*EFIVariableStore) IsKind ¶ added in v0.17.0
func (evs *EFIVariableStore) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*EFIVariableStore) ResetSecureBoot ¶
func (evs *EFIVariableStore) ResetSecureBoot() error
ResetSecureBoot clears any previously applied Secure Boot configuration and disables Secure Boot.
ResetSecureBoot returns an error if the operation did not succeed.
func (*EFIVariableStore) String ¶ added in v0.17.0
func (evs *EFIVariableStore) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*EFIVariableStore) URL ¶ added in v0.17.0
func (evs *EFIVariableStore) URL() string
URL returns the URL of the variable store on the local file system.
type EFIVariableStoreInitializationOptions ¶ added in v0.17.0
type EFIVariableStoreInitializationOptions uint64
Bitmask — values may be combined with |.
const (
EFIVariableStoreInitializationOptionAllowOverwrite EFIVariableStoreInitializationOptions = 1
)
func (EFIVariableStoreInitializationOptions) String ¶ added in v0.17.0
func (e EFIVariableStoreInitializationOptions) String() string
String returns the EFIVariableStoreInitializationOptions constant's name, or its numeric form when the value is not a known constant.
type EntropyDeviceConfiguration ¶ added in v0.17.0
EntropyDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZEntropyDeviceConfiguration.
EntropyDeviceConfiguration is an abstract base — you do not construct it directly. Construct one of VirtioEntropyDeviceConfiguration and pass it where a EntropyDeviceConfiguration is accepted.
The common configuration traits for entropy devices.
func EntropyDeviceConfigurationFromID ¶ added in v0.17.0
func EntropyDeviceConfigurationFromID(id objc.ID) *EntropyDeviceConfiguration
EntropyDeviceConfigurationFromID adopts an existing Objective-C object as a EntropyDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*EntropyDeviceConfiguration) Description ¶ added in v0.17.0
func (edc *EntropyDeviceConfiguration) Description() string
Description returns the object's -description text.
func (*EntropyDeviceConfiguration) IsEqual ¶ added in v0.17.0
func (edc *EntropyDeviceConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*EntropyDeviceConfiguration) IsKind ¶ added in v0.17.0
func (edc *EntropyDeviceConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*EntropyDeviceConfiguration) String ¶ added in v0.17.0
func (edc *EntropyDeviceConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type EntropyDeviceConfigurationProvider ¶ added in v0.17.0
type EntropyDeviceConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
EntropyDeviceConfigurationProvider is accepted wherever a VZEntropyDeviceConfiguration (or one of its subclasses) is expected.
type ErrorCode ¶ added in v0.17.0
type ErrorCode int64
const ( // An error that indicates there was an internal error, such as the virtual machine unexpectedly stopping. The framework reports this error when the virtual machine unexpectedly stops. ErrorInternal ErrorCode = 1 // An error that indicates the machine configuration was invalid. This error indicates that your “VZVirtualMachineConfiguration“ object contains invalid data. ErrorInvalidVirtualMachineConfiguration ErrorCode = 2 // An error that indicates the app used the API with a machine in the wrong state. This error occurs when the virtual machine is in the wrong state for the current operation. For example, you might receive this error when you attempt to interact with a stopped or paused virtual machine. ErrorInvalidVirtualMachineState ErrorCode = 3 // An error that indicates there was an invalid change of state. This error occurs when you attempt to change the state of the virtual machine in an invalid way. For example, it occurs when you attempt to start a virtual machine when its “VZVirtualMachine/canStart“ property is `false`. ErrorInvalidVirtualMachineStateTransition ErrorCode = 4 // An error that indicates an unrecognized disk image format or invalid disk image. This error occurs when you supply a disk image in an unrecognized format, when there’s damage to the disk image, or the disk image is invalid. ErrorInvalidDiskImage ErrorCode = 5 // An error that indicates an attempt to start a virtual machine (VM) exceeded the limit of the number of running VMs the framework allows. This error occurs when starting a VM would exceed the system’s limit on the number of simultaneously running virtual machines. ErrorVirtualMachineLimitExceeded ErrorCode = 6 // An error that indicates a network issue, such as a failed connection error, occurred. ErrorNetworkError ErrorCode = 7 // An error that indicates the host ran out of disk space, such as while attempting to install Rosetta. ErrorOutOfDiskSpace ErrorCode = 8 // An error that indicates the framework cancelled the operation. ErrorOperationCancelled ErrorCode = 9 // An error that indicates the framework doesn't support the operation. ErrorNotSupported ErrorCode = 10 // An error that indicates the VM failed to save to the save file. ErrorSave ErrorCode = 11 // An error that indicates the restore operation failed. ErrorRestore ErrorCode = 12 // An error that indicates the restore image catalog failed to load. ErrorRestoreImageCatalogLoadFailed ErrorCode = 10001 // An error that indicates the restore image catalog is invalid. ErrorInvalidRestoreImageCatalog ErrorCode = 10002 // An error that indicates the restore image catalog has no supported restore images. ErrorNoSupportedRestoreImagesInCatalog ErrorCode = 10003 // An error that indicates the restore image failed to load. ErrorRestoreImageLoadFailed ErrorCode = 10004 // An error that indicates the restore image is invalid. ErrorInvalidRestoreImage ErrorCode = 10005 // An error that indicates the installation requires a software update in order to complete. ErrorInstallationRequiresUpdate ErrorCode = 10006 // An error that indicates that an error occurred during installation. ErrorInstallationFailed ErrorCode = 10007 // An error that indicates the connection or the negotiation with the Network Block Device (NBD) server failed. ErrorNetworkBlockDeviceNegotiationFailed ErrorCode = 20001 // An error that indicates the Network Block Device (NBD) client disconnected from the server. ErrorNetworkBlockDeviceDisconnected ErrorCode = 20002 // An error that indicates the framework wasn't able to find the controller. ErrorUSBControllerNotFound ErrorCode = 30001 // An error that indicates the device is already attached. ErrorDeviceAlreadyAttached ErrorCode = 30002 // An error that indicates the device failed to initialize. ErrorDeviceInitializationFailure ErrorCode = 30003 // An error that indicates the framework wasn't able to find the specified device. ErrorDeviceNotFound ErrorCode = 30004 // An error that indicates the full name for guest provisioning is invalid. ErrorGuestProvisioningInvalidFullName ErrorCode = 40001 // An error that indicates the username for guest provisioning is invalid. ErrorGuestProvisioningInvalidUsername ErrorCode = 40002 // An error that indicates the password for guest provisioning is invalid. ErrorGuestProvisioningInvalidPassword ErrorCode = 40003 // An error that indicates the Secure Boot signatures failed to enroll. ErrorEFISecureBootEnrollmentFailed ErrorCode = 50001 // An error that indicates the framework can't access the EFI variable store. ErrorEFIVariableInaccessible ErrorCode = 50002 )
type FileHandleNetworkDeviceAttachment ¶ added in v0.17.0
type FileHandleNetworkDeviceAttachment struct {
NetworkDeviceAttachment
}
FileHandleNetworkDeviceAttachment is an idiomatic wrapper over the Objective-C class VZFileHandleNetworkDeviceAttachment.
It embeds NetworkDeviceAttachment, promoting that type's methods.
A network device that transmits raw network packets and frames using a datagram socket.
func FileHandleNetworkDeviceAttachmentFromID ¶ added in v0.17.0
func FileHandleNetworkDeviceAttachmentFromID(id objc.ID) *FileHandleNetworkDeviceAttachment
FileHandleNetworkDeviceAttachmentFromID adopts an existing Objective-C object as a FileHandleNetworkDeviceAttachment (nil for 0), retaining it and registering a release finalizer.
func NewFileHandleNetworkDeviceAttachmentWithFileHandle ¶ added in v0.17.0
func NewFileHandleNetworkDeviceAttachmentWithFileHandle(fileHandle obj.Object) *FileHandleNetworkDeviceAttachment
NewFileHandleNetworkDeviceAttachmentWithFileHandle creates the attachment from a file handle that contains a connected datagram socket.
func (*FileHandleNetworkDeviceAttachment) FileHandle ¶ added in v0.17.0
func (fhnda *FileHandleNetworkDeviceAttachment) FileHandle() *foundation.FileHandle
FileHandle returns the file handle associated with this attachment.
func (*FileHandleNetworkDeviceAttachment) MaximumTransmissionUnit ¶ added in v0.17.0
func (fhnda *FileHandleNetworkDeviceAttachment) MaximumTransmissionUnit() int
MaximumTransmissionUnit returns the maximum transmission unit (MTU) associated with this attachment. 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 (*FileHandleNetworkDeviceAttachment) WithMaximumTransmissionUnit ¶ added in v0.17.0
func (fhnda *FileHandleNetworkDeviceAttachment) WithMaximumTransmissionUnit(maximumTransmissionUnit int) *FileHandleNetworkDeviceAttachment
WithMaximumTransmissionUnit sets an integer value that indicates the maximum transmission unit (MTU) associated with this attachment.
type FileHandleSerialPortAttachment ¶ added in v0.17.0
type FileHandleSerialPortAttachment struct {
SerialPortAttachment
}
FileHandleSerialPortAttachment is an idiomatic wrapper over the Objective-C class VZFileHandleSerialPortAttachment.
It embeds SerialPortAttachment, promoting that type's methods.
An attachment point that allows bidirectional communication using file handles.
func FileHandleSerialPortAttachmentFromID ¶ added in v0.17.0
func FileHandleSerialPortAttachmentFromID(id objc.ID) *FileHandleSerialPortAttachment
FileHandleSerialPortAttachmentFromID adopts an existing Objective-C object as a FileHandleSerialPortAttachment (nil for 0), retaining it and registering a release finalizer.
func NewFileHandleSerialPortAttachmentWithFileHandleForReadingFileHandleForWriting ¶ added in v0.17.0
func NewFileHandleSerialPortAttachmentWithFileHandleForReadingFileHandleForWriting(fileHandleForReading obj.Object, fileHandleForWriting obj.Object) *FileHandleSerialPortAttachment
NewFileHandleSerialPortAttachmentWithFileHandleForReadingFileHandleForWriting creates a serial port attachment object from the specified file handles.
func (*FileHandleSerialPortAttachment) FileHandleForReading ¶ added in v0.17.0
func (fhspa *FileHandleSerialPortAttachment) FileHandleForReading() *foundation.FileHandle
FileHandleForReading returns file handle for reading from the file. Data written to fileHandleForReading goes to the guest.
func (*FileHandleSerialPortAttachment) FileHandleForWriting ¶ added in v0.17.0
func (fhspa *FileHandleSerialPortAttachment) FileHandleForWriting() *foundation.FileHandle
FileHandleForWriting returns file handle for writing to the file. Data sent from the guest appears on fileHandleForWriting.
type FileSerialPortAttachment ¶ added in v0.17.0
type FileSerialPortAttachment struct {
SerialPortAttachment
}
FileSerialPortAttachment is an idiomatic wrapper over the Objective-C class VZFileSerialPortAttachment.
It embeds SerialPortAttachment, promoting that type's methods.
An attachment point that writes data from the guest system to a file.
func FileSerialPortAttachmentFromID ¶ added in v0.17.0
func FileSerialPortAttachmentFromID(id objc.ID) *FileSerialPortAttachment
FileSerialPortAttachmentFromID adopts an existing Objective-C object as a FileSerialPortAttachment (nil for 0), retaining it and registering a release finalizer.
func NewFileSerialPortAttachmentWithURLAppend ¶ added in v0.17.0
func NewFileSerialPortAttachmentWithURLAppend(url string, shouldAppend bool) (result *FileSerialPortAttachment, err error)
NewFileSerialPortAttachmentWithURLAppend creates a file-based serial port attachment object.
func (*FileSerialPortAttachment) Append ¶ added in v0.17.0
func (fspa *FileSerialPortAttachment) Append() bool
Append reports whether the file should be opened in append mode.
func (*FileSerialPortAttachment) URL ¶ added in v0.17.0
func (fspa *FileSerialPortAttachment) URL() string
URL returns the URL of the file for the attachment on the local file system.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type GenericMachineIdentifier ¶ added in v0.17.0
GenericMachineIdentifier is an idiomatic wrapper over the Objective-C class VZGenericMachineIdentifier.
An object that represents a unique identifier for a virtual machine.
func GenericMachineIdentifierFromID ¶ added in v0.17.0
func GenericMachineIdentifierFromID(id objc.ID) *GenericMachineIdentifier
GenericMachineIdentifierFromID adopts an existing Objective-C object as a GenericMachineIdentifier (nil for 0), retaining it and registering a release finalizer.
func NewGenericMachineIdentifier ¶ added in v0.17.0
func NewGenericMachineIdentifier() *GenericMachineIdentifier
NewGenericMachineIdentifier creates a new GenericMachineIdentifier.
func NewGenericMachineIdentifierWithDataRepresentation ¶ added in v0.17.0
func NewGenericMachineIdentifierWithDataRepresentation(dataRepresentation []byte) *GenericMachineIdentifier
NewGenericMachineIdentifierWithDataRepresentation creates a new unique identifier for a VM with the provided data.
func (*GenericMachineIdentifier) DataRepresentation ¶ added in v0.17.0
func (gmi *GenericMachineIdentifier) DataRepresentation() []byte
DataRepresentation returns the data representation.
func (*GenericMachineIdentifier) Description ¶ added in v0.17.0
func (gmi *GenericMachineIdentifier) Description() string
Description returns the object's -description text.
func (*GenericMachineIdentifier) IsEqual ¶ added in v0.17.0
func (gmi *GenericMachineIdentifier) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*GenericMachineIdentifier) IsKind ¶ added in v0.17.0
func (gmi *GenericMachineIdentifier) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*GenericMachineIdentifier) String ¶ added in v0.17.0
func (gmi *GenericMachineIdentifier) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type GenericPlatformConfiguration ¶ added in v0.17.0
type GenericPlatformConfiguration struct {
PlatformConfiguration
}
GenericPlatformConfiguration is an idiomatic wrapper over the Objective-C class VZGenericPlatformConfiguration.
It embeds PlatformConfiguration, promoting that type's methods.
The platform configuration for a generic Intel or ARM virtual machine.
func GenericPlatformConfigurationFromID ¶ added in v0.17.0
func GenericPlatformConfigurationFromID(id objc.ID) *GenericPlatformConfiguration
GenericPlatformConfigurationFromID adopts an existing Objective-C object as a GenericPlatformConfiguration (nil for 0), retaining it and registering a release finalizer.
func NewGenericPlatformConfiguration ¶ added in v0.17.0
func NewGenericPlatformConfiguration() *GenericPlatformConfiguration
NewGenericPlatformConfiguration creates a new GenericPlatformConfiguration.
func (*GenericPlatformConfiguration) IsNestedVirtualizationEnabled ¶ added in v0.17.0
func (gpc *GenericPlatformConfiguration) IsNestedVirtualizationEnabled() bool
IsNestedVirtualizationEnabled reports whether enable nested virtualization for the platform. 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 false, nested virtualization is disabled.
func (*GenericPlatformConfiguration) MachineIdentifier ¶ added in v0.17.0
func (gpc *GenericPlatformConfiguration) MachineIdentifier() *GenericMachineIdentifier
MachineIdentifier returns the unique machine identifier. 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 (*GenericPlatformConfiguration) WithMachineIdentifier ¶ added in v0.17.0
func (gpc *GenericPlatformConfiguration) WithMachineIdentifier(machineIdentifier *GenericMachineIdentifier) *GenericPlatformConfiguration
WithMachineIdentifier sets a value that represents a unique identifier for the virtual machine.
func (*GenericPlatformConfiguration) WithNestedVirtualizationEnabled ¶ added in v0.17.0
func (gpc *GenericPlatformConfiguration) WithNestedVirtualizationEnabled(nestedVirtualizationEnabled bool) *GenericPlatformConfiguration
WithNestedVirtualizationEnabled sets a Boolean value that indicates whether nested virtualization is in an enabled state.
type GraphicsDevice ¶ added in v0.17.0
GraphicsDevice is an idiomatic wrapper over the Objective-C class VZGraphicsDevice.
GraphicsDevice is an abstract base — you do not construct it directly. Construct one of MacGraphicsDevice, VirtioGraphicsDevice and pass it where a GraphicsDevice is accepted.
A class that represents a graphics device in a VM.
func GraphicsDeviceFromID ¶ added in v0.17.0
func GraphicsDeviceFromID(id objc.ID) *GraphicsDevice
GraphicsDeviceFromID adopts an existing Objective-C object as a GraphicsDevice (nil for 0), retaining it and registering a release finalizer.
func (*GraphicsDevice) Description ¶ added in v0.17.0
func (gd *GraphicsDevice) Description() string
Description returns the object's -description text.
func (*GraphicsDevice) Displays ¶ added in v0.17.0
func (gd *GraphicsDevice) Displays() []*GraphicsDisplay
Displays returns the displays.
Displays returns the collection as a Go slice.
func (*GraphicsDevice) IsEqual ¶ added in v0.17.0
func (gd *GraphicsDevice) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*GraphicsDevice) IsKind ¶ added in v0.17.0
func (gd *GraphicsDevice) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*GraphicsDevice) String ¶ added in v0.17.0
func (gd *GraphicsDevice) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type GraphicsDeviceConfiguration ¶ added in v0.17.0
GraphicsDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZGraphicsDeviceConfiguration.
GraphicsDeviceConfiguration is an abstract base — you do not construct it directly. Construct one of MacGraphicsDeviceConfiguration, VirtioGraphicsDeviceConfiguration and pass it where a GraphicsDeviceConfiguration is accepted.
The base class for a graphics device configuration.
func GraphicsDeviceConfigurationFromID ¶ added in v0.17.0
func GraphicsDeviceConfigurationFromID(id objc.ID) *GraphicsDeviceConfiguration
GraphicsDeviceConfigurationFromID adopts an existing Objective-C object as a GraphicsDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*GraphicsDeviceConfiguration) Description ¶ added in v0.17.0
func (gdc *GraphicsDeviceConfiguration) Description() string
Description returns the object's -description text.
func (*GraphicsDeviceConfiguration) IsEqual ¶ added in v0.17.0
func (gdc *GraphicsDeviceConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*GraphicsDeviceConfiguration) IsKind ¶ added in v0.17.0
func (gdc *GraphicsDeviceConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*GraphicsDeviceConfiguration) String ¶ added in v0.17.0
func (gdc *GraphicsDeviceConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type GraphicsDeviceConfigurationProvider ¶ added in v0.17.0
type GraphicsDeviceConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
GraphicsDeviceConfigurationProvider is accepted wherever a VZGraphicsDeviceConfiguration (or one of its subclasses) is expected.
type GraphicsDeviceProvider ¶ added in v0.17.0
GraphicsDeviceProvider is accepted wherever a VZGraphicsDevice (or one of its subclasses) is expected.
type GraphicsDisplay ¶ added in v0.17.0
GraphicsDisplay is an idiomatic wrapper over the Objective-C class VZGraphicsDisplay.
GraphicsDisplay is an abstract base — you do not construct it directly. Construct one of MacGraphicsDisplay, VirtioGraphicsScanout and pass it where a GraphicsDisplay is accepted.
A class that represents a graphics display in a VM.
func GraphicsDisplayFromID ¶ added in v0.17.0
func GraphicsDisplayFromID(id objc.ID) *GraphicsDisplay
GraphicsDisplayFromID adopts an existing Objective-C object as a GraphicsDisplay (nil for 0), retaining it and registering a release finalizer.
func (*GraphicsDisplay) Description ¶ added in v0.17.0
func (gd *GraphicsDisplay) Description() string
Description returns the object's -description text.
func (*GraphicsDisplay) IsEqual ¶ added in v0.17.0
func (gd *GraphicsDisplay) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*GraphicsDisplay) IsKind ¶ added in v0.17.0
func (gd *GraphicsDisplay) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*GraphicsDisplay) ReconfigureWithConfiguration ¶ added in v0.17.0
func (gd *GraphicsDisplay) ReconfigureWithConfiguration(configuration *GraphicsDisplayConfiguration) error
ReconfigureWithConfiguration reconfigure this display with the new display configuration you provide.
func (*GraphicsDisplay) ReconfigureWithSizeInPixels ¶ added in v0.17.0
func (gd *GraphicsDisplay) ReconfigureWithSizeInPixels(sizeInPixels corefoundation.CGSize) error
ReconfigureWithSizeInPixels resize this display with the new dimensions you provide.
func (*GraphicsDisplay) SizeInPixels ¶ added in v0.17.0
func (gd *GraphicsDisplay) SizeInPixels() corefoundation.CGSize
SizeInPixels returns the size of the display, in pixels.
func (*GraphicsDisplay) String ¶ added in v0.17.0
func (gd *GraphicsDisplay) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type GraphicsDisplayConfiguration ¶ added in v0.17.0
GraphicsDisplayConfiguration is an idiomatic wrapper over the Objective-C class VZGraphicsDisplayConfiguration.
GraphicsDisplayConfiguration is an abstract base — you do not construct it directly. Construct one of MacGraphicsDisplayConfiguration, VirtioGraphicsScanoutConfiguration and pass it where a GraphicsDisplayConfiguration is accepted.
The base class for a graphics display configuration.
func GraphicsDisplayConfigurationFromID ¶ added in v0.17.0
func GraphicsDisplayConfigurationFromID(id objc.ID) *GraphicsDisplayConfiguration
GraphicsDisplayConfigurationFromID adopts an existing Objective-C object as a GraphicsDisplayConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*GraphicsDisplayConfiguration) Description ¶ added in v0.17.0
func (gdc *GraphicsDisplayConfiguration) Description() string
Description returns the object's -description text.
func (*GraphicsDisplayConfiguration) IsEqual ¶ added in v0.17.0
func (gdc *GraphicsDisplayConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*GraphicsDisplayConfiguration) IsKind ¶ added in v0.17.0
func (gdc *GraphicsDisplayConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*GraphicsDisplayConfiguration) String ¶ added in v0.17.0
func (gdc *GraphicsDisplayConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type GraphicsDisplayConfigurationProvider ¶ added in v0.17.0
type GraphicsDisplayConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
GraphicsDisplayConfigurationProvider is accepted wherever a VZGraphicsDisplayConfiguration (or one of its subclasses) is expected.
type GraphicsDisplayObserver ¶ added in v0.17.0
type GraphicsDisplayObserver interface {
}
GraphicsDisplayObserver receives the callbacks of the Objective-C protocol VZGraphicsDisplayObserver. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (GraphicsDisplayObserver…Handler): implement the ones you need on the same value and the framework will call them too.
type GraphicsDisplayObserverDisplayDidBeginReconfigurationHandler ¶ added in v0.17.0
type GraphicsDisplayObserverDisplayDidBeginReconfigurationHandler interface {
DisplayDidBeginReconfiguration(display *GraphicsDisplay)
}
GraphicsDisplayObserverDisplayDidBeginReconfigurationHandler is the optional VZGraphicsDisplayObserver method displayDidBeginReconfiguration:. Implement it on a GraphicsDisplayObserver value to receive that callback; a value without it is simply never sent one.
type GraphicsDisplayObserverDisplayDidEndReconfigurationHandler ¶ added in v0.17.0
type GraphicsDisplayObserverDisplayDidEndReconfigurationHandler interface {
DisplayDidEndReconfiguration(display *GraphicsDisplay)
}
GraphicsDisplayObserverDisplayDidEndReconfigurationHandler is the optional VZGraphicsDisplayObserver method displayDidEndReconfiguration:. Implement it on a GraphicsDisplayObserver value to receive that callback; a value without it is simply never sent one.
type GraphicsDisplayProvider ¶ added in v0.17.0
GraphicsDisplayProvider is accepted wherever a VZGraphicsDisplay (or one of its subclasses) is expected.
type GuestMemoryMapping ¶
GuestMemoryMapping is an idiomatic wrapper over the Objective-C class VZGuestMemoryMapping.
An object that represents a chunk of the guest operating system’s dynamic random access memory (DRAM).
func GuestMemoryMappingFromID ¶
func GuestMemoryMappingFromID(id objc.ID) *GuestMemoryMapping
GuestMemoryMappingFromID adopts an existing Objective-C object as a GuestMemoryMapping (nil for 0), retaining it and registering a release finalizer.
func NewGuestMemoryMapping ¶
func NewGuestMemoryMapping() *GuestMemoryMapping
NewGuestMemoryMapping creates a new GuestMemoryMapping.
func (*GuestMemoryMapping) Description ¶
func (gmm *GuestMemoryMapping) Description() string
Description returns the object's -description text.
func (*GuestMemoryMapping) IsEqual ¶
func (gmm *GuestMemoryMapping) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*GuestMemoryMapping) IsKind ¶
func (gmm *GuestMemoryMapping) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*GuestMemoryMapping) Length ¶
func (gmm *GuestMemoryMapping) Length() int
Length returns the number of bytes contained by this guest memory mapping object.
func (*GuestMemoryMapping) MutableBytes ¶
func (gmm *GuestMemoryMapping) MutableBytes() unsafe.Pointer
MutableBytes returns a pointer to the data this guest memory mapping object contains.
func (*GuestMemoryMapping) PhysicalAddress ¶
func (gmm *GuestMemoryMapping) PhysicalAddress() uint64
PhysicalAddress returns the guest's physical memory base address of this guest memory mapping object.
func (*GuestMemoryMapping) String ¶
func (gmm *GuestMemoryMapping) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type GuestProvisioningOptions ¶
GuestProvisioningOptions is an idiomatic wrapper over the Objective-C class VZGuestProvisioningOptions.
GuestProvisioningOptions is an abstract base — you do not construct it directly. Construct one of MacGuestProvisioningOptions and pass it where a GuestProvisioningOptions is accepted.
The base class for guest provisioning options.
func GuestProvisioningOptionsFromID ¶
func GuestProvisioningOptionsFromID(id objc.ID) *GuestProvisioningOptions
GuestProvisioningOptionsFromID adopts an existing Objective-C object as a GuestProvisioningOptions (nil for 0), retaining it and registering a release finalizer.
func (*GuestProvisioningOptions) Description ¶
func (gpo *GuestProvisioningOptions) Description() string
Description returns the object's -description text.
func (*GuestProvisioningOptions) IsEqual ¶
func (gpo *GuestProvisioningOptions) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*GuestProvisioningOptions) IsKind ¶
func (gpo *GuestProvisioningOptions) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*GuestProvisioningOptions) String ¶
func (gpo *GuestProvisioningOptions) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*GuestProvisioningOptions) Validate ¶
func (gpo *GuestProvisioningOptions) Validate() error
Validate validates the provisioning options.
Validate returns an error if the operation did not succeed.
type GuestProvisioningOptionsProvider ¶
type GuestProvisioningOptionsProvider interface {
objref.Object
// contains filtered or unexported methods
}
GuestProvisioningOptionsProvider is accepted wherever a VZGuestProvisioningOptions (or one of its subclasses) is expected.
type HostAudioInputStreamSource ¶ added in v0.17.0
type HostAudioInputStreamSource struct {
AudioInputStreamSource
}
HostAudioInputStreamSource is an idiomatic wrapper over the Objective-C class VZHostAudioInputStreamSource.
It embeds AudioInputStreamSource, promoting that type's methods.
The host audio input stream source that provides audio from the host system’s default input device.
func HostAudioInputStreamSourceFromID ¶ added in v0.17.0
func HostAudioInputStreamSourceFromID(id objc.ID) *HostAudioInputStreamSource
HostAudioInputStreamSourceFromID adopts an existing Objective-C object as a HostAudioInputStreamSource (nil for 0), retaining it and registering a release finalizer.
func NewHostAudioInputStreamSource ¶ added in v0.17.0
func NewHostAudioInputStreamSource() *HostAudioInputStreamSource
NewHostAudioInputStreamSource creates a new HostAudioInputStreamSource.
type HostAudioOutputStreamSink ¶ added in v0.17.0
type HostAudioOutputStreamSink struct {
AudioOutputStreamSink
}
HostAudioOutputStreamSink is an idiomatic wrapper over the Objective-C class VZHostAudioOutputStreamSink.
It embeds AudioOutputStreamSink, promoting that type's methods.
Host audio output stream sink plays audio to the host system’s default output device.
func HostAudioOutputStreamSinkFromID ¶ added in v0.17.0
func HostAudioOutputStreamSinkFromID(id objc.ID) *HostAudioOutputStreamSink
HostAudioOutputStreamSinkFromID adopts an existing Objective-C object as a HostAudioOutputStreamSink (nil for 0), retaining it and registering a release finalizer.
func NewHostAudioOutputStreamSink ¶ added in v0.17.0
func NewHostAudioOutputStreamSink() *HostAudioOutputStreamSink
NewHostAudioOutputStreamSink creates a new HostAudioOutputStreamSink.
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type KeyboardConfiguration ¶ added in v0.17.0
KeyboardConfiguration is an idiomatic wrapper over the Objective-C class VZKeyboardConfiguration.
KeyboardConfiguration is an abstract base — you do not construct it directly. Construct one of MacKeyboardConfiguration, USBKeyboardConfiguration and pass it where a KeyboardConfiguration is accepted.
The base class for a configuring a keyboard.
func KeyboardConfigurationFromID ¶ added in v0.17.0
func KeyboardConfigurationFromID(id objc.ID) *KeyboardConfiguration
KeyboardConfigurationFromID adopts an existing Objective-C object as a KeyboardConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*KeyboardConfiguration) Description ¶ added in v0.17.0
func (kc *KeyboardConfiguration) Description() string
Description returns the object's -description text.
func (*KeyboardConfiguration) IsEqual ¶ added in v0.17.0
func (kc *KeyboardConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*KeyboardConfiguration) IsKind ¶ added in v0.17.0
func (kc *KeyboardConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*KeyboardConfiguration) String ¶ added in v0.17.0
func (kc *KeyboardConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type KeyboardConfigurationProvider ¶ added in v0.17.0
type KeyboardConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
KeyboardConfigurationProvider is accepted wherever a VZKeyboardConfiguration (or one of its subclasses) is expected.
type LaunchDataType ¶ added in v0.17.0
type LaunchDataType int32
const ( LaunchDataTypeDictionary LaunchDataType = 1 LaunchDataTypeArray LaunchDataType = 2 LaunchDataTypeFd LaunchDataType = 3 LaunchDataTypeInteger LaunchDataType = 4 LaunchDataTypeReal LaunchDataType = 5 LaunchDataTypeBool LaunchDataType = 6 LaunchDataTypeString LaunchDataType = 7 LaunchDataTypeOpaque LaunchDataType = 8 LaunchDataTypeErrno LaunchDataType = 9 LaunchDataTypeMachport LaunchDataType = 10 )
func (LaunchDataType) String ¶ added in v0.17.0
func (e LaunchDataType) String() string
String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.
type LinuxBootLoader ¶ added in v0.17.0
type LinuxBootLoader struct {
BootLoader
}
LinuxBootLoader is an idiomatic wrapper over the Objective-C class VZLinuxBootLoader.
It embeds BootLoader, promoting that type's methods.
An object that loads and configures a Linux kernel as the guest system of your VM.
func LinuxBootLoaderFromID ¶ added in v0.17.0
func LinuxBootLoaderFromID(id objc.ID) *LinuxBootLoader
LinuxBootLoaderFromID adopts an existing Objective-C object as a LinuxBootLoader (nil for 0), retaining it and registering a release finalizer.
func NewLinuxBootLoader ¶ added in v0.17.0
func NewLinuxBootLoader() *LinuxBootLoader
NewLinuxBootLoader creates a new LinuxBootLoader.
func NewLinuxBootLoaderWithKernelURL ¶ added in v0.17.0
func NewLinuxBootLoaderWithKernelURL(kernelURL string) *LinuxBootLoader
NewLinuxBootLoaderWithKernelURL creates a boot loader that launches the Linux kernel at the specified URL.
func (*LinuxBootLoader) CommandLine ¶ added in v0.17.0
func (lbl *LinuxBootLoader) CommandLine() string
CommandLine define the command-line parameters passed to the kernel on boot.
func (*LinuxBootLoader) KernelURL ¶ added in v0.17.0
func (lbl *LinuxBootLoader) KernelURL() string
KernelURL returns URL of the Linux kernel.
func (*LinuxBootLoader) WithCommandLine ¶ added in v0.17.0
func (lbl *LinuxBootLoader) WithCommandLine(commandLine string) *LinuxBootLoader
WithCommandLine sets the command-line parameters to pass to the Linux kernel at boot time.
func (*LinuxBootLoader) WithInitialRamdiskURL ¶ added in v0.17.0
func (lbl *LinuxBootLoader) WithInitialRamdiskURL(initialRamdiskURL string) *LinuxBootLoader
WithInitialRamdiskURL sets the location of an optional RAM disk, which the boot loader maps into memory before it boots the Linux kernel.
func (*LinuxBootLoader) WithKernelURL ¶ added in v0.17.0
func (lbl *LinuxBootLoader) WithKernelURL(kernelURL string) *LinuxBootLoader
WithKernelURL sets the URL of the Linux kernel file.
type LinuxRosettaAbstractSocketCachingOptions ¶ added in v0.17.0
type LinuxRosettaAbstractSocketCachingOptions struct {
LinuxRosettaCachingOptions
}
LinuxRosettaAbstractSocketCachingOptions is an idiomatic wrapper over the Objective-C class VZLinuxRosettaAbstractSocketCachingOptions.
It embeds LinuxRosettaCachingOptions, promoting that type's methods.
Caching options for an abstract socket.
func LinuxRosettaAbstractSocketCachingOptionsFromID ¶ added in v0.17.0
func LinuxRosettaAbstractSocketCachingOptionsFromID(id objc.ID) *LinuxRosettaAbstractSocketCachingOptions
LinuxRosettaAbstractSocketCachingOptionsFromID adopts an existing Objective-C object as a LinuxRosettaAbstractSocketCachingOptions (nil for 0), retaining it and registering a release finalizer.
func NewLinuxRosettaAbstractSocketCachingOptionsWithName ¶ added in v0.17.0
func NewLinuxRosettaAbstractSocketCachingOptionsWithName(name string) (result *LinuxRosettaAbstractSocketCachingOptions, err error)
NewLinuxRosettaAbstractSocketCachingOptionsWithName initialize options to set on a Rosetta directory share.
func (*LinuxRosettaAbstractSocketCachingOptions) Name ¶ added in v0.17.0
func (lrasco *LinuxRosettaAbstractSocketCachingOptions) Name() string
Name returns name set by initWithName. This is the name of the Abstract Socket to be used by Rosetta.
type LinuxRosettaAvailability ¶ added in v0.17.0
type LinuxRosettaAvailability int64
Constants that describe the availability and installation status of Rosetta.
const ( // The current hardware or software configuration doesn’t support Rosetta. LinuxRosettaAvailabilityNotSupported LinuxRosettaAvailability = 0 // Rosetta isn’t installed. LinuxRosettaAvailabilityNotInstalled LinuxRosettaAvailability = 1 // Rosetta is available on the host system. LinuxRosettaAvailabilityInstalled LinuxRosettaAvailability = 2 )
func Availability ¶ added in v0.17.0
func Availability() LinuxRosettaAvailability
Availability returns check the availability of Rosetta support for the directory share.
func (LinuxRosettaAvailability) String ¶ added in v0.17.0
func (e LinuxRosettaAvailability) String() string
String returns the LinuxRosettaAvailability constant's name, or its numeric form when the value is not a known constant.
type LinuxRosettaCachingOptions ¶ added in v0.17.0
LinuxRosettaCachingOptions is an idiomatic wrapper over the Objective-C class VZLinuxRosettaCachingOptions.
LinuxRosettaCachingOptions is an abstract base — you do not construct it directly. Construct one of LinuxRosettaAbstractSocketCachingOptions, LinuxRosettaUnixSocketCachingOptions and pass it where a LinuxRosettaCachingOptions is accepted.
An abstract class that defines UNIX socket-based caching options for Rosetta.
func LinuxRosettaCachingOptionsFromID ¶ added in v0.17.0
func LinuxRosettaCachingOptionsFromID(id objc.ID) *LinuxRosettaCachingOptions
LinuxRosettaCachingOptionsFromID adopts an existing Objective-C object as a LinuxRosettaCachingOptions (nil for 0), retaining it and registering a release finalizer.
func (*LinuxRosettaCachingOptions) Description ¶ added in v0.17.0
func (lrco *LinuxRosettaCachingOptions) Description() string
Description returns the object's -description text.
func (*LinuxRosettaCachingOptions) IsEqual ¶ added in v0.17.0
func (lrco *LinuxRosettaCachingOptions) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*LinuxRosettaCachingOptions) IsKind ¶ added in v0.17.0
func (lrco *LinuxRosettaCachingOptions) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*LinuxRosettaCachingOptions) String ¶ added in v0.17.0
func (lrco *LinuxRosettaCachingOptions) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type LinuxRosettaCachingOptionsProvider ¶ added in v0.17.0
type LinuxRosettaCachingOptionsProvider interface {
objref.Object
// contains filtered or unexported methods
}
LinuxRosettaCachingOptionsProvider is accepted wherever a VZLinuxRosettaCachingOptions (or one of its subclasses) is expected.
type LinuxRosettaDirectoryShare ¶ added in v0.17.0
type LinuxRosettaDirectoryShare struct {
}
LinuxRosettaDirectoryShare is an idiomatic wrapper over the Objective-C class VZLinuxRosettaDirectoryShare.
It embeds DirectoryShare, promoting that type's methods.
The Linux directory share for Rosetta.
func LinuxRosettaDirectoryShareFromID ¶ added in v0.17.0
func LinuxRosettaDirectoryShareFromID(id objc.ID) *LinuxRosettaDirectoryShare
LinuxRosettaDirectoryShareFromID adopts an existing Objective-C object as a LinuxRosettaDirectoryShare (nil for 0), retaining it and registering a release finalizer.
func NewLinuxRosettaDirectoryShare ¶ added in v0.17.0
func NewLinuxRosettaDirectoryShare() *LinuxRosettaDirectoryShare
NewLinuxRosettaDirectoryShare creates a new LinuxRosettaDirectoryShare.
func (*LinuxRosettaDirectoryShare) Options ¶ added in v0.17.0
func (lrds *LinuxRosettaDirectoryShare) Options() *LinuxRosettaCachingOptions
Options enable translation caching and configure the socket communication type for Rosetta.
func (*LinuxRosettaDirectoryShare) WithOptions ¶ added in v0.17.0
func (lrds *LinuxRosettaDirectoryShare) WithOptions(options LinuxRosettaCachingOptionsProvider) *LinuxRosettaDirectoryShare
WithOptions sets the value that enables translation caching and configures the socket communication type for Rosetta.
type LinuxRosettaUnixSocketCachingOptions ¶ added in v0.17.0
type LinuxRosettaUnixSocketCachingOptions struct {
LinuxRosettaCachingOptions
}
LinuxRosettaUnixSocketCachingOptions is an idiomatic wrapper over the Objective-C class VZLinuxRosettaUnixSocketCachingOptions.
It embeds LinuxRosettaCachingOptions, promoting that type's methods.
An object that represents caching options for a UNIX domain socket.
func LinuxRosettaUnixSocketCachingOptionsFromID ¶ added in v0.17.0
func LinuxRosettaUnixSocketCachingOptionsFromID(id objc.ID) *LinuxRosettaUnixSocketCachingOptions
LinuxRosettaUnixSocketCachingOptionsFromID adopts an existing Objective-C object as a LinuxRosettaUnixSocketCachingOptions (nil for 0), retaining it and registering a release finalizer.
func NewLinuxRosettaUnixSocketCachingOptions ¶ added in v0.17.0
func NewLinuxRosettaUnixSocketCachingOptions() *LinuxRosettaUnixSocketCachingOptions
NewLinuxRosettaUnixSocketCachingOptions creates a new LinuxRosettaUnixSocketCachingOptions.
func NewLinuxRosettaUnixSocketCachingOptionsWithPath ¶ added in v0.17.0
func NewLinuxRosettaUnixSocketCachingOptionsWithPath(path string) (result *LinuxRosettaUnixSocketCachingOptions, err error)
NewLinuxRosettaUnixSocketCachingOptionsWithPath creates a new Rosetta caching options object for a UNIX domain socket with the path you specify.
func (*LinuxRosettaUnixSocketCachingOptions) Path ¶ added in v0.17.0
func (lrusco *LinuxRosettaUnixSocketCachingOptions) Path() string
Path returns path set by initWithPath. This is the path of the Unix Domain Socket to be used by Rosetta.
type MACAddress ¶ added in v0.17.0
MACAddress is an idiomatic wrapper over the Objective-C class VZMACAddress.
The media access control (MAC) address for a network interface in your virtual machine.
func MACAddressFromID ¶ added in v0.17.0
func MACAddressFromID(id objc.ID) *MACAddress
MACAddressFromID adopts an existing Objective-C object as a MACAddress (nil for 0), retaining it and registering a release finalizer.
func NewMACAddressWithEthernetAddress ¶ added in v0.17.0
func NewMACAddressWithEthernetAddress(ethernetAddress unsafe.Pointer) *MACAddress
NewMACAddressWithEthernetAddress creates a MAC address from the specified 48-bit Ethernet address.
func NewMACAddressWithString ¶ added in v0.17.0
func NewMACAddressWithString(str string) *MACAddress
NewMACAddressWithString creates a MAC address object from a specially formatted string.
func RandomLocallyAdministeredAddress ¶ added in v0.17.0
func RandomLocallyAdministeredAddress() *MACAddress
RandomLocallyAdministeredAddress returns a valid, random, locally administered, unicast MAC address.
func (*MACAddress) Description ¶ added in v0.17.0
func (ma *MACAddress) Description() string
Description returns the object's -description text.
func (*MACAddress) EthernetAddress ¶ added in v0.18.0
func (ma *MACAddress) EthernetAddress() unsafe.Pointer
EthernetAddress returns the address represented as an ether_addr_t.
func (*MACAddress) IsBroadcastAddress ¶ added in v0.17.0
func (ma *MACAddress) IsBroadcastAddress() bool
IsBroadcastAddress reports whether the address is the broadcast address.
func (*MACAddress) IsEqual ¶ added in v0.17.0
func (ma *MACAddress) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*MACAddress) IsKind ¶ added in v0.17.0
func (ma *MACAddress) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*MACAddress) IsLocallyAdministeredAddress ¶ added in v0.17.0
func (ma *MACAddress) IsLocallyAdministeredAddress() bool
IsLocallyAdministeredAddress reports whether the address is a locally administered address (LAA).
func (*MACAddress) IsMulticastAddress ¶ added in v0.17.0
func (ma *MACAddress) IsMulticastAddress() bool
IsMulticastAddress reports whether the address is a multicast address.
func (*MACAddress) IsUnicastAddress ¶ added in v0.17.0
func (ma *MACAddress) IsUnicastAddress() bool
IsUnicastAddress reports whether the address is a unicast address.
func (*MACAddress) IsUniversallyAdministeredAddress ¶ added in v0.17.0
func (ma *MACAddress) IsUniversallyAdministeredAddress() bool
IsUniversallyAdministeredAddress reports whether the address is a universally administered address (UAA).
func (*MACAddress) String ¶ added in v0.17.0
func (ma *MACAddress) String() string
String returns the address represented as a string. 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 MDLabelDomain ¶
type MDLabelDomain int32
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
String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int32
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int32
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MacAuxiliaryStorage ¶ added in v0.17.0
MacAuxiliaryStorage is an idiomatic wrapper over the Objective-C class VZMacAuxiliaryStorage.
An object that contains information the boot loader needs for booting macOS as a guest operating system.
func MacAuxiliaryStorageFromID ¶ added in v0.17.0
func MacAuxiliaryStorageFromID(id objc.ID) *MacAuxiliaryStorage
MacAuxiliaryStorageFromID adopts an existing Objective-C object as a MacAuxiliaryStorage (nil for 0), retaining it and registering a release finalizer.
func NewMACAuxiliaryStorageCreatingStorageAtURLHardwareModelOptions ¶ added in v0.17.0
func NewMACAuxiliaryStorageCreatingStorageAtURLHardwareModelOptions(url string, hardwareModel *MacHardwareModel, options MacAuxiliaryStorageInitializationOptions) (result *MacAuxiliaryStorage, err error)
NewMACAuxiliaryStorageCreatingStorageAtURLHardwareModelOptions creates an initialized Mac auxiliary storage instance that describes a specific hardware model at a URL you specify.
func NewMACAuxiliaryStorageWithContentsOfURL ¶ added in v0.17.0
func NewMACAuxiliaryStorageWithContentsOfURL(url string) *MacAuxiliaryStorage
NewMACAuxiliaryStorageWithContentsOfURL creates a new MacAuxiliaryStorage.
func NewMACAuxiliaryStorageWithURL ¶ added in v0.17.0
func NewMACAuxiliaryStorageWithURL(url string) *MacAuxiliaryStorage
NewMACAuxiliaryStorageWithURL initializes an auxiliary storage object with data from the location at the URL you provide.
func (*MacAuxiliaryStorage) Description ¶ added in v0.17.0
func (mas *MacAuxiliaryStorage) Description() string
Description returns the object's -description text.
func (*MacAuxiliaryStorage) IsEqual ¶ added in v0.17.0
func (mas *MacAuxiliaryStorage) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*MacAuxiliaryStorage) IsKind ¶ added in v0.17.0
func (mas *MacAuxiliaryStorage) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*MacAuxiliaryStorage) String ¶ added in v0.17.0
func (mas *MacAuxiliaryStorage) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*MacAuxiliaryStorage) URL ¶ added in v0.17.0
func (mas *MacAuxiliaryStorage) URL() string
URL returns the URL.
type MacAuxiliaryStorageInitializationOptions ¶ added in v0.17.0
type MacAuxiliaryStorageInitializationOptions uint64
Bitmask — values may be combined with |.
const ( // Overwrite an existing auxiliary storage. MacAuxiliaryStorageInitializationOptionAllowOverwrite MacAuxiliaryStorageInitializationOptions = 1 )
func (MacAuxiliaryStorageInitializationOptions) String ¶ added in v0.17.0
func (e MacAuxiliaryStorageInitializationOptions) String() string
String returns the MacAuxiliaryStorageInitializationOptions constant's name, or its numeric form when the value is not a known constant.
type MacGraphicsDevice ¶ added in v0.17.0
type MacGraphicsDevice struct {
GraphicsDevice
}
MacGraphicsDevice is an idiomatic wrapper over the Objective-C class VZMacGraphicsDevice.
It embeds GraphicsDevice, promoting that type's methods.
An object that represents a Mac graphics device.
func MacGraphicsDeviceFromID ¶ added in v0.17.0
func MacGraphicsDeviceFromID(id objc.ID) *MacGraphicsDevice
MacGraphicsDeviceFromID adopts an existing Objective-C object as a MacGraphicsDevice (nil for 0), retaining it and registering a release finalizer.
func NewMacGraphicsDevice ¶ added in v0.17.0
func NewMacGraphicsDevice() *MacGraphicsDevice
NewMacGraphicsDevice creates a new MacGraphicsDevice.
type MacGraphicsDeviceConfiguration ¶ added in v0.17.0
type MacGraphicsDeviceConfiguration struct {
GraphicsDeviceConfiguration
}
MacGraphicsDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZMacGraphicsDeviceConfiguration.
It embeds GraphicsDeviceConfiguration, promoting that type's methods.
Configuration for a display attached to a Mac graphics device.
func MacGraphicsDeviceConfigurationFromID ¶ added in v0.17.0
func MacGraphicsDeviceConfigurationFromID(id objc.ID) *MacGraphicsDeviceConfiguration
MacGraphicsDeviceConfigurationFromID adopts an existing Objective-C object as a MacGraphicsDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func NewMacGraphicsDeviceConfiguration ¶ added in v0.17.0
func NewMacGraphicsDeviceConfiguration() *MacGraphicsDeviceConfiguration
NewMacGraphicsDeviceConfiguration creates a new MacGraphicsDeviceConfiguration.
func (*MacGraphicsDeviceConfiguration) Displays ¶ added in v0.17.0
func (mgdc *MacGraphicsDeviceConfiguration) Displays() []*MacGraphicsDisplayConfiguration
Displays returns the displays.
Displays returns the collection as a Go slice.
func (*MacGraphicsDeviceConfiguration) WithDisplays ¶ added in v0.17.0
func (mgdc *MacGraphicsDeviceConfiguration) WithDisplays(items ...*MacGraphicsDisplayConfiguration) *MacGraphicsDeviceConfiguration
WithDisplays sets the displays associated with this graphics device.
type MacGraphicsDisplay ¶ added in v0.17.0
type MacGraphicsDisplay struct {
GraphicsDisplay
}
MacGraphicsDisplay is an idiomatic wrapper over the Objective-C class VZMacGraphicsDisplay.
It embeds GraphicsDisplay, promoting that type's methods.
An object that represents the graphics display on a Mac.
func MacGraphicsDisplayFromID ¶ added in v0.17.0
func MacGraphicsDisplayFromID(id objc.ID) *MacGraphicsDisplay
MacGraphicsDisplayFromID adopts an existing Objective-C object as a MacGraphicsDisplay (nil for 0), retaining it and registering a release finalizer.
func NewMacGraphicsDisplay ¶ added in v0.17.0
func NewMacGraphicsDisplay() *MacGraphicsDisplay
NewMacGraphicsDisplay creates a new MacGraphicsDisplay.
func (*MacGraphicsDisplay) PixelsPerInch ¶ added in v0.17.0
func (mgd *MacGraphicsDisplay) PixelsPerInch() int
PixelsPerInch returns the pixels per inch.
type MacGraphicsDisplayConfiguration ¶ added in v0.17.0
type MacGraphicsDisplayConfiguration struct {
GraphicsDisplayConfiguration
}
MacGraphicsDisplayConfiguration is an idiomatic wrapper over the Objective-C class VZMacGraphicsDisplayConfiguration.
It embeds GraphicsDisplayConfiguration, promoting that type's methods.
The configuration for a Mac graphics device.
func MacGraphicsDisplayConfigurationFromID ¶ added in v0.17.0
func MacGraphicsDisplayConfigurationFromID(id objc.ID) *MacGraphicsDisplayConfiguration
MacGraphicsDisplayConfigurationFromID adopts an existing Objective-C object as a MacGraphicsDisplayConfiguration (nil for 0), retaining it and registering a release finalizer.
func NewMACGraphicsDisplayConfigurationForScreenSizeInPoints ¶ added in v0.17.0
func NewMACGraphicsDisplayConfigurationForScreenSizeInPoints(screen obj.Object, sizeInPoints corefoundation.CGSize) *MacGraphicsDisplayConfiguration
NewMACGraphicsDisplayConfigurationForScreenSizeInPoints create a display configuration suitable for showing on the specified screen.
func NewMACGraphicsDisplayConfigurationWithWidthInPixelsHeightInPixelsPixelsPerInch ¶ added in v0.17.0
func NewMACGraphicsDisplayConfigurationWithWidthInPixelsHeightInPixelsPixelsPerInch(widthInPixels int, heightInPixels int, pixelsPerInch int) *MacGraphicsDisplayConfiguration
NewMACGraphicsDisplayConfigurationWithWidthInPixelsHeightInPixelsPixelsPerInch create a display configuration with the specified pixel dimensions and pixel density.
func (*MacGraphicsDisplayConfiguration) HeightInPixels ¶ added in v0.17.0
func (mgdc *MacGraphicsDisplayConfiguration) HeightInPixels() int
HeightInPixels returns the height of the display, in pixels.
func (*MacGraphicsDisplayConfiguration) PixelsPerInch ¶ added in v0.17.0
func (mgdc *MacGraphicsDisplayConfiguration) PixelsPerInch() int
PixelsPerInch returns the pixel density as a number of pixels per inch.
func (*MacGraphicsDisplayConfiguration) WidthInPixels ¶ added in v0.17.0
func (mgdc *MacGraphicsDisplayConfiguration) WidthInPixels() int
WidthInPixels returns the width of the display, in pixels.
func (*MacGraphicsDisplayConfiguration) WithHeightInPixels ¶ added in v0.17.0
func (mgdc *MacGraphicsDisplayConfiguration) WithHeightInPixels(heightInPixels int) *MacGraphicsDisplayConfiguration
WithHeightInPixels sets the height of the display, in pixels.
func (*MacGraphicsDisplayConfiguration) WithPixelsPerInch ¶ added in v0.17.0
func (mgdc *MacGraphicsDisplayConfiguration) WithPixelsPerInch(pixelsPerInch int) *MacGraphicsDisplayConfiguration
WithPixelsPerInch sets the pixel density in pixels per inch.
func (*MacGraphicsDisplayConfiguration) WithWidthInPixels ¶ added in v0.17.0
func (mgdc *MacGraphicsDisplayConfiguration) WithWidthInPixels(widthInPixels int) *MacGraphicsDisplayConfiguration
WithWidthInPixels sets the width of the display, in pixels.
type MacGuestProvisioningOptions ¶
type MacGuestProvisioningOptions struct {
GuestProvisioningOptions
}
MacGuestProvisioningOptions is an idiomatic wrapper over the Objective-C class VZMacGuestProvisioningOptions.
It embeds GuestProvisioningOptions, promoting that type's methods.
The configuration for guest setup during macOS virtual machine startup.
func MacGuestProvisioningOptionsFromID ¶
func MacGuestProvisioningOptionsFromID(id objc.ID) *MacGuestProvisioningOptions
MacGuestProvisioningOptionsFromID adopts an existing Objective-C object as a MacGuestProvisioningOptions (nil for 0), retaining it and registering a release finalizer.
func NewMacGuestProvisioningOptions ¶
func NewMacGuestProvisioningOptions() *MacGuestProvisioningOptions
NewMacGuestProvisioningOptions creates a new MacGuestProvisioningOptions.
func (*MacGuestProvisioningOptions) EnablesRemoteLogin ¶
func (mgpo *MacGuestProvisioningOptions) EnablesRemoteLogin() bool
EnablesRemoteLogin reports whether to enable Remote Login (using SSH) for the macOS virtual machine. Defaults to `NO`.
func (*MacGuestProvisioningOptions) FullName ¶
func (mgpo *MacGuestProvisioningOptions) FullName() string
FullName returns a person's full name to configure for the macOS virtual machine.
func (*MacGuestProvisioningOptions) LogsInAutomatically ¶
func (mgpo *MacGuestProvisioningOptions) LogsInAutomatically() bool
LogsInAutomatically reports whether to automatically log in the person at startup.
func (*MacGuestProvisioningOptions) Password ¶
func (mgpo *MacGuestProvisioningOptions) Password() string
Password returns the password to configure for the macOS virtual machine.
func (*MacGuestProvisioningOptions) Username ¶
func (mgpo *MacGuestProvisioningOptions) Username() string
Username returns the username for logging into the macOS virtual machine.
func (*MacGuestProvisioningOptions) WithEnablesRemoteLogin ¶
func (mgpo *MacGuestProvisioningOptions) WithEnablesRemoteLogin(enablesRemoteLogin bool) *MacGuestProvisioningOptions
WithEnablesRemoteLogin sets a Boolean value that indicates whether to enable Remote Login (using SSH) for the macOS virtual machine.
func (*MacGuestProvisioningOptions) WithFullName ¶
func (mgpo *MacGuestProvisioningOptions) WithFullName(fullName string) *MacGuestProvisioningOptions
WithFullName sets a person’s full name to configure for the macOS virtual machine.
func (*MacGuestProvisioningOptions) WithLogsInAutomatically ¶
func (mgpo *MacGuestProvisioningOptions) WithLogsInAutomatically(logsInAutomatically bool) *MacGuestProvisioningOptions
WithLogsInAutomatically sets a Boolean value that indicates whether to automatically log in the person at startup.
func (*MacGuestProvisioningOptions) WithPassword ¶
func (mgpo *MacGuestProvisioningOptions) WithPassword(password string) *MacGuestProvisioningOptions
WithPassword sets the password to configure for the macOS virtual machine.
func (*MacGuestProvisioningOptions) WithUsername ¶
func (mgpo *MacGuestProvisioningOptions) WithUsername(username string) *MacGuestProvisioningOptions
WithUsername sets the username for logging into the macOS virtual machine.
type MacHardwareModel ¶ added in v0.17.0
MacHardwareModel is an idiomatic wrapper over the Objective-C class VZMacHardwareModel.
A specification for the hardware elements and configurations present in a particular Mac hardware model.
func MacHardwareModelFromID ¶ added in v0.17.0
func MacHardwareModelFromID(id objc.ID) *MacHardwareModel
MacHardwareModelFromID adopts an existing Objective-C object as a MacHardwareModel (nil for 0), retaining it and registering a release finalizer.
func NewMACHardwareModelWithDataRepresentation ¶ added in v0.17.0
func NewMACHardwareModelWithDataRepresentation(dataRepresentation []byte) *MacHardwareModel
NewMACHardwareModelWithDataRepresentation creates an instance of the hardware model described by the specified data representation.
func (*MacHardwareModel) DataRepresentation ¶ added in v0.17.0
func (mhm *MacHardwareModel) DataRepresentation() []byte
DataRepresentation returns opaque data representation of the hardware model. This can be used to recreate the same hardware model with -[VZMacHardwareModel initWithDataRepresentation:].
func (*MacHardwareModel) Description ¶ added in v0.17.0
func (mhm *MacHardwareModel) Description() string
Description returns the object's -description text.
func (*MacHardwareModel) IsEqual ¶ added in v0.17.0
func (mhm *MacHardwareModel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*MacHardwareModel) IsKind ¶ added in v0.17.0
func (mhm *MacHardwareModel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*MacHardwareModel) IsSupported ¶ added in v0.17.0
func (mhm *MacHardwareModel) IsSupported() bool
IsSupported reports whether this hardware model is supported by the host. 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.
func (*MacHardwareModel) String ¶ added in v0.17.0
func (mhm *MacHardwareModel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type MacKeyboardConfiguration ¶ added in v0.17.0
type MacKeyboardConfiguration struct {
KeyboardConfiguration
}
MacKeyboardConfiguration is an idiomatic wrapper over the Objective-C class VZMacKeyboardConfiguration.
It embeds KeyboardConfiguration, promoting that type's methods.
A device that defines the configuration for a Mac keyboard.
func MacKeyboardConfigurationFromID ¶ added in v0.17.0
func MacKeyboardConfigurationFromID(id objc.ID) *MacKeyboardConfiguration
MacKeyboardConfigurationFromID adopts an existing Objective-C object as a MacKeyboardConfiguration (nil for 0), retaining it and registering a release finalizer.
func NewMacKeyboardConfiguration ¶ added in v0.17.0
func NewMacKeyboardConfiguration() *MacKeyboardConfiguration
NewMacKeyboardConfiguration creates a new MacKeyboardConfiguration.
type MacMachineIdentifier ¶ added in v0.17.0
MacMachineIdentifier is an idiomatic wrapper over the Objective-C class VZMacMachineIdentifier.
A unique identifier for a VM.
func MacMachineIdentifierFromID ¶ added in v0.17.0
func MacMachineIdentifierFromID(id objc.ID) *MacMachineIdentifier
MacMachineIdentifierFromID adopts an existing Objective-C object as a MacMachineIdentifier (nil for 0), retaining it and registering a release finalizer.
func NewMACMachineIdentifierWithDataRepresentation ¶ added in v0.17.0
func NewMACMachineIdentifierWithDataRepresentation(dataRepresentation []byte) *MacMachineIdentifier
NewMACMachineIdentifierWithDataRepresentation create a machine identifier described by the specified data representation.
func NewMacMachineIdentifier ¶ added in v0.17.0
func NewMacMachineIdentifier() *MacMachineIdentifier
NewMacMachineIdentifier creates a new MacMachineIdentifier.
func (*MacMachineIdentifier) DataRepresentation ¶ added in v0.17.0
func (mmi *MacMachineIdentifier) DataRepresentation() []byte
DataRepresentation returns the data representation.
func (*MacMachineIdentifier) Description ¶ added in v0.17.0
func (mmi *MacMachineIdentifier) Description() string
Description returns the object's -description text.
func (*MacMachineIdentifier) IsEqual ¶ added in v0.17.0
func (mmi *MacMachineIdentifier) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*MacMachineIdentifier) IsKind ¶ added in v0.17.0
func (mmi *MacMachineIdentifier) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*MacMachineIdentifier) String ¶ added in v0.17.0
func (mmi *MacMachineIdentifier) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type MacOSBootLoader ¶ added in v0.17.0
type MacOSBootLoader struct {
BootLoader
}
MacOSBootLoader is an idiomatic wrapper over the Objective-C class VZMacOSBootLoader.
It embeds BootLoader, promoting that type's methods.
An object that loads and configures a boot loader for running macOS on Apple silicon as a guest system of your VM.
func MacOSBootLoaderFromID ¶ added in v0.17.0
func MacOSBootLoaderFromID(id objc.ID) *MacOSBootLoader
MacOSBootLoaderFromID adopts an existing Objective-C object as a MacOSBootLoader (nil for 0), retaining it and registering a release finalizer.
func NewMacOSBootLoader ¶ added in v0.17.0
func NewMacOSBootLoader() *MacOSBootLoader
NewMacOSBootLoader creates a new MacOSBootLoader.
type MacOSConfigurationRequirements ¶ added in v0.17.0
MacOSConfigurationRequirements is an idiomatic wrapper over the Objective-C class VZMacOSConfigurationRequirements.
An object that describes the parameter constraints required by a specific configuration of macOS.
func MacOSConfigurationRequirementsFromID ¶ added in v0.17.0
func MacOSConfigurationRequirementsFromID(id objc.ID) *MacOSConfigurationRequirements
MacOSConfigurationRequirementsFromID adopts an existing Objective-C object as a MacOSConfigurationRequirements (nil for 0), retaining it and registering a release finalizer.
func NewMacOSConfigurationRequirements ¶ added in v0.17.0
func NewMacOSConfigurationRequirements() *MacOSConfigurationRequirements
NewMacOSConfigurationRequirements creates a new MacOSConfigurationRequirements.
func (*MacOSConfigurationRequirements) Description ¶ added in v0.17.0
func (mocr *MacOSConfigurationRequirements) Description() string
Description returns the object's -description text.
func (*MacOSConfigurationRequirements) HardwareModel ¶ added in v0.17.0
func (mocr *MacOSConfigurationRequirements) HardwareModel() *MacHardwareModel
HardwareModel returns the hardware model for this configuration. 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.
func (*MacOSConfigurationRequirements) IsEqual ¶ added in v0.17.0
func (mocr *MacOSConfigurationRequirements) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*MacOSConfigurationRequirements) IsKind ¶ added in v0.17.0
func (mocr *MacOSConfigurationRequirements) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*MacOSConfigurationRequirements) MinimumSupportedCPUCount ¶ added in v0.17.0
func (mocr *MacOSConfigurationRequirements) MinimumSupportedCPUCount() int
MinimumSupportedCPUCount returns the minimum supported number of CPUs for this configuration. 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 (*MacOSConfigurationRequirements) MinimumSupportedMemorySize ¶ added in v0.17.0
func (mocr *MacOSConfigurationRequirements) MinimumSupportedMemorySize() uint64
MinimumSupportedMemorySize returns the minimum supported memory size for this configuration. 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.
func (*MacOSConfigurationRequirements) String ¶ added in v0.17.0
func (mocr *MacOSConfigurationRequirements) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type MacOSInstaller ¶ added in v0.17.0
MacOSInstaller is an idiomatic wrapper over the Objective-C class VZMacOSInstaller.
An object you use to install macOS on the specified virtual machine.
func MacOSInstallerFromID ¶ added in v0.17.0
func MacOSInstallerFromID(id objc.ID) *MacOSInstaller
MacOSInstallerFromID adopts an existing Objective-C object as a MacOSInstaller (nil for 0), retaining it and registering a release finalizer.
func NewMACOSInstallerWithVirtualMachineRestoreImageURL ¶ added in v0.17.0
func NewMACOSInstallerWithVirtualMachineRestoreImageURL(virtualMachine *VirtualMachine, restoreImageFileURL string) *MacOSInstaller
NewMACOSInstallerWithVirtualMachineRestoreImageURL creates a macOS installer object.
func (*MacOSInstaller) Description ¶ added in v0.17.0
func (moi *MacOSInstaller) Description() string
Description returns the object's -description text.
func (*MacOSInstaller) Install ¶ added in v0.17.0
func (moi *MacOSInstaller) Install(ctx context.Context) error
Install start installing macOS.
Install blocks until the operation completes or ctx is cancelled.
func (*MacOSInstaller) IsEqual ¶ added in v0.17.0
func (moi *MacOSInstaller) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*MacOSInstaller) IsKind ¶ added in v0.17.0
func (moi *MacOSInstaller) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*MacOSInstaller) Progress ¶ added in v0.17.0
func (moi *MacOSInstaller) Progress() *foundation.Progress
Progress returns an NSProgress object that can be used to observe or cancel installation. If the progress object is cancelled before installation is started, an exception will be raised.
func (*MacOSInstaller) RestoreImageURL ¶ added in v0.17.0
func (moi *MacOSInstaller) RestoreImageURL() string
RestoreImageURL returns the restore image URL that this installer was initialized with.
func (*MacOSInstaller) String ¶ added in v0.17.0
func (moi *MacOSInstaller) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*MacOSInstaller) VirtualMachine ¶ added in v0.17.0
func (moi *MacOSInstaller) VirtualMachine() *VirtualMachine
VirtualMachine returns the virtual machine that this installer was initialized with.
type MacOSRestoreImage ¶ added in v0.17.0
MacOSRestoreImage is an idiomatic wrapper over the Objective-C class VZMacOSRestoreImage.
An object that describes a version of macOS to install on to a virtual machine.
func FetchLatestSupported ¶ added in v0.17.0
func FetchLatestSupported(ctx context.Context) (result *MacOSRestoreImage, err error)
FetchLatestSupported fetches the latest restore image supported by this host from the network.
FetchLatestSupported blocks until the operation completes or ctx is cancelled.
func LoadFileURL ¶ added in v0.17.0
func LoadFileURL(ctx context.Context, fileURL string) (result *MacOSRestoreImage, err error)
LoadFileURL load a restore image from a file on the local file system.
LoadFileURL blocks until the operation completes or ctx is cancelled.
func MacOSRestoreImageFromID ¶ added in v0.17.0
func MacOSRestoreImageFromID(id objc.ID) *MacOSRestoreImage
MacOSRestoreImageFromID adopts an existing Objective-C object as a MacOSRestoreImage (nil for 0), retaining it and registering a release finalizer.
func NewMacOSRestoreImage ¶ added in v0.17.0
func NewMacOSRestoreImage() *MacOSRestoreImage
NewMacOSRestoreImage creates a new MacOSRestoreImage.
func (*MacOSRestoreImage) BuildVersion ¶ added in v0.17.0
func (mori *MacOSRestoreImage) BuildVersion() string
BuildVersion returns the build version this restore image contains.
func (*MacOSRestoreImage) Description ¶ added in v0.17.0
func (mori *MacOSRestoreImage) Description() string
Description returns the object's -description text.
func (*MacOSRestoreImage) IsEqual ¶ added in v0.17.0
func (mori *MacOSRestoreImage) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*MacOSRestoreImage) IsKind ¶ added in v0.17.0
func (mori *MacOSRestoreImage) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*MacOSRestoreImage) IsSupported ¶ added in v0.17.0
func (mori *MacOSRestoreImage) IsSupported() bool
IsSupported reports whether this restore image is supported on the current host.
func (*MacOSRestoreImage) MostFeaturefulSupportedConfiguration ¶ added in v0.17.0
func (mori *MacOSRestoreImage) MostFeaturefulSupportedConfiguration() *MacOSConfigurationRequirements
MostFeaturefulSupportedConfiguration returns the configuration requirements for the most featureful configuration supported by the current host and by this restore image. 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 (*MacOSRestoreImage) OperatingSystemVersion ¶ added in v0.17.0
func (mori *MacOSRestoreImage) OperatingSystemVersion() foundation.NSOperatingSystemVersion
OperatingSystemVersion returns the operating system version this restore image contains.
func (*MacOSRestoreImage) String ¶ added in v0.17.0
func (mori *MacOSRestoreImage) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*MacOSRestoreImage) URL ¶ added in v0.17.0
func (mori *MacOSRestoreImage) URL() string
URL returns the URL of this restore image. 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 MacOSVirtualMachineStartOptions ¶ added in v0.17.0
type MacOSVirtualMachineStartOptions struct {
VirtualMachineStartOptions
}
MacOSVirtualMachineStartOptions is an idiomatic wrapper over the Objective-C class VZMacOSVirtualMachineStartOptions.
It embeds VirtualMachineStartOptions, promoting that type's methods.
A class that describes start options for macOS VMs.
func MacOSVirtualMachineStartOptionsFromID ¶ added in v0.17.0
func MacOSVirtualMachineStartOptionsFromID(id objc.ID) *MacOSVirtualMachineStartOptions
MacOSVirtualMachineStartOptionsFromID adopts an existing Objective-C object as a MacOSVirtualMachineStartOptions (nil for 0), retaining it and registering a release finalizer.
func NewMacOSVirtualMachineStartOptions ¶ added in v0.17.0
func NewMacOSVirtualMachineStartOptions() *MacOSVirtualMachineStartOptions
NewMacOSVirtualMachineStartOptions creates a new MacOSVirtualMachineStartOptions.
func (*MacOSVirtualMachineStartOptions) GuestProvisioningOptions ¶
func (movmso *MacOSVirtualMachineStartOptions) GuestProvisioningOptions() *MacGuestProvisioningOptions
GuestProvisioningOptions returns a value that controls provisioning a macOS guest. This property allows someone to provision a macOS guest by setting “VZMacGuestProvisioningOptions“.
func (*MacOSVirtualMachineStartOptions) SetGuestProvisioning ¶
func (movmso *MacOSVirtualMachineStartOptions) SetGuestProvisioning(guestProvisioningOptions *MacGuestProvisioningOptions) error
SetGuestProvisioning sets guest provisioning options with validation.
func (*MacOSVirtualMachineStartOptions) StartUpFromMACOSRecovery ¶ added in v0.17.0
func (movmso *MacOSVirtualMachineStartOptions) StartUpFromMACOSRecovery() bool
StartUpFromMACOSRecovery reports whether to start up from macOS Recovery.
func (*MacOSVirtualMachineStartOptions) WithStartUpFromMACOSRecovery ¶ added in v0.17.0
func (movmso *MacOSVirtualMachineStartOptions) WithStartUpFromMACOSRecovery(startUpFromMacOSRecovery bool) *MacOSVirtualMachineStartOptions
WithStartUpFromMACOSRecovery sets a Boolean value that indicates whether the macOS guest should start in recovery mode.
type MacPlatformConfiguration ¶ added in v0.17.0
type MacPlatformConfiguration struct {
PlatformConfiguration
}
MacPlatformConfiguration is an idiomatic wrapper over the Objective-C class VZMacPlatformConfiguration.
It embeds PlatformConfiguration, promoting that type's methods.
The platform configuration for booting macOS on Apple silicon.
func MacPlatformConfigurationFromID ¶ added in v0.17.0
func MacPlatformConfigurationFromID(id objc.ID) *MacPlatformConfiguration
MacPlatformConfigurationFromID adopts an existing Objective-C object as a MacPlatformConfiguration (nil for 0), retaining it and registering a release finalizer.
func NewMacPlatformConfiguration ¶ added in v0.17.0
func NewMacPlatformConfiguration() *MacPlatformConfiguration
NewMacPlatformConfiguration creates a new MacPlatformConfiguration.
func (*MacPlatformConfiguration) AuxiliaryStorage ¶ added in v0.17.0
func (mpc *MacPlatformConfiguration) AuxiliaryStorage() *MacAuxiliaryStorage
AuxiliaryStorage returns the Mac auxiliary storage. When creating a virtual machine from scratch, the hardware model of the `auxiliaryStorage` must match the hardware model of the `hardwareModel` property.
func (*MacPlatformConfiguration) HardwareModel ¶ added in v0.17.0
func (mpc *MacPlatformConfiguration) HardwareModel() *MacHardwareModel
HardwareModel returns the Mac hardware model.
func (*MacPlatformConfiguration) MachineIdentifier ¶ added in v0.17.0
func (mpc *MacPlatformConfiguration) MachineIdentifier() *MacMachineIdentifier
MachineIdentifier returns the unique Mac machine identifier. Running two virtual machines concurrently with the same identifier results in undefined behavior in the guest operating system.
func (*MacPlatformConfiguration) WithAuxiliaryStorage ¶ added in v0.17.0
func (mpc *MacPlatformConfiguration) WithAuxiliaryStorage(auxiliaryStorage *MacAuxiliaryStorage) *MacPlatformConfiguration
WithAuxiliaryStorage sets the Mac auxiliary storage.
func (*MacPlatformConfiguration) WithHardwareModel ¶ added in v0.17.0
func (mpc *MacPlatformConfiguration) WithHardwareModel(hardwareModel *MacHardwareModel) *MacPlatformConfiguration
WithHardwareModel sets the Mac hardware model.
func (*MacPlatformConfiguration) WithMachineIdentifier ¶ added in v0.17.0
func (mpc *MacPlatformConfiguration) WithMachineIdentifier(machineIdentifier *MacMachineIdentifier) *MacPlatformConfiguration
WithMachineIdentifier sets the Mac machine identifier.
type MacTrackpadConfiguration ¶ added in v0.17.0
type MacTrackpadConfiguration struct {
PointingDeviceConfiguration
}
MacTrackpadConfiguration is an idiomatic wrapper over the Objective-C class VZMacTrackpadConfiguration.
It embeds PointingDeviceConfiguration, promoting that type's methods.
The class that represents the configuration for a Mac trackpad.
func MacTrackpadConfigurationFromID ¶ added in v0.17.0
func MacTrackpadConfigurationFromID(id objc.ID) *MacTrackpadConfiguration
MacTrackpadConfigurationFromID adopts an existing Objective-C object as a MacTrackpadConfiguration (nil for 0), retaining it and registering a release finalizer.
func NewMacTrackpadConfiguration ¶ added in v0.17.0
func NewMacTrackpadConfiguration() *MacTrackpadConfiguration
NewMacTrackpadConfiguration creates a new MacTrackpadConfiguration.
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MemoryBalloonDevice ¶ added in v0.17.0
MemoryBalloonDevice is an idiomatic wrapper over the Objective-C class VZMemoryBalloonDevice.
MemoryBalloonDevice is an abstract base — you do not construct it directly. Construct one of VirtioTraditionalMemoryBalloonDevice and pass it where a MemoryBalloonDevice is accepted.
The common behavior for memory devices.
func MemoryBalloonDeviceFromID ¶ added in v0.17.0
func MemoryBalloonDeviceFromID(id objc.ID) *MemoryBalloonDevice
MemoryBalloonDeviceFromID adopts an existing Objective-C object as a MemoryBalloonDevice (nil for 0), retaining it and registering a release finalizer.
func (*MemoryBalloonDevice) Description ¶ added in v0.17.0
func (mbd *MemoryBalloonDevice) Description() string
Description returns the object's -description text.
func (*MemoryBalloonDevice) IsEqual ¶ added in v0.17.0
func (mbd *MemoryBalloonDevice) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*MemoryBalloonDevice) IsKind ¶ added in v0.17.0
func (mbd *MemoryBalloonDevice) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*MemoryBalloonDevice) String ¶ added in v0.17.0
func (mbd *MemoryBalloonDevice) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type MemoryBalloonDeviceConfiguration ¶ added in v0.17.0
MemoryBalloonDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZMemoryBalloonDeviceConfiguration.
MemoryBalloonDeviceConfiguration is an abstract base — you do not construct it directly. Construct one of VirtioTraditionalMemoryBalloonDeviceConfiguration and pass it where a MemoryBalloonDeviceConfiguration is accepted.
The common configuration traits for memory balloon devices.
func MemoryBalloonDeviceConfigurationFromID ¶ added in v0.17.0
func MemoryBalloonDeviceConfigurationFromID(id objc.ID) *MemoryBalloonDeviceConfiguration
MemoryBalloonDeviceConfigurationFromID adopts an existing Objective-C object as a MemoryBalloonDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*MemoryBalloonDeviceConfiguration) Description ¶ added in v0.17.0
func (mbdc *MemoryBalloonDeviceConfiguration) Description() string
Description returns the object's -description text.
func (*MemoryBalloonDeviceConfiguration) IsEqual ¶ added in v0.17.0
func (mbdc *MemoryBalloonDeviceConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*MemoryBalloonDeviceConfiguration) IsKind ¶ added in v0.17.0
func (mbdc *MemoryBalloonDeviceConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*MemoryBalloonDeviceConfiguration) String ¶ added in v0.17.0
func (mbdc *MemoryBalloonDeviceConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type MemoryBalloonDeviceConfigurationProvider ¶ added in v0.17.0
type MemoryBalloonDeviceConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
MemoryBalloonDeviceConfigurationProvider is accepted wherever a VZMemoryBalloonDeviceConfiguration (or one of its subclasses) is expected.
type MemoryBalloonDeviceProvider ¶ added in v0.17.0
type MemoryBalloonDeviceProvider interface {
objref.Object
// contains filtered or unexported methods
}
MemoryBalloonDeviceProvider is accepted wherever a VZMemoryBalloonDevice (or one of its subclasses) is expected.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type MultipleDirectoryShare ¶ added in v0.17.0
type MultipleDirectoryShare struct {
}
MultipleDirectoryShare is an idiomatic wrapper over the Objective-C class VZMultipleDirectoryShare.
It embeds DirectoryShare, promoting that type's methods.
An object that describes a directory share for multiple directories.
func MultipleDirectoryShareFromID ¶ added in v0.17.0
func MultipleDirectoryShareFromID(id objc.ID) *MultipleDirectoryShare
MultipleDirectoryShareFromID adopts an existing Objective-C object as a MultipleDirectoryShare (nil for 0), retaining it and registering a release finalizer.
func NewMultipleDirectoryShare ¶ added in v0.17.0
func NewMultipleDirectoryShare() *MultipleDirectoryShare
NewMultipleDirectoryShare creates a new MultipleDirectoryShare.
func NewMultipleDirectoryShareWithDirectories ¶ added in v0.17.0
func NewMultipleDirectoryShareWithDirectories(directories map[string]*SharedDirectory) *MultipleDirectoryShare
NewMultipleDirectoryShareWithDirectories creates the directory share with a set of directories on the host.
func (*MultipleDirectoryShare) Directories ¶ added in v0.17.0
func (mds *MultipleDirectoryShare) Directories() map[string]*SharedDirectory
Directories returns the directories on the host to expose to the guest. The dictionary string keys will be the name for the directory. The keys must be valid names or an exception will be raised.
type NATNetworkDeviceAttachment ¶ added in v0.17.0
type NATNetworkDeviceAttachment struct {
NetworkDeviceAttachment
}
NATNetworkDeviceAttachment is an idiomatic wrapper over the Objective-C class VZNATNetworkDeviceAttachment.
It embeds NetworkDeviceAttachment, promoting that type's methods.
A device that routes network requests through the host computer and performs network address translation on the resulting packets.
func NATNetworkDeviceAttachmentFromID ¶ added in v0.17.0
func NATNetworkDeviceAttachmentFromID(id objc.ID) *NATNetworkDeviceAttachment
NATNetworkDeviceAttachmentFromID adopts an existing Objective-C object as a NATNetworkDeviceAttachment (nil for 0), retaining it and registering a release finalizer.
func NewNATNetworkDeviceAttachment ¶ added in v0.17.0
func NewNATNetworkDeviceAttachment() *NATNetworkDeviceAttachment
NewNATNetworkDeviceAttachment creates a new NATNetworkDeviceAttachment.
type NVMExpressControllerDeviceConfiguration ¶ added in v0.17.0
type NVMExpressControllerDeviceConfiguration struct {
StorageDeviceConfiguration
}
NVMExpressControllerDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZNVMExpressControllerDeviceConfiguration.
It embeds StorageDeviceConfiguration, promoting that type's methods.
The configuration object that represents an NVM Express Controller storage device.
func NVMExpressControllerDeviceConfigurationFromID ¶ added in v0.17.0
func NVMExpressControllerDeviceConfigurationFromID(id objc.ID) *NVMExpressControllerDeviceConfiguration
NVMExpressControllerDeviceConfigurationFromID adopts an existing Objective-C object as a NVMExpressControllerDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func NewNVMExpressControllerDeviceConfigurationWithAttachment ¶ added in v0.17.0
func NewNVMExpressControllerDeviceConfigurationWithAttachment(attachment *StorageDeviceAttachment) *NVMExpressControllerDeviceConfiguration
NewNVMExpressControllerDeviceConfigurationWithAttachment creates a new NVM Express controller configuration with the storage device attachment you provide.
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
String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.
type NegotiatedVirtioFeatureSet ¶
NegotiatedVirtioFeatureSet is an idiomatic wrapper over the Objective-C class VZNegotiatedVirtioFeatureSet.
Values that represent a set of negotiated Virtio feature bits.
func NegotiatedVirtioFeatureSetFromID ¶
func NegotiatedVirtioFeatureSetFromID(id objc.ID) *NegotiatedVirtioFeatureSet
NegotiatedVirtioFeatureSetFromID adopts an existing Objective-C object as a NegotiatedVirtioFeatureSet (nil for 0), retaining it and registering a release finalizer.
func NewNegotiatedVirtioFeatureSet ¶
func NewNegotiatedVirtioFeatureSet() *NegotiatedVirtioFeatureSet
NewNegotiatedVirtioFeatureSet creates a new NegotiatedVirtioFeatureSet.
func (*NegotiatedVirtioFeatureSet) Description ¶
func (nvfs *NegotiatedVirtioFeatureSet) Description() string
Description returns the object's -description text.
func (*NegotiatedVirtioFeatureSet) IsEqual ¶
func (nvfs *NegotiatedVirtioFeatureSet) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*NegotiatedVirtioFeatureSet) IsKind ¶
func (nvfs *NegotiatedVirtioFeatureSet) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*NegotiatedVirtioFeatureSet) String ¶
func (nvfs *NegotiatedVirtioFeatureSet) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*NegotiatedVirtioFeatureSet) Subset0 ¶
func (nvfs *NegotiatedVirtioFeatureSet) Subset0() uint32
Subset0 returns the values that represent feature bits 0 through 31.
func (*NegotiatedVirtioFeatureSet) Subset1 ¶
func (nvfs *NegotiatedVirtioFeatureSet) Subset1() uint32
Subset1 returns the value that represent feature bits 32 through 63.
type NetworkBlockDeviceStorageDeviceAttachment ¶ added in v0.17.0
type NetworkBlockDeviceStorageDeviceAttachment struct {
StorageDeviceAttachment
}
NetworkBlockDeviceStorageDeviceAttachment is an idiomatic wrapper over the Objective-C class VZNetworkBlockDeviceStorageDeviceAttachment.
It embeds StorageDeviceAttachment, promoting that type's methods.
A storage device attachment backed by a Network Block Device (NBD) client.
func NetworkBlockDeviceStorageDeviceAttachmentFromID ¶ added in v0.17.0
func NetworkBlockDeviceStorageDeviceAttachmentFromID(id objc.ID) *NetworkBlockDeviceStorageDeviceAttachment
NetworkBlockDeviceStorageDeviceAttachmentFromID adopts an existing Objective-C object as a NetworkBlockDeviceStorageDeviceAttachment (nil for 0), retaining it and registering a release finalizer.
func NewNetworkBlockDeviceStorageDeviceAttachmentWithURL ¶ added in v0.17.0
func NewNetworkBlockDeviceStorageDeviceAttachmentWithURL(url string) (result *NetworkBlockDeviceStorageDeviceAttachment, err error)
NewNetworkBlockDeviceStorageDeviceAttachmentWithURL creates a new network block device (NBD) storage attachment from an NDB Uniform Resource Indicator (URI) represented as a URL that you provide.
func NewNetworkBlockDeviceStorageDeviceAttachmentWithURLTimeoutForcedReadOnlySynchronizationMode ¶ added in v0.17.0
func NewNetworkBlockDeviceStorageDeviceAttachmentWithURLTimeoutForcedReadOnlySynchronizationMode(url string, timeout float64, forcedReadOnly bool, synchronizationMode DiskSynchronizationMode) (result *NetworkBlockDeviceStorageDeviceAttachment, err error)
NewNetworkBlockDeviceStorageDeviceAttachmentWithURLTimeoutForcedReadOnlySynchronizationMode 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 (*NetworkBlockDeviceStorageDeviceAttachment) IsForcedReadOnly ¶ added in v0.17.0
func (nbdsda *NetworkBlockDeviceStorageDeviceAttachment) IsForcedReadOnly() bool
IsForcedReadOnly reports whether the underlying disk attachment is forced to be read-only. 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 true 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 (*NetworkBlockDeviceStorageDeviceAttachment) SynchronizationMode ¶ added in v0.17.0
func (nbdsda *NetworkBlockDeviceStorageDeviceAttachment) SynchronizationMode() DiskSynchronizationMode
SynchronizationMode returns the mode in which the NBD client synchronizes data with the NBD server.
func (*NetworkBlockDeviceStorageDeviceAttachment) Timeout ¶ added in v0.17.0
func (nbdsda *NetworkBlockDeviceStorageDeviceAttachment) Timeout() float64
Timeout returns 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 (*NetworkBlockDeviceStorageDeviceAttachment) URL ¶ added in v0.17.0
func (nbdsda *NetworkBlockDeviceStorageDeviceAttachment) URL() string
URL returns URL referring to the NBD server to which the NBD client is to be connected.
func (*NetworkBlockDeviceStorageDeviceAttachment) WithDelegate ¶ added in v0.17.0
func (nbdsda *NetworkBlockDeviceStorageDeviceAttachment) WithDelegate(delegate NetworkBlockDeviceStorageDeviceAttachmentDelegate) *NetworkBlockDeviceStorageDeviceAttachment
WithDelegate sets the object that receives messages about changes to the network block device attachment.
type NetworkBlockDeviceStorageDeviceAttachmentDelegate ¶ added in v0.17.0
type NetworkBlockDeviceStorageDeviceAttachmentDelegate interface {
}
NetworkBlockDeviceStorageDeviceAttachmentDelegate receives the callbacks of the Objective-C protocol VZNetworkBlockDeviceStorageDeviceAttachmentDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (NetworkBlockDeviceStorageDeviceAttachmentDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type NetworkBlockDeviceStorageDeviceAttachmentDelegateAttachmentDidEncounterErrorHandler ¶ added in v0.17.0
type NetworkBlockDeviceStorageDeviceAttachmentDelegateAttachmentDidEncounterErrorHandler interface {
AttachmentDidEncounterError(attachment *NetworkBlockDeviceStorageDeviceAttachment, err error)
}
NetworkBlockDeviceStorageDeviceAttachmentDelegateAttachmentDidEncounterErrorHandler is the optional VZNetworkBlockDeviceStorageDeviceAttachmentDelegate method attachment:didEncounterError:. Implement it on a NetworkBlockDeviceStorageDeviceAttachmentDelegate value to receive that callback; a value without it is simply never sent one.
type NetworkBlockDeviceStorageDeviceAttachmentDelegateAttachmentWasConnectedHandler ¶ added in v0.17.0
type NetworkBlockDeviceStorageDeviceAttachmentDelegateAttachmentWasConnectedHandler interface {
AttachmentWasConnected(attachment *NetworkBlockDeviceStorageDeviceAttachment)
}
NetworkBlockDeviceStorageDeviceAttachmentDelegateAttachmentWasConnectedHandler is the optional VZNetworkBlockDeviceStorageDeviceAttachmentDelegate method attachmentWasConnected:. Implement it on a NetworkBlockDeviceStorageDeviceAttachmentDelegate value to receive that callback; a value without it is simply never sent one.
type NetworkDevice ¶ added in v0.17.0
NetworkDevice is an idiomatic wrapper over the Objective-C class VZNetworkDevice.
A base class that represents a network device in a virtual machine.
func NetworkDeviceFromID ¶ added in v0.17.0
func NetworkDeviceFromID(id objc.ID) *NetworkDevice
NetworkDeviceFromID adopts an existing Objective-C object as a NetworkDevice (nil for 0), retaining it and registering a release finalizer.
func NewNetworkDevice ¶ added in v0.17.0
func NewNetworkDevice() *NetworkDevice
NewNetworkDevice creates a new NetworkDevice.
func (*NetworkDevice) Attachment ¶ added in v0.17.0
func (nd *NetworkDevice) Attachment() *NetworkDeviceAttachment
Attachment returns the attachment.
func (*NetworkDevice) Description ¶ added in v0.17.0
func (nd *NetworkDevice) Description() string
Description returns the object's -description text.
func (*NetworkDevice) IsEqual ¶ added in v0.17.0
func (nd *NetworkDevice) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*NetworkDevice) IsKind ¶ added in v0.17.0
func (nd *NetworkDevice) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*NetworkDevice) String ¶ added in v0.17.0
func (nd *NetworkDevice) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*NetworkDevice) WithAttachment ¶ added in v0.17.0
func (nd *NetworkDevice) WithAttachment(attachment NetworkDeviceAttachmentProvider) *NetworkDevice
WithAttachment sets the network attachment that’s connected to this network device.
type NetworkDeviceAttachment ¶ added in v0.17.0
NetworkDeviceAttachment is an idiomatic wrapper over the Objective-C class VZNetworkDeviceAttachment.
NetworkDeviceAttachment is an abstract base — you do not construct it directly. Construct one of BridgedNetworkDeviceAttachment, FileHandleNetworkDeviceAttachment, NATNetworkDeviceAttachment, VmnetNetworkDeviceAttachment and pass it where a NetworkDeviceAttachment is accepted.
The common behaviors for the network attachment points of your virtual machine.
func NetworkDeviceAttachmentFromID ¶ added in v0.17.0
func NetworkDeviceAttachmentFromID(id objc.ID) *NetworkDeviceAttachment
NetworkDeviceAttachmentFromID adopts an existing Objective-C object as a NetworkDeviceAttachment (nil for 0), retaining it and registering a release finalizer.
func (*NetworkDeviceAttachment) Description ¶ added in v0.17.0
func (nda *NetworkDeviceAttachment) Description() string
Description returns the object's -description text.
func (*NetworkDeviceAttachment) IsEqual ¶ added in v0.17.0
func (nda *NetworkDeviceAttachment) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*NetworkDeviceAttachment) IsKind ¶ added in v0.17.0
func (nda *NetworkDeviceAttachment) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*NetworkDeviceAttachment) String ¶ added in v0.17.0
func (nda *NetworkDeviceAttachment) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type NetworkDeviceAttachmentProvider ¶ added in v0.17.0
type NetworkDeviceAttachmentProvider interface {
objref.Object
// contains filtered or unexported methods
}
NetworkDeviceAttachmentProvider is accepted wherever a VZNetworkDeviceAttachment (or one of its subclasses) is expected.
type NetworkDeviceConfiguration ¶ added in v0.17.0
NetworkDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZNetworkDeviceConfiguration.
NetworkDeviceConfiguration is an abstract base — you do not construct it directly. Construct one of VirtioNetworkDeviceConfiguration and pass it where a NetworkDeviceConfiguration is accepted.
The common configuration traits for network devices.
func NetworkDeviceConfigurationFromID ¶ added in v0.17.0
func NetworkDeviceConfigurationFromID(id objc.ID) *NetworkDeviceConfiguration
NetworkDeviceConfigurationFromID adopts an existing Objective-C object as a NetworkDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*NetworkDeviceConfiguration) Attachment ¶ added in v0.17.0
func (ndc *NetworkDeviceConfiguration) Attachment() *NetworkDeviceAttachment
Attachment returns network device attachment. Defines how the virtual device interfaces with the host system. The default is nil.
func (*NetworkDeviceConfiguration) Description ¶ added in v0.17.0
func (ndc *NetworkDeviceConfiguration) Description() string
Description returns the object's -description text.
func (*NetworkDeviceConfiguration) IsEqual ¶ added in v0.17.0
func (ndc *NetworkDeviceConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*NetworkDeviceConfiguration) IsKind ¶ added in v0.17.0
func (ndc *NetworkDeviceConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*NetworkDeviceConfiguration) MACAddress ¶ added in v0.17.0
func (ndc *NetworkDeviceConfiguration) MACAddress() *MACAddress
MACAddress returns the media access control address of the device. The default is a random, locally administered, unicast address.
func (*NetworkDeviceConfiguration) String ¶ added in v0.17.0
func (ndc *NetworkDeviceConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*NetworkDeviceConfiguration) WithAttachment ¶ added in v0.17.0
func (ndc *NetworkDeviceConfiguration) WithAttachment(attachment NetworkDeviceAttachmentProvider) *NetworkDeviceConfiguration
WithAttachment sets the object that defines how the virtual network device communicates with the host system.
func (*NetworkDeviceConfiguration) WithMACAddress ¶ added in v0.17.0
func (ndc *NetworkDeviceConfiguration) WithMACAddress(macAddress *MACAddress) *NetworkDeviceConfiguration
WithMACAddress sets the media access control (MAC) address to assign to the network device.
type NetworkDeviceConfigurationProvider ¶ added in v0.17.0
type NetworkDeviceConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
NetworkDeviceConfigurationProvider is accepted wherever a VZNetworkDeviceConfiguration (or one of its subclasses) is expected.
type OSUnfairLockFlags ¶ added in v0.17.0
type OSUnfairLockFlags uint32
Bitmask — values may be combined with |.
const ( OSUnfairLockFlagsNone OSUnfairLockFlags = 0 OSUnfairLockFlagsAdaptiveSpin OSUnfairLockFlags = 262144 )
func (OSUnfairLockFlags) String ¶ added in v0.17.0
func (e OSUnfairLockFlags) String() string
String returns the OSUnfairLockFlags constant's name, or its numeric form when the value is not a known constant.
type PMPageToPaperMappingType ¶
type PMPageToPaperMappingType int32
const ( KPMPageToPaperMappingNone PMPageToPaperMappingType = 1 KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2 )
func (PMPageToPaperMappingType) String ¶
func (e PMPageToPaperMappingType) String() string
String returns the PMPageToPaperMappingType constant's name, or its numeric form when the value is not a known constant.
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PlatformConfiguration ¶ added in v0.17.0
PlatformConfiguration is an idiomatic wrapper over the Objective-C class VZPlatformConfiguration.
PlatformConfiguration is an abstract base — you do not construct it directly. Construct one of GenericPlatformConfiguration, MacPlatformConfiguration and pass it where a PlatformConfiguration is accepted.
The base class for a platform configuration.
func PlatformConfigurationFromID ¶ added in v0.17.0
func PlatformConfigurationFromID(id objc.ID) *PlatformConfiguration
PlatformConfigurationFromID adopts an existing Objective-C object as a PlatformConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*PlatformConfiguration) Description ¶ added in v0.17.0
func (pc *PlatformConfiguration) Description() string
Description returns the object's -description text.
func (*PlatformConfiguration) IsEqual ¶ added in v0.17.0
func (pc *PlatformConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*PlatformConfiguration) IsKind ¶ added in v0.17.0
func (pc *PlatformConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*PlatformConfiguration) String ¶ added in v0.17.0
func (pc *PlatformConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type PlatformConfigurationProvider ¶ added in v0.17.0
type PlatformConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
PlatformConfigurationProvider is accepted wherever a VZPlatformConfiguration (or one of its subclasses) is expected.
type PointingDeviceConfiguration ¶ added in v0.17.0
PointingDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZPointingDeviceConfiguration.
PointingDeviceConfiguration is an abstract base — you do not construct it directly. Construct one of MacTrackpadConfiguration, USBScreenCoordinatePointingDeviceConfiguration and pass it where a PointingDeviceConfiguration is accepted.
The base class for a pointing device configuration.
func PointingDeviceConfigurationFromID ¶ added in v0.17.0
func PointingDeviceConfigurationFromID(id objc.ID) *PointingDeviceConfiguration
PointingDeviceConfigurationFromID adopts an existing Objective-C object as a PointingDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*PointingDeviceConfiguration) Description ¶ added in v0.17.0
func (pdc *PointingDeviceConfiguration) Description() string
Description returns the object's -description text.
func (*PointingDeviceConfiguration) IsEqual ¶ added in v0.17.0
func (pdc *PointingDeviceConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*PointingDeviceConfiguration) IsKind ¶ added in v0.17.0
func (pdc *PointingDeviceConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*PointingDeviceConfiguration) String ¶ added in v0.17.0
func (pdc *PointingDeviceConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type PointingDeviceConfigurationProvider ¶ added in v0.17.0
type PointingDeviceConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
PointingDeviceConfigurationProvider is accepted wherever a VZPointingDeviceConfiguration (or one of its subclasses) is expected.
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type SerialPortAttachment ¶ added in v0.17.0
SerialPortAttachment is an idiomatic wrapper over the Objective-C class VZSerialPortAttachment.
SerialPortAttachment is an abstract base — you do not construct it directly. Construct one of FileHandleSerialPortAttachment, FileSerialPortAttachment, SpiceAgentPortAttachment and pass it where a SerialPortAttachment is accepted.
The common behaviors for the serial attachment points of your virtual machine.
func SerialPortAttachmentFromID ¶ added in v0.17.0
func SerialPortAttachmentFromID(id objc.ID) *SerialPortAttachment
SerialPortAttachmentFromID adopts an existing Objective-C object as a SerialPortAttachment (nil for 0), retaining it and registering a release finalizer.
func (*SerialPortAttachment) Description ¶ added in v0.17.0
func (spa *SerialPortAttachment) Description() string
Description returns the object's -description text.
func (*SerialPortAttachment) IsEqual ¶ added in v0.17.0
func (spa *SerialPortAttachment) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*SerialPortAttachment) IsKind ¶ added in v0.17.0
func (spa *SerialPortAttachment) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*SerialPortAttachment) String ¶ added in v0.17.0
func (spa *SerialPortAttachment) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type SerialPortAttachmentProvider ¶ added in v0.17.0
type SerialPortAttachmentProvider interface {
objref.Object
// contains filtered or unexported methods
}
SerialPortAttachmentProvider is accepted wherever a VZSerialPortAttachment (or one of its subclasses) is expected.
type SerialPortConfiguration ¶ added in v0.17.0
SerialPortConfiguration is an idiomatic wrapper over the Objective-C class VZSerialPortConfiguration.
SerialPortConfiguration is an abstract base — you do not construct it directly. Construct one of VirtioConsoleDeviceSerialPortConfiguration and pass it where a SerialPortConfiguration is accepted.
The common configuration traits for serial port requests.
func SerialPortConfigurationFromID ¶ added in v0.17.0
func SerialPortConfigurationFromID(id objc.ID) *SerialPortConfiguration
SerialPortConfigurationFromID adopts an existing Objective-C object as a SerialPortConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*SerialPortConfiguration) Attachment ¶ added in v0.17.0
func (spc *SerialPortConfiguration) Attachment() *SerialPortAttachment
Attachment returns the attachment.
func (*SerialPortConfiguration) Description ¶ added in v0.17.0
func (spc *SerialPortConfiguration) Description() string
Description returns the object's -description text.
func (*SerialPortConfiguration) IsEqual ¶ added in v0.17.0
func (spc *SerialPortConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*SerialPortConfiguration) IsKind ¶ added in v0.17.0
func (spc *SerialPortConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*SerialPortConfiguration) String ¶ added in v0.17.0
func (spc *SerialPortConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*SerialPortConfiguration) WithAttachment ¶ added in v0.17.0
func (spc *SerialPortConfiguration) WithAttachment(attachment SerialPortAttachmentProvider) *SerialPortConfiguration
WithAttachment sets the object that defines how the configuration of the virtual machine’s serial port interfaces.
type SerialPortConfigurationProvider ¶ added in v0.17.0
type SerialPortConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
SerialPortConfigurationProvider is accepted wherever a VZSerialPortConfiguration (or one of its subclasses) is expected.
type SharedDirectory ¶ added in v0.17.0
type SharedDirectory struct {
}
SharedDirectory is an idiomatic wrapper over the Objective-C class VZSharedDirectory.
A directory on the host that you can expose to a guest.
func NewSharedDirectoryWithURLReadOnly ¶ added in v0.17.0
func NewSharedDirectoryWithURLReadOnly(url string, readOnly bool) *SharedDirectory
NewSharedDirectoryWithURLReadOnly initialize with a host directory.
func SharedDirectoryFromID ¶ added in v0.17.0
func SharedDirectoryFromID(id objc.ID) *SharedDirectory
SharedDirectoryFromID adopts an existing Objective-C object as a SharedDirectory (nil for 0), retaining it and registering a release finalizer.
func (*SharedDirectory) Description ¶ added in v0.17.0
func (sd *SharedDirectory) Description() string
Description returns the object's -description text.
func (*SharedDirectory) IsEqual ¶ added in v0.17.0
func (sd *SharedDirectory) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*SharedDirectory) IsKind ¶ added in v0.17.0
func (sd *SharedDirectory) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*SharedDirectory) IsReadOnly ¶ added in v0.17.0
func (sd *SharedDirectory) IsReadOnly() bool
IsReadOnly reports whether the directory will be exposed as read-only to the guest.
func (*SharedDirectory) String ¶ added in v0.17.0
func (sd *SharedDirectory) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*SharedDirectory) URL ¶ added in v0.17.0
func (sd *SharedDirectory) URL() string
URL returns file URL to a directory on the host to expose to the guest. The URL must point to an existing directory path in the host file system.
type SingleDirectoryShare ¶ added in v0.17.0
type SingleDirectoryShare struct {
}
SingleDirectoryShare is an idiomatic wrapper over the Objective-C class VZSingleDirectoryShare.
It embeds DirectoryShare, promoting that type's methods.
An object that defines the directory share for a single directory.
func NewSingleDirectoryShareWithDirectory ¶ added in v0.17.0
func NewSingleDirectoryShareWithDirectory(directory *SharedDirectory) *SingleDirectoryShare
NewSingleDirectoryShareWithDirectory creates a directory share with a directory that you specify on the host.
func SingleDirectoryShareFromID ¶ added in v0.17.0
func SingleDirectoryShareFromID(id objc.ID) *SingleDirectoryShare
SingleDirectoryShareFromID adopts an existing Objective-C object as a SingleDirectoryShare (nil for 0), retaining it and registering a release finalizer.
func (*SingleDirectoryShare) Directory ¶ added in v0.17.0
func (sds *SingleDirectoryShare) Directory() *SharedDirectory
Directory returns the directory.
type SocketDevice ¶ added in v0.17.0
SocketDevice is an idiomatic wrapper over the Objective-C class VZSocketDevice.
SocketDevice is an abstract base — you do not construct it directly. Construct one of VirtioSocketDevice and pass it where a SocketDevice is accepted.
The common behavior of socket devices.
func SocketDeviceFromID ¶ added in v0.17.0
func SocketDeviceFromID(id objc.ID) *SocketDevice
SocketDeviceFromID adopts an existing Objective-C object as a SocketDevice (nil for 0), retaining it and registering a release finalizer.
func (*SocketDevice) Description ¶ added in v0.17.0
func (sd *SocketDevice) Description() string
Description returns the object's -description text.
func (*SocketDevice) IsEqual ¶ added in v0.17.0
func (sd *SocketDevice) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*SocketDevice) IsKind ¶ added in v0.17.0
func (sd *SocketDevice) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*SocketDevice) String ¶ added in v0.17.0
func (sd *SocketDevice) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type SocketDeviceConfiguration ¶ added in v0.17.0
SocketDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZSocketDeviceConfiguration.
SocketDeviceConfiguration is an abstract base — you do not construct it directly. Construct one of VirtioSocketDeviceConfiguration and pass it where a SocketDeviceConfiguration is accepted.
The common configuration traits for socket device requests.
func SocketDeviceConfigurationFromID ¶ added in v0.17.0
func SocketDeviceConfigurationFromID(id objc.ID) *SocketDeviceConfiguration
SocketDeviceConfigurationFromID adopts an existing Objective-C object as a SocketDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*SocketDeviceConfiguration) Description ¶ added in v0.17.0
func (sdc *SocketDeviceConfiguration) Description() string
Description returns the object's -description text.
func (*SocketDeviceConfiguration) IsEqual ¶ added in v0.17.0
func (sdc *SocketDeviceConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*SocketDeviceConfiguration) IsKind ¶ added in v0.17.0
func (sdc *SocketDeviceConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*SocketDeviceConfiguration) String ¶ added in v0.17.0
func (sdc *SocketDeviceConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type SocketDeviceConfigurationProvider ¶ added in v0.17.0
type SocketDeviceConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
SocketDeviceConfigurationProvider is accepted wherever a VZSocketDeviceConfiguration (or one of its subclasses) is expected.
type SocketDeviceProvider ¶ added in v0.17.0
SocketDeviceProvider is accepted wherever a VZSocketDevice (or one of its subclasses) is expected.
type SpiceAgentPortAttachment ¶ added in v0.17.0
type SpiceAgentPortAttachment struct {
SerialPortAttachment
}
SpiceAgentPortAttachment is an idiomatic wrapper over the Objective-C class VZSpiceAgentPortAttachment.
It embeds SerialPortAttachment, promoting that type's methods.
An attachment point that enables the Spice clipboard sharing capability.
func NewSpiceAgentPortAttachment ¶ added in v0.17.0
func NewSpiceAgentPortAttachment() *SpiceAgentPortAttachment
NewSpiceAgentPortAttachment creates a new SpiceAgentPortAttachment.
func SpiceAgentPortAttachmentFromID ¶ added in v0.17.0
func SpiceAgentPortAttachmentFromID(id objc.ID) *SpiceAgentPortAttachment
SpiceAgentPortAttachmentFromID adopts an existing Objective-C object as a SpiceAgentPortAttachment (nil for 0), retaining it and registering a release finalizer.
func (*SpiceAgentPortAttachment) SharesClipboard ¶ added in v0.17.0
func (sapa *SpiceAgentPortAttachment) SharesClipboard() bool
SharesClipboard reports whether enable the Spice agent clipboard sharing capability. 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.
func (*SpiceAgentPortAttachment) WithSharesClipboard ¶ added in v0.17.0
func (sapa *SpiceAgentPortAttachment) WithSharesClipboard(sharesClipboard bool) *SpiceAgentPortAttachment
WithSharesClipboard sets a Boolean value that indicates whether the framework needs to share the clipboard between the host and the VM.
type StorageDevice ¶ added in v0.17.0
StorageDevice is an idiomatic wrapper over the Objective-C class VZStorageDevice.
StorageDevice is an abstract base — you do not construct it directly. Construct one of USBMassStorageDevice and pass it where a StorageDevice is accepted.
A class that represents a storage device in a VM.
func StorageDeviceFromID ¶ added in v0.17.0
func StorageDeviceFromID(id objc.ID) *StorageDevice
StorageDeviceFromID adopts an existing Objective-C object as a StorageDevice (nil for 0), retaining it and registering a release finalizer.
func (*StorageDevice) Description ¶ added in v0.17.0
func (sd *StorageDevice) Description() string
Description returns the object's -description text.
func (*StorageDevice) IsEqual ¶ added in v0.17.0
func (sd *StorageDevice) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*StorageDevice) IsKind ¶ added in v0.17.0
func (sd *StorageDevice) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*StorageDevice) String ¶ added in v0.17.0
func (sd *StorageDevice) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type StorageDeviceAttachment ¶ added in v0.17.0
StorageDeviceAttachment is an idiomatic wrapper over the Objective-C class VZStorageDeviceAttachment.
StorageDeviceAttachment is an abstract base — you do not construct it directly. Construct one of DiskBlockDeviceStorageDeviceAttachment, DiskImageStorageDeviceAttachment, NetworkBlockDeviceStorageDeviceAttachment and pass it where a StorageDeviceAttachment is accepted.
The common behaviors for storage devices in the guest system.
func StorageDeviceAttachmentFromID ¶ added in v0.17.0
func StorageDeviceAttachmentFromID(id objc.ID) *StorageDeviceAttachment
StorageDeviceAttachmentFromID adopts an existing Objective-C object as a StorageDeviceAttachment (nil for 0), retaining it and registering a release finalizer.
func (*StorageDeviceAttachment) Description ¶ added in v0.17.0
func (sda *StorageDeviceAttachment) Description() string
Description returns the object's -description text.
func (*StorageDeviceAttachment) IsEqual ¶ added in v0.17.0
func (sda *StorageDeviceAttachment) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*StorageDeviceAttachment) IsKind ¶ added in v0.17.0
func (sda *StorageDeviceAttachment) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*StorageDeviceAttachment) String ¶ added in v0.17.0
func (sda *StorageDeviceAttachment) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type StorageDeviceAttachmentProvider ¶ added in v0.17.0
type StorageDeviceAttachmentProvider interface {
objref.Object
// contains filtered or unexported methods
}
StorageDeviceAttachmentProvider is accepted wherever a VZStorageDeviceAttachment (or one of its subclasses) is expected.
type StorageDeviceConfiguration ¶ added in v0.17.0
StorageDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZStorageDeviceConfiguration.
StorageDeviceConfiguration is an abstract base — you do not construct it directly. Construct one of NVMExpressControllerDeviceConfiguration, USBMassStorageDeviceConfiguration, VirtioBlockDeviceConfiguration and pass it where a StorageDeviceConfiguration is accepted.
The common configuration traits for storage device requests.
func StorageDeviceConfigurationFromID ¶ added in v0.17.0
func StorageDeviceConfigurationFromID(id objc.ID) *StorageDeviceConfiguration
StorageDeviceConfigurationFromID adopts an existing Objective-C object as a StorageDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*StorageDeviceConfiguration) Attachment ¶ added in v0.17.0
func (sdc *StorageDeviceConfiguration) Attachment() *StorageDeviceAttachment
Attachment returns the attachment.
func (*StorageDeviceConfiguration) Description ¶ added in v0.17.0
func (sdc *StorageDeviceConfiguration) Description() string
Description returns the object's -description text.
func (*StorageDeviceConfiguration) IsEqual ¶ added in v0.17.0
func (sdc *StorageDeviceConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*StorageDeviceConfiguration) IsKind ¶ added in v0.17.0
func (sdc *StorageDeviceConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*StorageDeviceConfiguration) String ¶ added in v0.17.0
func (sdc *StorageDeviceConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type StorageDeviceConfigurationProvider ¶ added in v0.17.0
type StorageDeviceConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
StorageDeviceConfigurationProvider is accepted wherever a VZStorageDeviceConfiguration (or one of its subclasses) is expected.
type StorageDeviceProvider ¶ added in v0.17.0
StorageDeviceProvider is accepted wherever a VZStorageDevice (or one of its subclasses) is expected.
type TaskSharedRegionStubs ¶
type TaskSharedRegionStubs uint8
const ( )
func (TaskSharedRegionStubs) String ¶
func (e TaskSharedRegionStubs) String() string
String returns the TaskSharedRegionStubs constant's name, or its numeric form when the value is not a known constant.
type USBController ¶ added in v0.17.0
USBController is an idiomatic wrapper over the Objective-C class VZUSBController.
USBController is an abstract base — you do not construct it directly. Construct one of XHCIController and pass it where a USBController is accepted.
A class that represents a USB controller in a VM.
func USBControllerFromID ¶ added in v0.17.0
func USBControllerFromID(id objc.ID) *USBController
USBControllerFromID adopts an existing Objective-C object as a USBController (nil for 0), retaining it and registering a release finalizer.
func (*USBController) Description ¶ added in v0.17.0
func (uc *USBController) Description() string
Description returns the object's -description text.
func (*USBController) IsEqual ¶ added in v0.17.0
func (uc *USBController) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*USBController) IsKind ¶ added in v0.17.0
func (uc *USBController) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*USBController) String ¶ added in v0.17.0
func (uc *USBController) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*USBController) USBDevices ¶ added in v0.17.0
func (uc *USBController) USBDevices() []obj.Object
USBDevices returns a list of USB devices attached to controller. If corresponding USB controller configuration included in VZVirtualMachineConfiguration contained any USB devices, those devices will appear here when virtual machine is started.
func (*USBController) WithDelegate ¶
func (uc *USBController) WithDelegate(delegate USBControllerDelegate) *USBController
WithDelegate sets the controller's delegate.
type USBControllerConfiguration ¶ added in v0.17.0
USBControllerConfiguration is an idiomatic wrapper over the Objective-C class VZUSBControllerConfiguration.
USBControllerConfiguration is an abstract base — you do not construct it directly. Construct one of XHCIControllerConfiguration and pass it where a USBControllerConfiguration is accepted.
The base class for a USB controller configuration.
func USBControllerConfigurationFromID ¶ added in v0.17.0
func USBControllerConfigurationFromID(id objc.ID) *USBControllerConfiguration
USBControllerConfigurationFromID adopts an existing Objective-C object as a USBControllerConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*USBControllerConfiguration) Description ¶ added in v0.17.0
func (ucc *USBControllerConfiguration) Description() string
Description returns the object's -description text.
func (*USBControllerConfiguration) IsEqual ¶ added in v0.17.0
func (ucc *USBControllerConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*USBControllerConfiguration) IsKind ¶ added in v0.17.0
func (ucc *USBControllerConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*USBControllerConfiguration) SetUSBDevices ¶ added in v0.17.0
func (ucc *USBControllerConfiguration) SetUSBDevices(usbDevices []obj.Object)
SetUSBDevices wraps the corresponding Objective-C method.
func (*USBControllerConfiguration) String ¶ added in v0.17.0
func (ucc *USBControllerConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*USBControllerConfiguration) USBDevices ¶ added in v0.17.0
func (ucc *USBControllerConfiguration) USBDevices() []obj.Object
USBDevices returns the USB devices.
type USBControllerConfigurationProvider ¶ added in v0.17.0
type USBControllerConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
USBControllerConfigurationProvider is accepted wherever a VZUSBControllerConfiguration (or one of its subclasses) is expected.
type USBControllerDelegate ¶
type USBControllerDelegate interface {
}
USBControllerDelegate receives the callbacks of the Objective-C protocol VZUSBControllerDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (USBControllerDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type USBControllerDelegateUSBControllerUSBPassthroughDeviceDidDisconnectHandler ¶
type USBControllerDelegateUSBControllerUSBPassthroughDeviceDidDisconnectHandler interface {
USBControllerUSBPassthroughDeviceDidDisconnect(usbController *USBController, device *USBPassthroughDevice)
}
USBControllerDelegateUSBControllerUSBPassthroughDeviceDidDisconnectHandler is the optional VZUSBControllerDelegate method usbController:usbPassthroughDeviceDidDisconnect:. Implement it on a USBControllerDelegate value to receive that callback; a value without it is simply never sent one.
type USBControllerProvider ¶ added in v0.17.0
USBControllerProvider is accepted wherever a VZUSBController (or one of its subclasses) is expected.
type USBDevice ¶ added in v0.17.0
type USBDevice interface {
USBController() *USBController
UUID() *foundation.UUID
}
USBDevice is the Go form of the Objective-C protocol VZUSBDevice.
type USBDeviceConfiguration ¶ added in v0.17.0
type USBDeviceConfiguration interface {
UUID() *foundation.UUID
SetUUID(uuid obj.Object)
}
USBDeviceConfiguration is the Go form of the Objective-C protocol VZUSBDeviceConfiguration.
type USBKeyboardConfiguration ¶ added in v0.17.0
type USBKeyboardConfiguration struct {
KeyboardConfiguration
}
USBKeyboardConfiguration is an idiomatic wrapper over the Objective-C class VZUSBKeyboardConfiguration.
It embeds KeyboardConfiguration, promoting that type's methods.
A device that defines the configuration for a USB keyboard.
func NewUSBKeyboardConfiguration ¶ added in v0.17.0
func NewUSBKeyboardConfiguration() *USBKeyboardConfiguration
NewUSBKeyboardConfiguration creates a new USBKeyboardConfiguration.
func USBKeyboardConfigurationFromID ¶ added in v0.17.0
func USBKeyboardConfigurationFromID(id objc.ID) *USBKeyboardConfiguration
USBKeyboardConfigurationFromID adopts an existing Objective-C object as a USBKeyboardConfiguration (nil for 0), retaining it and registering a release finalizer.
type USBMassStorageDevice ¶ added in v0.17.0
type USBMassStorageDevice struct {
StorageDevice
}
USBMassStorageDevice is an idiomatic wrapper over the Objective-C class VZUSBMassStorageDevice.
It embeds StorageDevice, promoting that type's methods.
A class that represents a hot-pluggable USB mass storage device.
func NewUSBMassStorageDeviceWithConfiguration ¶ added in v0.17.0
func NewUSBMassStorageDeviceWithConfiguration(configuration *USBMassStorageDeviceConfiguration) *USBMassStorageDevice
NewUSBMassStorageDeviceWithConfiguration creates a USB mass storage device with the provided configuration.
func USBMassStorageDeviceFromID ¶ added in v0.17.0
func USBMassStorageDeviceFromID(id objc.ID) *USBMassStorageDevice
USBMassStorageDeviceFromID adopts an existing Objective-C object as a USBMassStorageDevice (nil for 0), retaining it and registering a release finalizer.
type USBMassStorageDeviceConfiguration ¶ added in v0.17.0
type USBMassStorageDeviceConfiguration struct {
StorageDeviceConfiguration
}
USBMassStorageDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZUSBMassStorageDeviceConfiguration.
It embeds StorageDeviceConfiguration, promoting that type's methods.
The configuration object that represents a USB Mass storage device.
func NewUSBMassStorageDeviceConfigurationWithAttachment ¶ added in v0.17.0
func NewUSBMassStorageDeviceConfigurationWithAttachment(attachment *StorageDeviceAttachment) *USBMassStorageDeviceConfiguration
NewUSBMassStorageDeviceConfigurationWithAttachment creates a new storage device configuration with the specified attachment.
func USBMassStorageDeviceConfigurationFromID ¶ added in v0.17.0
func USBMassStorageDeviceConfigurationFromID(id objc.ID) *USBMassStorageDeviceConfiguration
USBMassStorageDeviceConfigurationFromID adopts an existing Objective-C object as a USBMassStorageDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
type USBPassthroughDevice ¶
USBPassthroughDevice is an idiomatic wrapper over the Objective-C class VZUSBPassthroughDevice.
func NewUSBPassthroughDeviceWithConfiguration ¶
func NewUSBPassthroughDeviceWithConfiguration(configuration *USBPassthroughDeviceConfiguration) (result *USBPassthroughDevice, err error)
NewUSBPassthroughDeviceWithConfiguration initialize the USB passthrough device.
func USBPassthroughDeviceFromID ¶
func USBPassthroughDeviceFromID(id objc.ID) *USBPassthroughDevice
USBPassthroughDeviceFromID adopts an existing Objective-C object as a USBPassthroughDevice (nil for 0), retaining it and registering a release finalizer.
func (*USBPassthroughDevice) Description ¶
func (upd *USBPassthroughDevice) Description() string
Description returns the object's -description text.
func (*USBPassthroughDevice) IsEqual ¶
func (upd *USBPassthroughDevice) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*USBPassthroughDevice) IsKind ¶
func (upd *USBPassthroughDevice) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*USBPassthroughDevice) String ¶
func (upd *USBPassthroughDevice) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type USBPassthroughDeviceConfiguration ¶
USBPassthroughDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZUSBPassthroughDeviceConfiguration.
func NewUSBPassthroughDeviceConfigurationWithDevice ¶
func NewUSBPassthroughDeviceConfigurationWithDevice(device obj.Object) *USBPassthroughDeviceConfiguration
NewUSBPassthroughDeviceConfigurationWithDevice initialize a passthrough USB device configuration. Initialize a passthrough USB device configuration from an AccessoryAccess framework device.
func USBPassthroughDeviceConfigurationFromID ¶
func USBPassthroughDeviceConfigurationFromID(id objc.ID) *USBPassthroughDeviceConfiguration
USBPassthroughDeviceConfigurationFromID adopts an existing Objective-C object as a USBPassthroughDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*USBPassthroughDeviceConfiguration) Description ¶
func (updc *USBPassthroughDeviceConfiguration) Description() string
Description returns the object's -description text.
func (*USBPassthroughDeviceConfiguration) IsEqual ¶
func (updc *USBPassthroughDeviceConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*USBPassthroughDeviceConfiguration) IsKind ¶
func (updc *USBPassthroughDeviceConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*USBPassthroughDeviceConfiguration) String ¶
func (updc *USBPassthroughDeviceConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type USBScreenCoordinatePointingDeviceConfiguration ¶ added in v0.17.0
type USBScreenCoordinatePointingDeviceConfiguration struct {
PointingDeviceConfiguration
}
USBScreenCoordinatePointingDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZUSBScreenCoordinatePointingDeviceConfiguration.
It embeds PointingDeviceConfiguration, promoting that type's methods.
An object that defines the configuration for a USB pointing device that reports absolute coordinates.
func NewUSBScreenCoordinatePointingDeviceConfiguration ¶ added in v0.17.0
func NewUSBScreenCoordinatePointingDeviceConfiguration() *USBScreenCoordinatePointingDeviceConfiguration
NewUSBScreenCoordinatePointingDeviceConfiguration creates a new USBScreenCoordinatePointingDeviceConfiguration.
func USBScreenCoordinatePointingDeviceConfigurationFromID ¶ added in v0.17.0
func USBScreenCoordinatePointingDeviceConfigurationFromID(id objc.ID) *USBScreenCoordinatePointingDeviceConfiguration
USBScreenCoordinatePointingDeviceConfigurationFromID adopts an existing Objective-C object as a USBScreenCoordinatePointingDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
type VirtioBlockDeviceConfiguration ¶ added in v0.17.0
type VirtioBlockDeviceConfiguration struct {
StorageDeviceConfiguration
}
VirtioBlockDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioBlockDeviceConfiguration.
It embeds StorageDeviceConfiguration, promoting that type's methods.
The configuration object that requests the creation of a virtual storage device in the guest system.
func NewVirtioBlockDeviceConfigurationWithAttachment ¶ added in v0.17.0
func NewVirtioBlockDeviceConfigurationWithAttachment(attachment *StorageDeviceAttachment) *VirtioBlockDeviceConfiguration
NewVirtioBlockDeviceConfigurationWithAttachment creates a block device configuration object that uses the specified storage medium.
func VirtioBlockDeviceConfigurationFromID ¶ added in v0.17.0
func VirtioBlockDeviceConfigurationFromID(id objc.ID) *VirtioBlockDeviceConfiguration
VirtioBlockDeviceConfigurationFromID adopts an existing Objective-C object as a VirtioBlockDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioBlockDeviceConfiguration) BlockDeviceIdentifier ¶ added in v0.17.0
func (vbdc *VirtioBlockDeviceConfiguration) BlockDeviceIdentifier() string
BlockDeviceIdentifier returns the block device identifier.
func (*VirtioBlockDeviceConfiguration) WithBlockDeviceIdentifier ¶ added in v0.17.0
func (vbdc *VirtioBlockDeviceConfiguration) WithBlockDeviceIdentifier(blockDeviceIdentifier string) *VirtioBlockDeviceConfiguration
WithBlockDeviceIdentifier sets the string that identifies the VIRTIO block device.
type VirtioConsoleDevice ¶ added in v0.17.0
type VirtioConsoleDevice struct {
ConsoleDevice
}
VirtioConsoleDevice is an idiomatic wrapper over the Objective-C class VZVirtioConsoleDevice.
It embeds ConsoleDevice, promoting that type's methods.
A class that represents a Virtio console device in a virtual machine.
func NewVirtioConsoleDevice ¶ added in v0.17.0
func NewVirtioConsoleDevice() *VirtioConsoleDevice
NewVirtioConsoleDevice creates a new VirtioConsoleDevice.
func VirtioConsoleDeviceFromID ¶ added in v0.17.0
func VirtioConsoleDeviceFromID(id objc.ID) *VirtioConsoleDevice
VirtioConsoleDeviceFromID adopts an existing Objective-C object as a VirtioConsoleDevice (nil for 0), retaining it and registering a release finalizer.
func (*VirtioConsoleDevice) Ports ¶ added in v0.17.0
func (vcd *VirtioConsoleDevice) Ports() *VirtioConsolePortArray
Ports returns the console ports currently being used by this console device.
func (*VirtioConsoleDevice) WithDelegate ¶ added in v0.17.0
func (vcd *VirtioConsoleDevice) WithDelegate(delegate VirtioConsoleDeviceDelegate) *VirtioConsoleDevice
WithDelegate sets the delegate object for the console device.
type VirtioConsoleDeviceConfiguration ¶ added in v0.17.0
type VirtioConsoleDeviceConfiguration struct {
ConsoleDeviceConfiguration
}
VirtioConsoleDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioConsoleDeviceConfiguration.
It embeds ConsoleDeviceConfiguration, promoting that type's methods.
A console device that enables communication between the host and the guest using console ports through a Virtio interface.
func NewVirtioConsoleDeviceConfiguration ¶ added in v0.17.0
func NewVirtioConsoleDeviceConfiguration() *VirtioConsoleDeviceConfiguration
NewVirtioConsoleDeviceConfiguration creates a new VirtioConsoleDeviceConfiguration.
func VirtioConsoleDeviceConfigurationFromID ¶ added in v0.17.0
func VirtioConsoleDeviceConfigurationFromID(id objc.ID) *VirtioConsoleDeviceConfiguration
VirtioConsoleDeviceConfigurationFromID adopts an existing Objective-C object as a VirtioConsoleDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioConsoleDeviceConfiguration) Ports ¶ added in v0.17.0
func (vcdc *VirtioConsoleDeviceConfiguration) Ports() *VirtioConsolePortConfigurationArray
Ports returns the ports.
type VirtioConsoleDeviceDelegate ¶ added in v0.17.0
type VirtioConsoleDeviceDelegate interface {
}
VirtioConsoleDeviceDelegate receives the callbacks of the Objective-C protocol VZVirtioConsoleDeviceDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (VirtioConsoleDeviceDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type VirtioConsoleDeviceDelegateConsoleDeviceDidClosePortHandler ¶ added in v0.17.0
type VirtioConsoleDeviceDelegateConsoleDeviceDidClosePortHandler interface {
ConsoleDeviceDidClosePort(consoleDevice *VirtioConsoleDevice, consolePort *VirtioConsolePort)
}
VirtioConsoleDeviceDelegateConsoleDeviceDidClosePortHandler is the optional VZVirtioConsoleDeviceDelegate method consoleDevice:didClosePort:. Implement it on a VirtioConsoleDeviceDelegate value to receive that callback; a value without it is simply never sent one.
type VirtioConsoleDeviceDelegateConsoleDeviceDidOpenPortHandler ¶ added in v0.17.0
type VirtioConsoleDeviceDelegateConsoleDeviceDidOpenPortHandler interface {
ConsoleDeviceDidOpenPort(consoleDevice *VirtioConsoleDevice, consolePort *VirtioConsolePort)
}
VirtioConsoleDeviceDelegateConsoleDeviceDidOpenPortHandler is the optional VZVirtioConsoleDeviceDelegate method consoleDevice:didOpenPort:. Implement it on a VirtioConsoleDeviceDelegate value to receive that callback; a value without it is simply never sent one.
type VirtioConsoleDeviceSerialPortConfiguration ¶ added in v0.17.0
type VirtioConsoleDeviceSerialPortConfiguration struct {
SerialPortConfiguration
}
VirtioConsoleDeviceSerialPortConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioConsoleDeviceSerialPortConfiguration.
It embeds SerialPortConfiguration, promoting that type's methods.
A configuration object that requests the creation of a console device to communicate with the guest system.
func NewVirtioConsoleDeviceSerialPortConfiguration ¶ added in v0.17.0
func NewVirtioConsoleDeviceSerialPortConfiguration() *VirtioConsoleDeviceSerialPortConfiguration
NewVirtioConsoleDeviceSerialPortConfiguration creates a new VirtioConsoleDeviceSerialPortConfiguration.
func VirtioConsoleDeviceSerialPortConfigurationFromID ¶ added in v0.17.0
func VirtioConsoleDeviceSerialPortConfigurationFromID(id objc.ID) *VirtioConsoleDeviceSerialPortConfiguration
VirtioConsoleDeviceSerialPortConfigurationFromID adopts an existing Objective-C object as a VirtioConsoleDeviceSerialPortConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioConsoleDeviceSerialPortConfiguration) WithAttachment ¶ added in v0.17.0
func (vcdspc *VirtioConsoleDeviceSerialPortConfiguration) WithAttachment(attachment SerialPortAttachmentProvider) *VirtioConsoleDeviceSerialPortConfiguration
WithAttachment sets the object that defines how the configuration of the virtual machine’s serial port interfaces.
type VirtioConsolePort ¶ added in v0.17.0
VirtioConsolePort is an idiomatic wrapper over the Objective-C class VZVirtioConsolePort.
A class that represents a Virtio console port in a VM.
func NewVirtioConsolePort ¶ added in v0.17.0
func NewVirtioConsolePort() *VirtioConsolePort
NewVirtioConsolePort creates a new VirtioConsolePort.
func VirtioConsolePortFromID ¶ added in v0.17.0
func VirtioConsolePortFromID(id objc.ID) *VirtioConsolePort
VirtioConsolePortFromID adopts an existing Objective-C object as a VirtioConsolePort (nil for 0), retaining it and registering a release finalizer.
func (*VirtioConsolePort) Attachment ¶ added in v0.17.0
func (vcp *VirtioConsolePort) Attachment() *SerialPortAttachment
Attachment returns the console port attachment that's currently connected to this console port. This property may change at any time while the VM is running.
func (*VirtioConsolePort) Description ¶ added in v0.17.0
func (vcp *VirtioConsolePort) Description() string
Description returns the object's -description text.
func (*VirtioConsolePort) IsEqual ¶ added in v0.17.0
func (vcp *VirtioConsolePort) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtioConsolePort) IsKind ¶ added in v0.17.0
func (vcp *VirtioConsolePort) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtioConsolePort) Name ¶ added in v0.17.0
func (vcp *VirtioConsolePort) Name() string
Name returns the console port name currently being used by this port. This property may not change while the VM is running. A null value indicates no name has been set.
func (*VirtioConsolePort) String ¶ added in v0.17.0
func (vcp *VirtioConsolePort) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*VirtioConsolePort) WithAttachment ¶ added in v0.17.0
func (vcp *VirtioConsolePort) WithAttachment(attachment SerialPortAttachmentProvider) *VirtioConsolePort
WithAttachment sets an array of serial port attachments.
type VirtioConsolePortArray ¶ added in v0.17.0
VirtioConsolePortArray is an idiomatic wrapper over the Objective-C class VZVirtioConsolePortArray.
A class that represents a collection of Virtio console ports.
func NewVirtioConsolePortArray ¶ added in v0.17.0
func NewVirtioConsolePortArray() *VirtioConsolePortArray
NewVirtioConsolePortArray creates a new VirtioConsolePortArray.
func VirtioConsolePortArrayFromID ¶ added in v0.17.0
func VirtioConsolePortArrayFromID(id objc.ID) *VirtioConsolePortArray
VirtioConsolePortArrayFromID adopts an existing Objective-C object as a VirtioConsolePortArray (nil for 0), retaining it and registering a release finalizer.
func (*VirtioConsolePortArray) Description ¶ added in v0.17.0
func (vcpa *VirtioConsolePortArray) Description() string
Description returns the object's -description text.
func (*VirtioConsolePortArray) IsEqual ¶ added in v0.17.0
func (vcpa *VirtioConsolePortArray) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtioConsolePortArray) IsKind ¶ added in v0.17.0
func (vcpa *VirtioConsolePortArray) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtioConsolePortArray) MaximumPortCount ¶ added in v0.17.0
func (vcpa *VirtioConsolePortArray) MaximumPortCount() uint32
MaximumPortCount returns the maximum port count.
func (*VirtioConsolePortArray) ObjectAtIndexedSubscript ¶ added in v0.17.0
func (vcpa *VirtioConsolePortArray) ObjectAtIndexedSubscript(portIndex int) *VirtioConsolePort
ObjectAtIndexedSubscript returns the Virtio console port at the specified index.
func (*VirtioConsolePortArray) String ¶ added in v0.17.0
func (vcpa *VirtioConsolePortArray) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type VirtioConsolePortConfiguration ¶ added in v0.17.0
type VirtioConsolePortConfiguration struct {
ConsolePortConfiguration
}
VirtioConsolePortConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioConsolePortConfiguration.
It embeds ConsolePortConfiguration, promoting that type's methods.
A class that represents the configuration options you can set on a Virtio console port.
func NewVirtioConsolePortConfiguration ¶ added in v0.17.0
func NewVirtioConsolePortConfiguration() *VirtioConsolePortConfiguration
NewVirtioConsolePortConfiguration creates a new VirtioConsolePortConfiguration.
func VirtioConsolePortConfigurationFromID ¶ added in v0.17.0
func VirtioConsolePortConfigurationFromID(id objc.ID) *VirtioConsolePortConfiguration
VirtioConsolePortConfigurationFromID adopts an existing Objective-C object as a VirtioConsolePortConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioConsolePortConfiguration) IsConsole ¶ added in v0.17.0
func (vcpc *VirtioConsolePortConfiguration) IsConsole() bool
IsConsole reports whether the console port may be marked for use as the system console. The default is false.
func (*VirtioConsolePortConfiguration) Name ¶ added in v0.17.0
func (vcpc *VirtioConsolePortConfiguration) Name() string
Name returns the console port's name. The default behavior is to not use a name unless set.
func (*VirtioConsolePortConfiguration) WithAttachment ¶ added in v0.17.0
func (vcpc *VirtioConsolePortConfiguration) WithAttachment(attachment SerialPortAttachmentProvider) *VirtioConsolePortConfiguration
WithAttachment sets the serial port attachment.
func (*VirtioConsolePortConfiguration) WithIsConsole ¶ added in v0.17.0
func (vcpc *VirtioConsolePortConfiguration) WithIsConsole(isConsole bool) *VirtioConsolePortConfiguration
WithIsConsole sets a Boolean value that indicates whether this port is a console.
func (*VirtioConsolePortConfiguration) WithName ¶ added in v0.17.0
func (vcpc *VirtioConsolePortConfiguration) WithName(name string) *VirtioConsolePortConfiguration
WithName sets the name of the port.
type VirtioConsolePortConfigurationArray ¶ added in v0.17.0
VirtioConsolePortConfigurationArray is an idiomatic wrapper over the Objective-C class VZVirtioConsolePortConfigurationArray.
A class that represents a collection of Virtio console port configurations.
func NewVirtioConsolePortConfigurationArray ¶ added in v0.17.0
func NewVirtioConsolePortConfigurationArray() *VirtioConsolePortConfigurationArray
NewVirtioConsolePortConfigurationArray creates a new VirtioConsolePortConfigurationArray.
func VirtioConsolePortConfigurationArrayFromID ¶ added in v0.17.0
func VirtioConsolePortConfigurationArrayFromID(id objc.ID) *VirtioConsolePortConfigurationArray
VirtioConsolePortConfigurationArrayFromID adopts an existing Objective-C object as a VirtioConsolePortConfigurationArray (nil for 0), retaining it and registering a release finalizer.
func (*VirtioConsolePortConfigurationArray) Description ¶ added in v0.17.0
func (vcpca *VirtioConsolePortConfigurationArray) Description() string
Description returns the object's -description text.
func (*VirtioConsolePortConfigurationArray) IsEqual ¶ added in v0.17.0
func (vcpca *VirtioConsolePortConfigurationArray) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtioConsolePortConfigurationArray) IsKind ¶ added in v0.17.0
func (vcpca *VirtioConsolePortConfigurationArray) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtioConsolePortConfigurationArray) MaximumPortCount ¶ added in v0.17.0
func (vcpca *VirtioConsolePortConfigurationArray) MaximumPortCount() uint32
MaximumPortCount returns the maximum number of ports allocated by this device. The default is the number of ports attached to this device.
func (*VirtioConsolePortConfigurationArray) ObjectAtIndexedSubscript ¶ added in v0.17.0
func (vcpca *VirtioConsolePortConfigurationArray) ObjectAtIndexedSubscript(portIndex int) *VirtioConsolePortConfiguration
ObjectAtIndexedSubscript returns the Virtio console port configuration as the specified index.
func (*VirtioConsolePortConfigurationArray) SetObjectAtIndexedSubscript ¶ added in v0.17.0
func (vcpca *VirtioConsolePortConfigurationArray) SetObjectAtIndexedSubscript(configuration *VirtioConsolePortConfiguration, portIndex int)
SetObjectAtIndexedSubscript set a port configuration at the specified index.
func (*VirtioConsolePortConfigurationArray) String ¶ added in v0.17.0
func (vcpca *VirtioConsolePortConfigurationArray) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*VirtioConsolePortConfigurationArray) WithMaximumPortCount ¶ added in v0.17.0
func (vcpca *VirtioConsolePortConfigurationArray) WithMaximumPortCount(maximumPortCount uint32) *VirtioConsolePortConfigurationArray
WithMaximumPortCount sets an unsigned integer that represents the maximum number of ports allocated by this device.
type VirtioDeviceSpecificConfiguration ¶
VirtioDeviceSpecificConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioDeviceSpecificConfiguration.
The device-specific configuration for a Virtio device
func NewVirtioDeviceSpecificConfigurationWithConfigurationData ¶
func NewVirtioDeviceSpecificConfigurationWithConfigurationData(configurationData []byte) *VirtioDeviceSpecificConfiguration
NewVirtioDeviceSpecificConfigurationWithConfigurationData initializes a Virtio device specific configuration object with the configuration data you provide
func VirtioDeviceSpecificConfigurationFromID ¶
func VirtioDeviceSpecificConfigurationFromID(id objc.ID) *VirtioDeviceSpecificConfiguration
VirtioDeviceSpecificConfigurationFromID adopts an existing Objective-C object as a VirtioDeviceSpecificConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioDeviceSpecificConfiguration) ConfigurationData ¶
func (vdsc *VirtioDeviceSpecificConfiguration) ConfigurationData() []byte
ConfigurationData returns the configuration data.
func (*VirtioDeviceSpecificConfiguration) Description ¶
func (vdsc *VirtioDeviceSpecificConfiguration) Description() string
Description returns the object's -description text.
func (*VirtioDeviceSpecificConfiguration) IsEqual ¶
func (vdsc *VirtioDeviceSpecificConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtioDeviceSpecificConfiguration) IsKind ¶
func (vdsc *VirtioDeviceSpecificConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtioDeviceSpecificConfiguration) String ¶
func (vdsc *VirtioDeviceSpecificConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type VirtioEntropyDeviceConfiguration ¶ added in v0.17.0
type VirtioEntropyDeviceConfiguration struct {
EntropyDeviceConfiguration
}
VirtioEntropyDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioEntropyDeviceConfiguration.
It embeds EntropyDeviceConfiguration, promoting that type's methods.
A source of entropy for the guest’s random number generator.
func NewVirtioEntropyDeviceConfiguration ¶ added in v0.17.0
func NewVirtioEntropyDeviceConfiguration() *VirtioEntropyDeviceConfiguration
NewVirtioEntropyDeviceConfiguration creates a new VirtioEntropyDeviceConfiguration.
func VirtioEntropyDeviceConfigurationFromID ¶ added in v0.17.0
func VirtioEntropyDeviceConfigurationFromID(id objc.ID) *VirtioEntropyDeviceConfiguration
VirtioEntropyDeviceConfigurationFromID adopts an existing Objective-C object as a VirtioEntropyDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
type VirtioFeatureSet ¶
VirtioFeatureSet is an idiomatic wrapper over the Objective-C class VZVirtioFeatureSet.
Values that represent a set of Virtio feature bits.
func NewVirtioFeatureSet ¶
func NewVirtioFeatureSet() *VirtioFeatureSet
NewVirtioFeatureSet creates a new VirtioFeatureSet.
func VirtioFeatureSetFromID ¶
func VirtioFeatureSetFromID(id objc.ID) *VirtioFeatureSet
VirtioFeatureSetFromID adopts an existing Objective-C object as a VirtioFeatureSet (nil for 0), retaining it and registering a release finalizer.
func (*VirtioFeatureSet) Description ¶
func (vfs *VirtioFeatureSet) Description() string
Description returns the object's -description text.
func (*VirtioFeatureSet) IsEqual ¶
func (vfs *VirtioFeatureSet) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtioFeatureSet) IsKind ¶
func (vfs *VirtioFeatureSet) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtioFeatureSet) String ¶
func (vfs *VirtioFeatureSet) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*VirtioFeatureSet) Subset0 ¶
func (vfs *VirtioFeatureSet) Subset0() uint32
Subset0 returns an unsigned 32-bit integer that represents Virtio feature bits 0 through 31.
func (*VirtioFeatureSet) Subset1 ¶
func (vfs *VirtioFeatureSet) Subset1() uint32
Subset1 returns an unsigned 32-bit integer that represents Virtio feature bits 32 through 63.
func (*VirtioFeatureSet) WithSubset0 ¶
func (vfs *VirtioFeatureSet) WithSubset0(subset0 uint32) *VirtioFeatureSet
WithSubset0 sets an unsigned 32-bit integer that represents Virtio feature bits 0 through 31.
func (*VirtioFeatureSet) WithSubset1 ¶
func (vfs *VirtioFeatureSet) WithSubset1(subset1 uint32) *VirtioFeatureSet
WithSubset1 sets an unsigned 32-bit integer that represents Virtio feature bits 32 through 63.
type VirtioFileSystemDevice ¶ added in v0.17.0
type VirtioFileSystemDevice struct {
DirectorySharingDevice
}
VirtioFileSystemDevice is an idiomatic wrapper over the Objective-C class VZVirtioFileSystemDevice.
It embeds DirectorySharingDevice, promoting that type's methods.
An object the defines a VIRTIO file system device.
func NewVirtioFileSystemDevice ¶ added in v0.17.0
func NewVirtioFileSystemDevice() *VirtioFileSystemDevice
NewVirtioFileSystemDevice creates a new VirtioFileSystemDevice.
func VirtioFileSystemDeviceFromID ¶ added in v0.17.0
func VirtioFileSystemDeviceFromID(id objc.ID) *VirtioFileSystemDevice
VirtioFileSystemDeviceFromID adopts an existing Objective-C object as a VirtioFileSystemDevice (nil for 0), retaining it and registering a release finalizer.
func (*VirtioFileSystemDevice) Share ¶ added in v0.17.0
func (vfsd *VirtioFileSystemDevice) Share() *DirectoryShare
Share returns directory share. Defines how host resources are exposed to the guest virtual machine. Setting this property to VZLinuxRosettaDirectoryShare is not supported and will cause an exception to be raised.
func (*VirtioFileSystemDevice) Tag ¶ added in v0.17.0
func (vfsd *VirtioFileSystemDevice) Tag() string
Tag returns the tag is a string identifying the device. The tag is presented as a label in the guest identifying this device for mounting.
func (*VirtioFileSystemDevice) WithShare ¶ added in v0.17.0
func (vfsd *VirtioFileSystemDevice) WithShare(share DirectoryShareProvider) *VirtioFileSystemDevice
WithShare sets a value that defines the directory share the host exposes to the guest VM.
type VirtioFileSystemDeviceConfiguration ¶ added in v0.17.0
type VirtioFileSystemDeviceConfiguration struct {
DirectorySharingDeviceConfiguration
}
VirtioFileSystemDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioFileSystemDeviceConfiguration.
It embeds DirectorySharingDeviceConfiguration, promoting that type's methods.
An object that represents the configuration of a Virtio file system device.
func NewVirtioFileSystemDeviceConfigurationWithTag ¶ added in v0.17.0
func NewVirtioFileSystemDeviceConfigurationWithTag(tag string) *VirtioFileSystemDeviceConfiguration
NewVirtioFileSystemDeviceConfigurationWithTag creates a configuration for a VIRTIO file system device.
func VirtioFileSystemDeviceConfigurationFromID ¶ added in v0.17.0
func VirtioFileSystemDeviceConfigurationFromID(id objc.ID) *VirtioFileSystemDeviceConfiguration
VirtioFileSystemDeviceConfigurationFromID adopts an existing Objective-C object as a VirtioFileSystemDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioFileSystemDeviceConfiguration) Share ¶ added in v0.17.0
func (vfsdc *VirtioFileSystemDeviceConfiguration) Share() *DirectoryShare
Share returns directory share. Defines how host resources are exposed to the guest virtual machine.
func (*VirtioFileSystemDeviceConfiguration) Tag ¶ added in v0.17.0
func (vfsdc *VirtioFileSystemDeviceConfiguration) Tag() string
Tag returns the tag is a string identifying the device. 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:].
func (*VirtioFileSystemDeviceConfiguration) WithShare ¶ added in v0.17.0
func (vfsdc *VirtioFileSystemDeviceConfiguration) WithShare(share DirectoryShareProvider) *VirtioFileSystemDeviceConfiguration
WithShare sets a value that defines how the host exposes resources to the guest virtual machine.
func (*VirtioFileSystemDeviceConfiguration) WithTag ¶ added in v0.17.0
func (vfsdc *VirtioFileSystemDeviceConfiguration) WithTag(tag string) *VirtioFileSystemDeviceConfiguration
WithTag sets a label that identifies this device in the guest VM.
type VirtioGraphicsDevice ¶ added in v0.17.0
type VirtioGraphicsDevice struct {
GraphicsDevice
}
VirtioGraphicsDevice is an idiomatic wrapper over the Objective-C class VZVirtioGraphicsDevice.
It embeds GraphicsDevice, promoting that type's methods.
A Virtio graphics device.
func NewVirtioGraphicsDevice ¶ added in v0.17.0
func NewVirtioGraphicsDevice() *VirtioGraphicsDevice
NewVirtioGraphicsDevice creates a new VirtioGraphicsDevice.
func VirtioGraphicsDeviceFromID ¶ added in v0.17.0
func VirtioGraphicsDeviceFromID(id objc.ID) *VirtioGraphicsDevice
VirtioGraphicsDeviceFromID adopts an existing Objective-C object as a VirtioGraphicsDevice (nil for 0), retaining it and registering a release finalizer.
type VirtioGraphicsDeviceConfiguration ¶ added in v0.17.0
type VirtioGraphicsDeviceConfiguration struct {
GraphicsDeviceConfiguration
}
VirtioGraphicsDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioGraphicsDeviceConfiguration.
It embeds GraphicsDeviceConfiguration, promoting that type's methods.
Configuration that represents the configuration of a Virtio graphics device for a Linux VM.
func NewVirtioGraphicsDeviceConfiguration ¶ added in v0.17.0
func NewVirtioGraphicsDeviceConfiguration() *VirtioGraphicsDeviceConfiguration
NewVirtioGraphicsDeviceConfiguration creates a new VirtioGraphicsDeviceConfiguration.
func VirtioGraphicsDeviceConfigurationFromID ¶ added in v0.17.0
func VirtioGraphicsDeviceConfigurationFromID(id objc.ID) *VirtioGraphicsDeviceConfiguration
VirtioGraphicsDeviceConfigurationFromID adopts an existing Objective-C object as a VirtioGraphicsDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioGraphicsDeviceConfiguration) Scanouts ¶ added in v0.17.0
func (vgdc *VirtioGraphicsDeviceConfiguration) Scanouts() []*VirtioGraphicsScanoutConfiguration
Scanouts returns the scanouts.
Scanouts returns the collection as a Go slice.
func (*VirtioGraphicsDeviceConfiguration) WithScanouts ¶ added in v0.17.0
func (vgdc *VirtioGraphicsDeviceConfiguration) WithScanouts(items ...*VirtioGraphicsScanoutConfiguration) *VirtioGraphicsDeviceConfiguration
WithScanouts sets the array of output devices.
type VirtioGraphicsScanout ¶ added in v0.17.0
type VirtioGraphicsScanout struct {
GraphicsDisplay
}
VirtioGraphicsScanout is an idiomatic wrapper over the Objective-C class VZVirtioGraphicsScanout.
It embeds GraphicsDisplay, promoting that type's methods.
A Virtio graphics scanout that corresponds to a Virtio graphics scanout configuration.
func NewVirtioGraphicsScanout ¶ added in v0.17.0
func NewVirtioGraphicsScanout() *VirtioGraphicsScanout
NewVirtioGraphicsScanout creates a new VirtioGraphicsScanout.
func VirtioGraphicsScanoutFromID ¶ added in v0.17.0
func VirtioGraphicsScanoutFromID(id objc.ID) *VirtioGraphicsScanout
VirtioGraphicsScanoutFromID adopts an existing Objective-C object as a VirtioGraphicsScanout (nil for 0), retaining it and registering a release finalizer.
type VirtioGraphicsScanoutConfiguration ¶ added in v0.17.0
type VirtioGraphicsScanoutConfiguration struct {
GraphicsDisplayConfiguration
}
VirtioGraphicsScanoutConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioGraphicsScanoutConfiguration.
It embeds GraphicsDisplayConfiguration, promoting that type's methods.
The configuration for a Virtio graphics device that configures the dimensions of the graphics device for a Linux VM.
func NewVirtioGraphicsScanoutConfigurationWithWidthInPixelsHeightInPixels ¶ added in v0.17.0
func NewVirtioGraphicsScanoutConfigurationWithWidthInPixelsHeightInPixels(widthInPixels int, heightInPixels int) *VirtioGraphicsScanoutConfiguration
NewVirtioGraphicsScanoutConfigurationWithWidthInPixelsHeightInPixels creates a Virtio graphics device with the specified dimensions.
func VirtioGraphicsScanoutConfigurationFromID ¶ added in v0.17.0
func VirtioGraphicsScanoutConfigurationFromID(id objc.ID) *VirtioGraphicsScanoutConfiguration
VirtioGraphicsScanoutConfigurationFromID adopts an existing Objective-C object as a VirtioGraphicsScanoutConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioGraphicsScanoutConfiguration) HeightInPixels ¶ added in v0.17.0
func (vgsc *VirtioGraphicsScanoutConfiguration) HeightInPixels() int
HeightInPixels returns the height of the scanout, in pixels.
func (*VirtioGraphicsScanoutConfiguration) WidthInPixels ¶ added in v0.17.0
func (vgsc *VirtioGraphicsScanoutConfiguration) WidthInPixels() int
WidthInPixels returns the width of the scanout, in pixels.
func (*VirtioGraphicsScanoutConfiguration) WithHeightInPixels ¶ added in v0.17.0
func (vgsc *VirtioGraphicsScanoutConfiguration) WithHeightInPixels(heightInPixels int) *VirtioGraphicsScanoutConfiguration
WithHeightInPixels sets an integer value that describes the height of the graphics device in pixels.
func (*VirtioGraphicsScanoutConfiguration) WithWidthInPixels ¶ added in v0.17.0
func (vgsc *VirtioGraphicsScanoutConfiguration) WithWidthInPixels(widthInPixels int) *VirtioGraphicsScanoutConfiguration
WithWidthInPixels sets an integer value that describes the width of the graphics device in pixels.
type VirtioNetworkDeviceConfiguration ¶ added in v0.17.0
type VirtioNetworkDeviceConfiguration struct {
NetworkDeviceConfiguration
}
VirtioNetworkDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioNetworkDeviceConfiguration.
It embeds NetworkDeviceConfiguration, promoting that type's methods.
A configuration object that requests the creation of a network device for the guest system.
func NewVirtioNetworkDeviceConfiguration ¶ added in v0.17.0
func NewVirtioNetworkDeviceConfiguration() *VirtioNetworkDeviceConfiguration
NewVirtioNetworkDeviceConfiguration creates a new VirtioNetworkDeviceConfiguration.
func VirtioNetworkDeviceConfigurationFromID ¶ added in v0.17.0
func VirtioNetworkDeviceConfigurationFromID(id objc.ID) *VirtioNetworkDeviceConfiguration
VirtioNetworkDeviceConfigurationFromID adopts an existing Objective-C object as a VirtioNetworkDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioNetworkDeviceConfiguration) WithAttachment ¶ added in v0.17.0
func (vndc *VirtioNetworkDeviceConfiguration) WithAttachment(attachment NetworkDeviceAttachmentProvider) *VirtioNetworkDeviceConfiguration
WithAttachment sets the object that defines how the virtual network device communicates with the host system.
func (*VirtioNetworkDeviceConfiguration) WithMACAddress ¶ added in v0.17.0
func (vndc *VirtioNetworkDeviceConfiguration) WithMACAddress(macAddress *MACAddress) *VirtioNetworkDeviceConfiguration
WithMACAddress sets the media access control (MAC) address to assign to the network device.
type VirtioQueue ¶
VirtioQueue is an idiomatic wrapper over the Objective-C class VZVirtioQueue.
A Virtio queue.
func VirtioQueueFromID ¶
func VirtioQueueFromID(id objc.ID) *VirtioQueue
VirtioQueueFromID adopts an existing Objective-C object as a VirtioQueue (nil for 0), retaining it and registering a release finalizer.
func (*VirtioQueue) Description ¶
func (vq *VirtioQueue) Description() string
Description returns the object's -description text.
func (*VirtioQueue) IsEqual ¶
func (vq *VirtioQueue) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtioQueue) IsKind ¶
func (vq *VirtioQueue) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtioQueue) NextElement ¶
func (vq *VirtioQueue) NextElement() *VirtioQueueElement
NextElement gets the next element in this queue, if any.
func (*VirtioQueue) QueueIndex ¶
func (vq *VirtioQueue) QueueIndex() uint16
QueueIndex returns the index for this queue.
func (*VirtioQueue) QueueSize ¶
func (vq *VirtioQueue) QueueSize() uint16
QueueSize returns size of this queue. The size of the queue indicates the maximum number of `VZVirtioQueueElement` that can be made available in the queue.
func (*VirtioQueue) String ¶
func (vq *VirtioQueue) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type VirtioQueueElement ¶
VirtioQueueElement is an idiomatic wrapper over the Objective-C class VZVirtioQueueElement.
A unit of work on a Virtio queue, also known as a descriptor chain.
func NewVirtioQueueElement ¶
func NewVirtioQueueElement() *VirtioQueueElement
NewVirtioQueueElement creates a new VirtioQueueElement.
func VirtioQueueElementFromID ¶
func VirtioQueueElementFromID(id objc.ID) *VirtioQueueElement
VirtioQueueElementFromID adopts an existing Objective-C object as a VirtioQueueElement (nil for 0), retaining it and registering a release finalizer.
func (*VirtioQueueElement) Description ¶
func (vqe *VirtioQueueElement) Description() string
Description returns the object's -description text.
func (*VirtioQueueElement) IsEqual ¶
func (vqe *VirtioQueueElement) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtioQueueElement) IsKind ¶
func (vqe *VirtioQueueElement) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtioQueueElement) PeekIntoReadBuffersWithExactLength ¶
func (vqe *VirtioQueueElement) PeekIntoReadBuffersWithExactLength(exactLength int) (result []byte, err error)
PeekIntoReadBuffersWithExactLength peeks into the read buffers and copy exactLength bytes from the read buffer into the data object it returns.
func (*VirtioQueueElement) ReadBuffers ¶
func (vqe *VirtioQueueElement) ReadBuffers() [][]byte
ReadBuffers gets the remaining read buffers memory represented as an array of data.
ReadBuffers returns the collection as a Go slice.
func (*VirtioQueueElement) ReadBuffersAvailableByteCount ¶
func (vqe *VirtioQueueElement) ReadBuffersAvailableByteCount() int
ReadBuffersAvailableByteCount returns the size of the read buffers memory (in bytes) exposed by the Virtio queue element that's currently available for reading. This value is initially equal to “readBuffersByteCount“. This value decreases as you read memory from the read buffers.
func (*VirtioQueueElement) ReadBuffersByteCount ¶
func (vqe *VirtioQueueElement) ReadBuffersByteCount() int
ReadBuffersByteCount returns the total size of the read buffers memory (in bytes) exposed by the Virtio queue element.
func (*VirtioQueueElement) ReadBytesIntoBufferExactLength ¶
func (vqe *VirtioQueueElement) ReadBytesIntoBufferExactLength(buffer unsafe.Pointer, exactLength int) error
ReadBytesIntoBufferExactLength reads the number of bytes you specify from the read buffers into the memory pointed to by the pointer to the buffer you provide.
func (*VirtioQueueElement) ReadBytesWithExactLength ¶
func (vqe *VirtioQueueElement) ReadBytesWithExactLength(exactLength int) (result []byte, err error)
ReadBytesWithExactLength reads the number of bytes you specify from the read buffers and return result as a data object.
func (*VirtioQueueElement) ReturnToQueue ¶
func (vqe *VirtioQueueElement) ReturnToQueue()
ReturnToQueue returns this element back to the guest.
func (*VirtioQueueElement) String ¶
func (vqe *VirtioQueueElement) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*VirtioQueueElement) WriteBufferExactLength ¶
func (vqe *VirtioQueueElement) WriteBufferExactLength(buffer unsafe.Pointer, exactLength int) error
WriteBufferExactLength writes to the memory represented by the pointer to the buffer you provide to the write buffers.
func (*VirtioQueueElement) WriteBuffersAvailableByteCount ¶
func (vqe *VirtioQueueElement) WriteBuffersAvailableByteCount() int
WriteBuffersAvailableByteCount returns the size of the write buffers memory (in bytes) exposed by the Virtio queue element that's currently available for writing. This value is initially equal to `writeBuffersByteCount`. This value decreases as you write memory to the write buffers.
func (*VirtioQueueElement) WriteBuffersByteCount ¶
func (vqe *VirtioQueueElement) WriteBuffersByteCount() int
WriteBuffersByteCount returns the total size of the write buffers memory (in bytes) exposed by the Virtio queue element.
func (*VirtioQueueElement) WriteData ¶
func (vqe *VirtioQueueElement) WriteData(data []byte) error
WriteData writes the memory represented by the data object you provide into the write buffers.
func (*VirtioQueueElement) WrittenByteCount ¶
func (vqe *VirtioQueueElement) WrittenByteCount() int
WrittenByteCount returns the size of the write buffers memory exposed (in bytes) by the Virtio queue element that has already been written to. This value increases as you write memory to the write buffers. This value is initially equal to 0.
type VirtioSharedMemoryRegion ¶
type VirtioSharedMemoryRegion struct {
}
VirtioSharedMemoryRegion is an idiomatic wrapper over the Objective-C class VZVirtioSharedMemoryRegion.
A class that represents a Virtio shared memory region for a custom Virtio device in a virtual machine.
func NewVirtioSharedMemoryRegion ¶
func NewVirtioSharedMemoryRegion() *VirtioSharedMemoryRegion
NewVirtioSharedMemoryRegion creates a new VirtioSharedMemoryRegion.
func VirtioSharedMemoryRegionFromID ¶
func VirtioSharedMemoryRegionFromID(id objc.ID) *VirtioSharedMemoryRegion
VirtioSharedMemoryRegionFromID adopts an existing Objective-C object as a VirtioSharedMemoryRegion (nil for 0), retaining it and registering a release finalizer.
func (*VirtioSharedMemoryRegion) Description ¶
func (vsmr *VirtioSharedMemoryRegion) Description() string
Description returns the object's -description text.
func (*VirtioSharedMemoryRegion) IsEqual ¶
func (vsmr *VirtioSharedMemoryRegion) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtioSharedMemoryRegion) IsKind ¶
func (vsmr *VirtioSharedMemoryRegion) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtioSharedMemoryRegion) MapMemoryAtOffsetSize ¶
func (vsmr *VirtioSharedMemoryRegion) MapMemoryAtOffsetSize(ctx context.Context, memory unsafe.Pointer, offset uint64, size uint64) error
MapMemoryAtOffsetSize maps a chunk of host memory into the shared memory region.
MapMemoryAtOffsetSize blocks until the operation completes or ctx is cancelled.
func (*VirtioSharedMemoryRegion) RegionID ¶
func (vsmr *VirtioSharedMemoryRegion) RegionID() uint8
RegionID returns the shared memory region ID.
func (*VirtioSharedMemoryRegion) Size ¶
func (vsmr *VirtioSharedMemoryRegion) Size() uint64
Size returns the size of the shared memory region.
func (*VirtioSharedMemoryRegion) String ¶
func (vsmr *VirtioSharedMemoryRegion) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*VirtioSharedMemoryRegion) UnmapMemoryAtOffsetSize ¶
func (vsmr *VirtioSharedMemoryRegion) UnmapMemoryAtOffsetSize(ctx context.Context, offset uint64, size uint64) error
UnmapMemoryAtOffsetSize unmaps a chunk of host memory from the shared memory region.
UnmapMemoryAtOffsetSize blocks until the operation completes or ctx is cancelled.
type VirtioSharedMemoryRegionConfiguration ¶
type VirtioSharedMemoryRegionConfiguration struct {
}
VirtioSharedMemoryRegionConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioSharedMemoryRegionConfiguration.
The configuration of a Virtio shared memory region.
func NewVirtioSharedMemoryRegionConfigurationWithRegionIDSize ¶
func NewVirtioSharedMemoryRegionConfigurationWithRegionIDSize(regionID uint8, size uint64) *VirtioSharedMemoryRegionConfiguration
NewVirtioSharedMemoryRegionConfigurationWithRegionIDSize initializes a shared memory region with a shared memory region ID and size.
func VirtioSharedMemoryRegionConfigurationFromID ¶
func VirtioSharedMemoryRegionConfigurationFromID(id objc.ID) *VirtioSharedMemoryRegionConfiguration
VirtioSharedMemoryRegionConfigurationFromID adopts an existing Objective-C object as a VirtioSharedMemoryRegionConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioSharedMemoryRegionConfiguration) Description ¶
func (vsmrc *VirtioSharedMemoryRegionConfiguration) Description() string
Description returns the object's -description text.
func (*VirtioSharedMemoryRegionConfiguration) IsEqual ¶
func (vsmrc *VirtioSharedMemoryRegionConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtioSharedMemoryRegionConfiguration) IsKind ¶
func (vsmrc *VirtioSharedMemoryRegionConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtioSharedMemoryRegionConfiguration) RegionID ¶
func (vsmrc *VirtioSharedMemoryRegionConfiguration) RegionID() uint8
RegionID returns the shared memory region ID.
func (*VirtioSharedMemoryRegionConfiguration) Size ¶
func (vsmrc *VirtioSharedMemoryRegionConfiguration) Size() uint64
Size returns the size of the shared memory region.
func (*VirtioSharedMemoryRegionConfiguration) String ¶
func (vsmrc *VirtioSharedMemoryRegionConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type VirtioSocketConnection ¶ added in v0.17.0
VirtioSocketConnection is an idiomatic wrapper over the Objective-C class VZVirtioSocketConnection.
A port-based connection between the guest operating system and the host computer.
func NewVirtioSocketConnection ¶ added in v0.17.0
func NewVirtioSocketConnection() *VirtioSocketConnection
NewVirtioSocketConnection creates a new VirtioSocketConnection.
func VirtioSocketConnectionFromID ¶ added in v0.17.0
func VirtioSocketConnectionFromID(id objc.ID) *VirtioSocketConnection
VirtioSocketConnectionFromID adopts an existing Objective-C object as a VirtioSocketConnection (nil for 0), retaining it and registering a release finalizer.
func (*VirtioSocketConnection) Close ¶ added in v0.17.0
func (vsc *VirtioSocketConnection) Close()
Close close the file descriptor associated with the socket.
func (*VirtioSocketConnection) Description ¶ added in v0.17.0
func (vsc *VirtioSocketConnection) Description() string
Description returns the object's -description text.
func (*VirtioSocketConnection) DestinationPort ¶ added in v0.17.0
func (vsc *VirtioSocketConnection) DestinationPort() uint32
DestinationPort returns the destination port number of the connection.
func (*VirtioSocketConnection) FileDescriptor ¶ added in v0.17.0
func (vsc *VirtioSocketConnection) FileDescriptor() int
FileDescriptor returns the file descriptor associated with the socket. 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 (*VirtioSocketConnection) IsEqual ¶ added in v0.17.0
func (vsc *VirtioSocketConnection) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtioSocketConnection) IsKind ¶ added in v0.17.0
func (vsc *VirtioSocketConnection) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtioSocketConnection) SourcePort ¶ added in v0.17.0
func (vsc *VirtioSocketConnection) SourcePort() uint32
SourcePort returns the source port number of the connection.
func (*VirtioSocketConnection) String ¶ added in v0.17.0
func (vsc *VirtioSocketConnection) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type VirtioSocketDevice ¶ added in v0.17.0
type VirtioSocketDevice struct {
SocketDevice
}
VirtioSocketDevice is an idiomatic wrapper over the Objective-C class VZVirtioSocketDevice.
It embeds SocketDevice, promoting that type's methods.
A device that manages port-based connections between the guest system and the host computer.
func NewVirtioSocketDevice ¶ added in v0.17.0
func NewVirtioSocketDevice() *VirtioSocketDevice
NewVirtioSocketDevice creates a new VirtioSocketDevice.
func VirtioSocketDeviceFromID ¶ added in v0.17.0
func VirtioSocketDeviceFromID(id objc.ID) *VirtioSocketDevice
VirtioSocketDeviceFromID adopts an existing Objective-C object as a VirtioSocketDevice (nil for 0), retaining it and registering a release finalizer.
func (*VirtioSocketDevice) ConnectToPort ¶ added in v0.17.0
func (vsd *VirtioSocketDevice) ConnectToPort(ctx context.Context, port uint32) (result *VirtioSocketConnection, err error)
ConnectToPort initiates a connection to the specified port of the guest operating system.
ConnectToPort blocks until the operation completes or ctx is cancelled.
func (*VirtioSocketDevice) RemoveSocketListenerForPort ¶ added in v0.17.0
func (vsd *VirtioSocketDevice) RemoveSocketListenerForPort(port uint32)
RemoveSocketListenerForPort removes the listener object from the specfied port.
func (*VirtioSocketDevice) SetSocketListenerForPort ¶ added in v0.17.0
func (vsd *VirtioSocketDevice) SetSocketListenerForPort(listener *VirtioSocketListener, port uint32)
SetSocketListenerForPort configures an object to monitor the specified port for new connections.
type VirtioSocketDeviceConfiguration ¶ added in v0.17.0
type VirtioSocketDeviceConfiguration struct {
SocketDeviceConfiguration
}
VirtioSocketDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioSocketDeviceConfiguration.
It embeds SocketDeviceConfiguration, promoting that type's methods.
A configuration object that requests the creation of a socket device to communicate with the guest system.
func NewVirtioSocketDeviceConfiguration ¶ added in v0.17.0
func NewVirtioSocketDeviceConfiguration() *VirtioSocketDeviceConfiguration
NewVirtioSocketDeviceConfiguration creates a new VirtioSocketDeviceConfiguration.
func VirtioSocketDeviceConfigurationFromID ¶ added in v0.17.0
func VirtioSocketDeviceConfigurationFromID(id objc.ID) *VirtioSocketDeviceConfiguration
VirtioSocketDeviceConfigurationFromID adopts an existing Objective-C object as a VirtioSocketDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
type VirtioSocketListener ¶ added in v0.17.0
VirtioSocketListener is an idiomatic wrapper over the Objective-C class VZVirtioSocketListener.
An object that listens for port-based connection requests from the guest operating system.
func NewVirtioSocketListener ¶ added in v0.17.0
func NewVirtioSocketListener() *VirtioSocketListener
NewVirtioSocketListener creates a new VirtioSocketListener.
func VirtioSocketListenerFromID ¶ added in v0.17.0
func VirtioSocketListenerFromID(id objc.ID) *VirtioSocketListener
VirtioSocketListenerFromID adopts an existing Objective-C object as a VirtioSocketListener (nil for 0), retaining it and registering a release finalizer.
func (*VirtioSocketListener) Description ¶ added in v0.17.0
func (vsl *VirtioSocketListener) Description() string
Description returns the object's -description text.
func (*VirtioSocketListener) IsEqual ¶ added in v0.17.0
func (vsl *VirtioSocketListener) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtioSocketListener) IsKind ¶ added in v0.17.0
func (vsl *VirtioSocketListener) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtioSocketListener) String ¶ added in v0.17.0
func (vsl *VirtioSocketListener) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*VirtioSocketListener) WithDelegate ¶ added in v0.17.0
func (vsl *VirtioSocketListener) WithDelegate(delegate VirtioSocketListenerDelegate) *VirtioSocketListener
WithDelegate sets the custom object you use to respond to port-based connection attempts.
type VirtioSocketListenerDelegate ¶ added in v0.17.0
type VirtioSocketListenerDelegate interface {
}
VirtioSocketListenerDelegate receives the callbacks of the Objective-C protocol VZVirtioSocketListenerDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (VirtioSocketListenerDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type VirtioSocketListenerDelegateListenerShouldAcceptNewConnectionFromSocketDeviceHandler ¶ added in v0.17.0
type VirtioSocketListenerDelegateListenerShouldAcceptNewConnectionFromSocketDeviceHandler interface {
ListenerShouldAcceptNewConnectionFromSocketDevice(listener *VirtioSocketListener, connection *VirtioSocketConnection, socketDevice *VirtioSocketDevice) bool
}
VirtioSocketListenerDelegateListenerShouldAcceptNewConnectionFromSocketDeviceHandler is the optional VZVirtioSocketListenerDelegate method listener:shouldAcceptNewConnection:fromSocketDevice:. Implement it on a VirtioSocketListenerDelegate value to receive that callback; a value without it is simply never sent one.
type VirtioSoundDeviceConfiguration ¶ added in v0.17.0
type VirtioSoundDeviceConfiguration struct {
AudioDeviceConfiguration
}
VirtioSoundDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioSoundDeviceConfiguration.
It embeds AudioDeviceConfiguration, promoting that type's methods.
An object that defines a Virtio sound device configuration.
func NewVirtioSoundDeviceConfiguration ¶ added in v0.17.0
func NewVirtioSoundDeviceConfiguration() *VirtioSoundDeviceConfiguration
NewVirtioSoundDeviceConfiguration creates a new VirtioSoundDeviceConfiguration.
func VirtioSoundDeviceConfigurationFromID ¶ added in v0.17.0
func VirtioSoundDeviceConfigurationFromID(id objc.ID) *VirtioSoundDeviceConfiguration
VirtioSoundDeviceConfigurationFromID adopts an existing Objective-C object as a VirtioSoundDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioSoundDeviceConfiguration) Streams ¶ added in v0.17.0
func (vsdc *VirtioSoundDeviceConfiguration) Streams() []*VirtioSoundDeviceStreamConfiguration
Streams returns the streams.
Streams returns the collection as a Go slice.
func (*VirtioSoundDeviceConfiguration) WithStreams ¶ added in v0.17.0
func (vsdc *VirtioSoundDeviceConfiguration) WithStreams(items ...VirtioSoundDeviceStreamConfigurationProvider) *VirtioSoundDeviceConfiguration
WithStreams sets list of audio streams exposed by this device.
type VirtioSoundDeviceInputStreamConfiguration ¶ added in v0.17.0
type VirtioSoundDeviceInputStreamConfiguration struct {
VirtioSoundDeviceStreamConfiguration
}
VirtioSoundDeviceInputStreamConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioSoundDeviceInputStreamConfiguration.
It embeds VirtioSoundDeviceStreamConfiguration, promoting that type's methods.
A PCM stream of input audio data, such as from a microphone.
func NewVirtioSoundDeviceInputStreamConfiguration ¶ added in v0.17.0
func NewVirtioSoundDeviceInputStreamConfiguration() *VirtioSoundDeviceInputStreamConfiguration
NewVirtioSoundDeviceInputStreamConfiguration creates a new VirtioSoundDeviceInputStreamConfiguration.
func VirtioSoundDeviceInputStreamConfigurationFromID ¶ added in v0.17.0
func VirtioSoundDeviceInputStreamConfigurationFromID(id objc.ID) *VirtioSoundDeviceInputStreamConfiguration
VirtioSoundDeviceInputStreamConfigurationFromID adopts an existing Objective-C object as a VirtioSoundDeviceInputStreamConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioSoundDeviceInputStreamConfiguration) Source ¶ added in v0.17.0
func (vsdisc *VirtioSoundDeviceInputStreamConfiguration) Source() *AudioInputStreamSource
Source returns the source.
func (*VirtioSoundDeviceInputStreamConfiguration) WithSource ¶ added in v0.17.0
func (vsdisc *VirtioSoundDeviceInputStreamConfiguration) WithSource(source AudioInputStreamSourceProvider) *VirtioSoundDeviceInputStreamConfiguration
WithSource sets an audio stream source that defines how the host supplies audio data for the guest.
type VirtioSoundDeviceOutputStreamConfiguration ¶ added in v0.17.0
type VirtioSoundDeviceOutputStreamConfiguration struct {
VirtioSoundDeviceStreamConfiguration
}
VirtioSoundDeviceOutputStreamConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioSoundDeviceOutputStreamConfiguration.
It embeds VirtioSoundDeviceStreamConfiguration, promoting that type's methods.
An object that defines a Virtio sound device output stream configuration.
func NewVirtioSoundDeviceOutputStreamConfiguration ¶ added in v0.17.0
func NewVirtioSoundDeviceOutputStreamConfiguration() *VirtioSoundDeviceOutputStreamConfiguration
NewVirtioSoundDeviceOutputStreamConfiguration creates a new VirtioSoundDeviceOutputStreamConfiguration.
func VirtioSoundDeviceOutputStreamConfigurationFromID ¶ added in v0.17.0
func VirtioSoundDeviceOutputStreamConfigurationFromID(id objc.ID) *VirtioSoundDeviceOutputStreamConfiguration
VirtioSoundDeviceOutputStreamConfigurationFromID adopts an existing Objective-C object as a VirtioSoundDeviceOutputStreamConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioSoundDeviceOutputStreamConfiguration) Sink ¶ added in v0.17.0
func (vsdosc *VirtioSoundDeviceOutputStreamConfiguration) Sink() *AudioOutputStreamSink
Sink returns the sink.
func (*VirtioSoundDeviceOutputStreamConfiguration) WithSink ¶ added in v0.17.0
func (vsdosc *VirtioSoundDeviceOutputStreamConfiguration) WithSink(sink AudioOutputStreamSinkProvider) *VirtioSoundDeviceOutputStreamConfiguration
WithSink sets an audio stream sink that defines how the host handles audio data produced by the guest.
type VirtioSoundDeviceStreamConfiguration ¶ added in v0.17.0
VirtioSoundDeviceStreamConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioSoundDeviceStreamConfiguration.
VirtioSoundDeviceStreamConfiguration is an abstract base — you do not construct it directly. Construct one of VirtioSoundDeviceInputStreamConfiguration, VirtioSoundDeviceOutputStreamConfiguration and pass it where a VirtioSoundDeviceStreamConfiguration is accepted.
An object that defines a Virtio sound device stream configuration.
func VirtioSoundDeviceStreamConfigurationFromID ¶ added in v0.17.0
func VirtioSoundDeviceStreamConfigurationFromID(id objc.ID) *VirtioSoundDeviceStreamConfiguration
VirtioSoundDeviceStreamConfigurationFromID adopts an existing Objective-C object as a VirtioSoundDeviceStreamConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtioSoundDeviceStreamConfiguration) Description ¶ added in v0.17.0
func (vsdsc *VirtioSoundDeviceStreamConfiguration) Description() string
Description returns the object's -description text.
func (*VirtioSoundDeviceStreamConfiguration) IsEqual ¶ added in v0.17.0
func (vsdsc *VirtioSoundDeviceStreamConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtioSoundDeviceStreamConfiguration) IsKind ¶ added in v0.17.0
func (vsdsc *VirtioSoundDeviceStreamConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtioSoundDeviceStreamConfiguration) String ¶ added in v0.17.0
func (vsdsc *VirtioSoundDeviceStreamConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type VirtioSoundDeviceStreamConfigurationProvider ¶ added in v0.17.0
type VirtioSoundDeviceStreamConfigurationProvider interface {
objref.Object
// contains filtered or unexported methods
}
VirtioSoundDeviceStreamConfigurationProvider is accepted wherever a VZVirtioSoundDeviceStreamConfiguration (or one of its subclasses) is expected.
type VirtioTraditionalMemoryBalloonDevice ¶ added in v0.17.0
type VirtioTraditionalMemoryBalloonDevice struct {
MemoryBalloonDevice
}
VirtioTraditionalMemoryBalloonDevice is an idiomatic wrapper over the Objective-C class VZVirtioTraditionalMemoryBalloonDevice.
It embeds MemoryBalloonDevice, promoting that type's methods.
The object you use to change the amount of memory allocated to the guest system.
func NewVirtioTraditionalMemoryBalloonDevice ¶ added in v0.17.0
func NewVirtioTraditionalMemoryBalloonDevice() *VirtioTraditionalMemoryBalloonDevice
NewVirtioTraditionalMemoryBalloonDevice creates a new VirtioTraditionalMemoryBalloonDevice.
func VirtioTraditionalMemoryBalloonDeviceFromID ¶ added in v0.17.0
func VirtioTraditionalMemoryBalloonDeviceFromID(id objc.ID) *VirtioTraditionalMemoryBalloonDevice
VirtioTraditionalMemoryBalloonDeviceFromID adopts an existing Objective-C object as a VirtioTraditionalMemoryBalloonDevice (nil for 0), retaining it and registering a release finalizer.
func (*VirtioTraditionalMemoryBalloonDevice) TargetVirtualMachineMemorySize ¶ added in v0.17.0
func (vtmbd *VirtioTraditionalMemoryBalloonDevice) TargetVirtualMachineMemorySize() uint64
TargetVirtualMachineMemorySize returns the target virtual machine memory size.
func (*VirtioTraditionalMemoryBalloonDevice) WithTargetVirtualMachineMemorySize ¶ added in v0.17.0
func (vtmbd *VirtioTraditionalMemoryBalloonDevice) WithTargetVirtualMachineMemorySize(targetVirtualMachineMemorySize uint64) *VirtioTraditionalMemoryBalloonDevice
WithTargetVirtualMachineMemorySize sets the target amount of memory, in bytes, to make available to the virtual machine.
type VirtioTraditionalMemoryBalloonDeviceConfiguration ¶ added in v0.17.0
type VirtioTraditionalMemoryBalloonDeviceConfiguration struct {
MemoryBalloonDeviceConfiguration
}
VirtioTraditionalMemoryBalloonDeviceConfiguration is an idiomatic wrapper over the Objective-C class VZVirtioTraditionalMemoryBalloonDeviceConfiguration.
It embeds MemoryBalloonDeviceConfiguration, promoting that type's methods.
A configuration object that provides a way to reclaim memory from the guest system.
func NewVirtioTraditionalMemoryBalloonDeviceConfiguration ¶ added in v0.17.0
func NewVirtioTraditionalMemoryBalloonDeviceConfiguration() *VirtioTraditionalMemoryBalloonDeviceConfiguration
NewVirtioTraditionalMemoryBalloonDeviceConfiguration creates a new VirtioTraditionalMemoryBalloonDeviceConfiguration.
func VirtioTraditionalMemoryBalloonDeviceConfigurationFromID ¶ added in v0.17.0
func VirtioTraditionalMemoryBalloonDeviceConfigurationFromID(id objc.ID) *VirtioTraditionalMemoryBalloonDeviceConfiguration
VirtioTraditionalMemoryBalloonDeviceConfigurationFromID adopts an existing Objective-C object as a VirtioTraditionalMemoryBalloonDeviceConfiguration (nil for 0), retaining it and registering a release finalizer.
type VirtualMachine ¶ added in v0.17.0
VirtualMachine is an idiomatic wrapper over the Objective-C class VZVirtualMachine.
An object that manages the overall state and configuration of your VM.
func NewVirtualMachineWithConfiguration ¶ added in v0.17.0
func NewVirtualMachineWithConfiguration(configuration *VirtualMachineConfiguration) *VirtualMachine
NewVirtualMachineWithConfiguration creates the VM and configures it with the specified data.
func NewVirtualMachineWithConfigurationQueue ¶ added in v0.17.0
func NewVirtualMachineWithConfigurationQueue(configuration *VirtualMachineConfiguration, queue dispatch.Queue) *VirtualMachine
NewVirtualMachineWithConfigurationQueue creates and configures the VM with the specified data and dispatch queue.
func VirtualMachineFromID ¶ added in v0.17.0
func VirtualMachineFromID(id objc.ID) *VirtualMachine
VirtualMachineFromID adopts an existing Objective-C object as a VirtualMachine (nil for 0), retaining it and registering a release finalizer.
func (*VirtualMachine) CanPause ¶ added in v0.17.0
func (vm *VirtualMachine) CanPause() bool
CanPause reports whether the machine is in a state that can be paused.
func (*VirtualMachine) CanRequestStop ¶ added in v0.17.0
func (vm *VirtualMachine) CanRequestStop() bool
CanRequestStop reports whether the machine is in a state where the guest can be asked to stop.
func (*VirtualMachine) CanResume ¶ added in v0.17.0
func (vm *VirtualMachine) CanResume() bool
CanResume reports whether the machine is in a state that can be resumed.
func (*VirtualMachine) CanStart ¶ added in v0.17.0
func (vm *VirtualMachine) CanStart() bool
CanStart reports whether the machine is in a state that can be started.
func (*VirtualMachine) CanStop ¶ added in v0.17.0
func (vm *VirtualMachine) CanStop() bool
CanStop reports whether the machine is in a state that can be stopped.
func (*VirtualMachine) ConsoleDevices ¶ added in v0.17.0
func (vm *VirtualMachine) ConsoleDevices() []*ConsoleDevice
ConsoleDevices returns the list of console devices configured on this virtual machine. Return an empty array if no console device is configured.
ConsoleDevices returns the collection as a Go slice.
func (*VirtualMachine) Description ¶ added in v0.17.0
func (vm *VirtualMachine) Description() string
Description returns the object's -description text.
func (*VirtualMachine) DirectorySharingDevices ¶ added in v0.17.0
func (vm *VirtualMachine) DirectorySharingDevices() []*DirectorySharingDevice
DirectorySharingDevices returns the list of directory sharing devices configured on this virtual machine. Return an empty array if no directory sharing device is configured.
DirectorySharingDevices returns the collection as a Go slice.
func (*VirtualMachine) GraphicsDevices ¶ added in v0.17.0
func (vm *VirtualMachine) GraphicsDevices() []*GraphicsDevice
GraphicsDevices returns the list of graphics devices configured on this virtual machine. Return an empty array if no graphics device is configured.
GraphicsDevices returns the collection as a Go slice.
func (*VirtualMachine) IsEqual ¶ added in v0.17.0
func (vm *VirtualMachine) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtualMachine) IsKind ¶ added in v0.17.0
func (vm *VirtualMachine) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtualMachine) MemoryBalloonDevices ¶ added in v0.17.0
func (vm *VirtualMachine) MemoryBalloonDevices() []*MemoryBalloonDevice
MemoryBalloonDevices returns the list of memory balloon devices configured on this virtual machine. Return an empty array if no memory balloon device is configured.
MemoryBalloonDevices returns the collection as a Go slice.
func (*VirtualMachine) NetworkDevices ¶ added in v0.17.0
func (vm *VirtualMachine) NetworkDevices() []*NetworkDevice
NetworkDevices returns the list of network devices configured on this virtual machine. Return an empty array if no network device is configured.
NetworkDevices returns the collection as a Go slice.
func (*VirtualMachine) Pause ¶ added in v0.17.0
func (vm *VirtualMachine) Pause(ctx context.Context) error
Pause pauses a running VM and notifies the specified completion handler of the results.
Pause blocks until the operation completes or ctx is cancelled.
func (*VirtualMachine) Queue ¶ added in v0.17.0
func (vm *VirtualMachine) Queue() *foundation.Object
Queue returns the queue associated with this virtual machine. 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 (*VirtualMachine) RequestStop ¶ added in v0.17.0
func (vm *VirtualMachine) RequestStop() error
RequestStop asks the guest operating system to stop running.
RequestStop returns an error if the operation did not succeed.
func (*VirtualMachine) RestoreMachineStateFromURL ¶ added in v0.17.0
func (vm *VirtualMachine) RestoreMachineStateFromURL(ctx context.Context, saveFileURL string) error
RestoreMachineStateFromURL restores a VM from a previously saved state.
RestoreMachineStateFromURL blocks until the operation completes or ctx is cancelled.
func (*VirtualMachine) Resume ¶ added in v0.17.0
func (vm *VirtualMachine) Resume(ctx context.Context) error
Resume resumes a paused VM and notifies the specified completion handler of the results.
Resume blocks until the operation completes or ctx is cancelled.
func (*VirtualMachine) SaveMachineStateToURL ¶ added in v0.17.0
func (vm *VirtualMachine) SaveMachineStateToURL(ctx context.Context, saveFileURL string) error
SaveMachineStateToURL saves the state of a VM.
SaveMachineStateToURL blocks until the operation completes or ctx is cancelled.
func (*VirtualMachine) SocketDevices ¶ added in v0.17.0
func (vm *VirtualMachine) SocketDevices() []*SocketDevice
SocketDevices returns the list of socket devices configured on this virtual machine. Return an empty array if no socket device is configured.
SocketDevices returns the collection as a Go slice.
func (*VirtualMachine) Start ¶ added in v0.17.0
func (vm *VirtualMachine) Start(ctx context.Context) error
Start starts the VM and notifies the specified completion handler if startup was successful.
Start blocks until the operation completes or ctx is cancelled.
func (*VirtualMachine) StartWithOptions ¶ added in v0.17.0
func (vm *VirtualMachine) StartWithOptions(ctx context.Context, options *VirtualMachineStartOptions) error
StartWithOptions starts the VM with the options and a completion handler you provide.
StartWithOptions blocks until the operation completes or ctx is cancelled.
func (*VirtualMachine) State ¶ added in v0.17.0
func (vm *VirtualMachine) State() VirtualMachineState
State returns execution state of the virtual machine.
func (*VirtualMachine) Stop ¶ added in v0.17.0
func (vm *VirtualMachine) Stop(ctx context.Context) error
Stop stops a VM that’s in either a running or paused state.
Stop blocks until the operation completes or ctx is cancelled.
func (*VirtualMachine) String ¶ added in v0.17.0
func (vm *VirtualMachine) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*VirtualMachine) USBControllers ¶ added in v0.17.0
func (vm *VirtualMachine) USBControllers() []*USBController
USBControllers returns the list of USB controllers configured on this virtual machine. Return an empty array if no USB controller is configured.
USBControllers returns the collection as a Go slice.
func (*VirtualMachine) WithDelegate ¶ added in v0.17.0
func (vm *VirtualMachine) WithDelegate(delegate VirtualMachineDelegate) *VirtualMachine
WithDelegate sets a custom object you use to determine when the VM stops.
type VirtualMachineConfiguration ¶ added in v0.17.0
VirtualMachineConfiguration is an idiomatic wrapper over the Objective-C class VZVirtualMachineConfiguration.
The environment attributes and list of devices to use during the configuration of macOS or Linux VMs.
func NewVirtualMachineConfiguration ¶ added in v0.17.0
func NewVirtualMachineConfiguration() *VirtualMachineConfiguration
NewVirtualMachineConfiguration creates a new VirtualMachineConfiguration.
func VirtualMachineConfigurationFromID ¶ added in v0.17.0
func VirtualMachineConfigurationFromID(id objc.ID) *VirtualMachineConfiguration
VirtualMachineConfigurationFromID adopts an existing Objective-C object as a VirtualMachineConfiguration (nil for 0), retaining it and registering a release finalizer.
func (*VirtualMachineConfiguration) AudioDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) AudioDevices() []*AudioDeviceConfiguration
AudioDevices returns list of audio devices. Empty by default.
AudioDevices returns the collection as a Go slice.
func (*VirtualMachineConfiguration) BootLoader ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) BootLoader() *BootLoader
BootLoader returns boot loader used when the virtual machine starts.
func (*VirtualMachineConfiguration) CPUCount ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) CPUCount() int
CPUCount returns number of CPUs. The number of CPUs must be a value between VZVirtualMachineConfiguration.minimumAllowedCPUCount and VZVirtualMachineConfiguration.maximumAllowedCPUCount.
func (*VirtualMachineConfiguration) ConsoleDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) ConsoleDevices() []*ConsoleDeviceConfiguration
ConsoleDevices returns list of console devices. Empty by default.
ConsoleDevices returns the collection as a Go slice.
func (*VirtualMachineConfiguration) CustomVirtioDevices ¶
func (vmc *VirtualMachineConfiguration) CustomVirtioDevices() []*CustomVirtioDeviceConfiguration
CustomVirtioDevices returns a list of custom Virtio devices. The list is empty by default. ## See Also - “VZCustomVirtioDeviceConfiguration“
CustomVirtioDevices returns the collection as a Go slice.
func (*VirtualMachineConfiguration) Description ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) Description() string
Description returns the object's -description text.
func (*VirtualMachineConfiguration) DirectorySharingDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) DirectorySharingDevices() []*DirectorySharingDeviceConfiguration
DirectorySharingDevices returns list of directory sharing devices. Empty by default.
DirectorySharingDevices returns the collection as a Go slice.
func (*VirtualMachineConfiguration) EntropyDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) EntropyDevices() []*EntropyDeviceConfiguration
EntropyDevices returns list of entropy devices. Empty by default.
EntropyDevices returns the collection as a Go slice.
func (*VirtualMachineConfiguration) GraphicsDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) GraphicsDevices() []*GraphicsDeviceConfiguration
GraphicsDevices returns list of graphics devices. Empty by default.
GraphicsDevices returns the collection as a Go slice.
func (*VirtualMachineConfiguration) IsEqual ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtualMachineConfiguration) IsKind ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtualMachineConfiguration) Keyboards ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) Keyboards() []*KeyboardConfiguration
Keyboards returns list of keyboards. Empty by default.
Keyboards returns the collection as a Go slice.
func (*VirtualMachineConfiguration) Label ¶
func (vmc *VirtualMachineConfiguration) Label() string
Label returns an optional label for the virtual machine. The framework uses this string as part of the name of the virtual machine in some system services. The label must be non-empty, less than or equal to 64 characters in length, and contain at least one non-whitespace character.
func (*VirtualMachineConfiguration) MemoryBalloonDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) MemoryBalloonDevices() []*MemoryBalloonDeviceConfiguration
MemoryBalloonDevices returns list of memory balloon devices. Empty by default.
MemoryBalloonDevices returns the collection as a Go slice.
func (*VirtualMachineConfiguration) MemorySize ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) MemorySize() uint64
MemorySize returns virtual machine memory size in bytes. 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.
func (*VirtualMachineConfiguration) NetworkDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) NetworkDevices() []*NetworkDeviceConfiguration
NetworkDevices returns list of network adapters. Empty by default.
NetworkDevices returns the collection as a Go slice.
func (*VirtualMachineConfiguration) Platform ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) Platform() *PlatformConfiguration
Platform returns the hardware platform to use. 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.
func (*VirtualMachineConfiguration) PointingDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) PointingDevices() []*PointingDeviceConfiguration
PointingDevices returns list of pointing devices. Empty by default.
PointingDevices returns the collection as a Go slice.
func (*VirtualMachineConfiguration) SerialPorts ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) SerialPorts() []*SerialPortConfiguration
SerialPorts returns list of serial ports. Empty by default.
SerialPorts returns the collection as a Go slice.
func (*VirtualMachineConfiguration) SocketDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) SocketDevices() []*SocketDeviceConfiguration
SocketDevices returns list of socket devices. Empty by default.
SocketDevices returns the collection as a Go slice.
func (*VirtualMachineConfiguration) StorageDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) StorageDevices() []*StorageDeviceConfiguration
StorageDevices returns list of disk devices. Empty by default.
StorageDevices returns the collection as a Go slice.
func (*VirtualMachineConfiguration) String ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*VirtualMachineConfiguration) USBControllers ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) USBControllers() []*USBControllerConfiguration
USBControllers returns list of USB Controllers. Empty by default. 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.
USBControllers returns the collection as a Go slice.
func (*VirtualMachineConfiguration) Validate ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) Validate() error
Validate validates the current configuration settings and reports any issues that might prevent the successful initialization of the VM.
Validate returns an error if the operation did not succeed.
func (*VirtualMachineConfiguration) ValidateSaveRestoreSupport ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) ValidateSaveRestoreSupport() error
ValidateSaveRestoreSupport determines whether the framework can save or restore the VM’s current configuration.
ValidateSaveRestoreSupport returns an error if the operation did not succeed.
func (*VirtualMachineConfiguration) WithAudioDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithAudioDevices(items ...AudioDeviceConfigurationProvider) *VirtualMachineConfiguration
WithAudioDevices sets the list of audio devices.
func (*VirtualMachineConfiguration) WithBootLoader ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithBootLoader(bootLoader BootLoaderProvider) *VirtualMachineConfiguration
WithBootLoader sets the guest system to boot when the VM starts.
func (*VirtualMachineConfiguration) WithCPUCount ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithCPUCount(cpuCount int) *VirtualMachineConfiguration
WithCPUCount sets the number of CPUs you make available to the guest operating system.
func (*VirtualMachineConfiguration) WithConsoleDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithConsoleDevices(items ...ConsoleDeviceConfigurationProvider) *VirtualMachineConfiguration
WithConsoleDevices sets the array of console devices that you expose to the guest operating system.
func (*VirtualMachineConfiguration) WithCustomVirtioDevices ¶
func (vmc *VirtualMachineConfiguration) WithCustomVirtioDevices(items ...*CustomVirtioDeviceConfiguration) *VirtualMachineConfiguration
WithCustomVirtioDevices sets the array of custom virtio devices that you expose to the guest operating system.
func (*VirtualMachineConfiguration) WithDirectorySharingDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithDirectorySharingDevices(items ...DirectorySharingDeviceConfigurationProvider) *VirtualMachineConfiguration
WithDirectorySharingDevices sets the list of directory sharing devices.
func (*VirtualMachineConfiguration) WithEntropyDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithEntropyDevices(items ...EntropyDeviceConfigurationProvider) *VirtualMachineConfiguration
WithEntropyDevices sets the array of randomization devices that you expose to the guest operating system.
func (*VirtualMachineConfiguration) WithGraphicsDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithGraphicsDevices(items ...GraphicsDeviceConfigurationProvider) *VirtualMachineConfiguration
WithGraphicsDevices sets the list of graphics devices.
func (*VirtualMachineConfiguration) WithKeyboards ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithKeyboards(items ...KeyboardConfigurationProvider) *VirtualMachineConfiguration
WithKeyboards sets the list of keyboards.
func (*VirtualMachineConfiguration) WithLabel ¶
func (vmc *VirtualMachineConfiguration) WithLabel(label string) *VirtualMachineConfiguration
WithLabel sets an optional label for the virtual machine.
func (*VirtualMachineConfiguration) WithMemoryBalloonDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithMemoryBalloonDevices(items ...MemoryBalloonDeviceConfigurationProvider) *VirtualMachineConfiguration
WithMemoryBalloonDevices sets an array that you configure with a memory balloon device, used to update the memory in the VM.
func (*VirtualMachineConfiguration) WithMemorySize ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithMemorySize(memorySize uint64) *VirtualMachineConfiguration
WithMemorySize sets the amount of physical memory the guest operating system recognizes.
func (*VirtualMachineConfiguration) WithNetworkDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithNetworkDevices(items ...NetworkDeviceConfigurationProvider) *VirtualMachineConfiguration
WithNetworkDevices sets the array of network devices that you expose to the guest operating system.
func (*VirtualMachineConfiguration) WithPlatform ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithPlatform(platform PlatformConfigurationProvider) *VirtualMachineConfiguration
WithPlatform sets the hardware platform to use.
func (*VirtualMachineConfiguration) WithPointingDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithPointingDevices(items ...PointingDeviceConfigurationProvider) *VirtualMachineConfiguration
WithPointingDevices sets the list of pointing devices.
func (*VirtualMachineConfiguration) WithSerialPorts ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithSerialPorts(items ...SerialPortConfigurationProvider) *VirtualMachineConfiguration
WithSerialPorts sets the array of serial ports that you expose to the guest operating system.
func (*VirtualMachineConfiguration) WithSocketDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithSocketDevices(items ...SocketDeviceConfigurationProvider) *VirtualMachineConfiguration
WithSocketDevices sets the socket device that you use to implement port-based communication with the guest operating system.
func (*VirtualMachineConfiguration) WithStorageDevices ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithStorageDevices(items ...StorageDeviceConfigurationProvider) *VirtualMachineConfiguration
WithStorageDevices sets the array of storage devices that you expose to the guest operating system.
func (*VirtualMachineConfiguration) WithUSBControllers ¶ added in v0.17.0
func (vmc *VirtualMachineConfiguration) WithUSBControllers(items ...USBControllerConfigurationProvider) *VirtualMachineConfiguration
WithUSBControllers sets the list of configured USB controllers for the VM.
type VirtualMachineDelegate ¶ added in v0.17.0
type VirtualMachineDelegate interface {
}
VirtualMachineDelegate receives the callbacks of the Objective-C protocol VZVirtualMachineDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (VirtualMachineDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type VirtualMachineDelegateGuestDidStopVirtualMachineHandler ¶ added in v0.17.0
type VirtualMachineDelegateGuestDidStopVirtualMachineHandler interface {
GuestDidStopVirtualMachine(virtualMachine *VirtualMachine)
}
VirtualMachineDelegateGuestDidStopVirtualMachineHandler is the optional VZVirtualMachineDelegate method guestDidStopVirtualMachine:. Implement it on a VirtualMachineDelegate value to receive that callback; a value without it is simply never sent one.
type VirtualMachineDelegateVirtualMachineDidStopWithErrorHandler ¶ added in v0.17.0
type VirtualMachineDelegateVirtualMachineDidStopWithErrorHandler interface {
VirtualMachineDidStopWithError(virtualMachine *VirtualMachine, err error)
}
VirtualMachineDelegateVirtualMachineDidStopWithErrorHandler is the optional VZVirtualMachineDelegate method virtualMachine:didStopWithError:. Implement it on a VirtualMachineDelegate value to receive that callback; a value without it is simply never sent one.
type VirtualMachineDelegateVirtualMachineNetworkDeviceAttachmentWasDisconnectedWithErrorHandler ¶ added in v0.17.0
type VirtualMachineDelegateVirtualMachineNetworkDeviceAttachmentWasDisconnectedWithErrorHandler interface {
VirtualMachineNetworkDeviceAttachmentWasDisconnectedWithError(virtualMachine *VirtualMachine, networkDevice *NetworkDevice, err error)
}
VirtualMachineDelegateVirtualMachineNetworkDeviceAttachmentWasDisconnectedWithErrorHandler is the optional VZVirtualMachineDelegate method virtualMachine:networkDevice:attachmentWasDisconnectedWithError:. Implement it on a VirtualMachineDelegate value to receive that callback; a value without it is simply never sent one.
type VirtualMachineStartOptions ¶ added in v0.17.0
VirtualMachineStartOptions is an idiomatic wrapper over the Objective-C class VZVirtualMachineStartOptions.
VirtualMachineStartOptions is an abstract base — you do not construct it directly. Construct one of MacOSVirtualMachineStartOptions and pass it where a VirtualMachineStartOptions is accepted.
The abstract class for VM start options.
func VirtualMachineStartOptionsFromID ¶ added in v0.17.0
func VirtualMachineStartOptionsFromID(id objc.ID) *VirtualMachineStartOptions
VirtualMachineStartOptionsFromID adopts an existing Objective-C object as a VirtualMachineStartOptions (nil for 0), retaining it and registering a release finalizer.
func (*VirtualMachineStartOptions) Description ¶ added in v0.17.0
func (vmso *VirtualMachineStartOptions) Description() string
Description returns the object's -description text.
func (*VirtualMachineStartOptions) IsEqual ¶ added in v0.17.0
func (vmso *VirtualMachineStartOptions) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtualMachineStartOptions) IsKind ¶ added in v0.17.0
func (vmso *VirtualMachineStartOptions) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtualMachineStartOptions) String ¶ added in v0.17.0
func (vmso *VirtualMachineStartOptions) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type VirtualMachineStartOptionsProvider ¶ added in v0.17.0
type VirtualMachineStartOptionsProvider interface {
objref.Object
// contains filtered or unexported methods
}
VirtualMachineStartOptionsProvider is accepted wherever a VZVirtualMachineStartOptions (or one of its subclasses) is expected.
type VirtualMachineState ¶ added in v0.17.0
type VirtualMachineState int64
const ( // Initial state before the virtual machine is started. VirtualMachineStateStopped VirtualMachineState = 0 // Running virtual machine. VirtualMachineStateRunning VirtualMachineState = 1 // A started virtual machine is paused. This state can only be transitioned from VZVirtualMachineStatePausing. VirtualMachineStatePaused VirtualMachineState = 2 // The virtual machine has encountered an internal error. VirtualMachineStateError VirtualMachineState = 3 // The virtual machine is configuring the hardware and starting. VirtualMachineStateStarting VirtualMachineState = 4 // The virtual machine is being paused. This is the intermediate state between VZVirtualMachineStateRunning and VZVirtualMachineStatePaused. VirtualMachineStatePausing VirtualMachineState = 5 // The virtual machine is being resumed. This is the intermediate state between VZVirtualMachineStatePaused and VZVirtualMachineStateRunning. VirtualMachineStateResuming VirtualMachineState = 6 // The virtual machine is being stopped. This is the intermediate state between VZVirtualMachineStateRunning and VZVirtualMachineStateStopped. VirtualMachineStateStopping VirtualMachineState = 7 // The virtual machine is being saved. This is the intermediate state between VZVirtualMachineStatePaused and VZVirtualMachineStatePaused. VirtualMachineStateSaving VirtualMachineState = 8 // The virtual machine is being restored. This is the intermediate state between VZVirtualMachineStateStopped and either VZVirtualMachineStatePaused on success or VZVirtualMachineStateStopped on failure. VirtualMachineStateRestoring VirtualMachineState = 9 )
func (VirtualMachineState) String ¶ added in v0.17.0
func (e VirtualMachineState) String() string
String returns the VirtualMachineState constant's name, or its numeric form when the value is not a known constant.
type VirtualMachineView ¶ added in v0.17.0
VirtualMachineView is an idiomatic wrapper over the Objective-C class VZVirtualMachineView.
A view that allows user interaction with a VM.
func NewVirtualMachineView ¶ added in v0.17.0
func NewVirtualMachineView() *VirtualMachineView
NewVirtualMachineView creates a new VirtualMachineView.
func VirtualMachineViewFromID ¶ added in v0.17.0
func VirtualMachineViewFromID(id objc.ID) *VirtualMachineView
VirtualMachineViewFromID adopts an existing Objective-C object as a VirtualMachineView (nil for 0), retaining it and registering a release finalizer.
func (*VirtualMachineView) AutomaticallyReconfiguresDisplay ¶ added in v0.17.0
func (vmv *VirtualMachineView) AutomaticallyReconfiguresDisplay() bool
AutomaticallyReconfiguresDisplay reports whether automatically reconfigures the graphics display associated with this view with respect to view changes. Defaults to false. 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 (*VirtualMachineView) CapturesSystemKeys ¶ added in v0.17.0
func (vmv *VirtualMachineView) CapturesSystemKeys() bool
CapturesSystemKeys reports whether certain system hot keys should be sent to the guest instead of the host. Defaults to false.
func (*VirtualMachineView) Description ¶ added in v0.17.0
func (vmv *VirtualMachineView) Description() string
Description returns the object's -description text.
func (*VirtualMachineView) IsEqual ¶ added in v0.17.0
func (vmv *VirtualMachineView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*VirtualMachineView) IsKind ¶ added in v0.17.0
func (vmv *VirtualMachineView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*VirtualMachineView) String ¶ added in v0.17.0
func (vmv *VirtualMachineView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*VirtualMachineView) VirtualMachine ¶ added in v0.17.0
func (vmv *VirtualMachineView) VirtualMachine() *VirtualMachine
VirtualMachine returns the virtual machine to display in the view. In Swift, when set, the `adaptor` property is set to nil. If the `adaptor` is set, `virtualMachine` is reset to nil.
func (*VirtualMachineView) WithAutomaticallyReconfiguresDisplay ¶ added in v0.17.0
func (vmv *VirtualMachineView) WithAutomaticallyReconfiguresDisplay(automaticallyReconfiguresDisplay bool) *VirtualMachineView
WithAutomaticallyReconfiguresDisplay sets a Boolean value that indicates whether the graphics display associated with this view automatically reconfigures with respect to view changes.
func (*VirtualMachineView) WithCapturesSystemKeys ¶ added in v0.17.0
func (vmv *VirtualMachineView) WithCapturesSystemKeys(capturesSystemKeys bool) *VirtualMachineView
WithCapturesSystemKeys sets a Boolean value that determines whether the system should send certain system keyboard shortcuts to the guest instead of the host.
func (*VirtualMachineView) WithVirtualMachine ¶ added in v0.17.0
func (vmv *VirtualMachineView) WithVirtualMachine(virtualMachine *VirtualMachine) *VirtualMachineView
WithVirtualMachine sets the VM to display in the view.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 // Guard exception sent to a thread when a CoW defeatured map attempts to copy memory which is not permitted by system policy. KGUARD_EXC_COW_DEFEATURED_COPY_DENIED VirtualMemoryGuardExceptionCode = 13 // Guard exception sent to a thread when it attempts to extract a given type of memory in a way which is not permitted for CoW defeatured maps. KGUARD_EXC_COW_DEFEATURED_EXTRACT_DENIED VirtualMemoryGuardExceptionCode = 14 // Guard exception sent to a thread when it attempts to copy-map a memory entry which was created for sharing by a CoW defeatured map. KGUARD_EXC_COW_DEFEATURED_SHARE_MAP_AS_COPY_DENIED VirtualMemoryGuardExceptionCode = 15 KGUARD_EXC_COW_DEFEATURED_FIRST VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_COW_DEFEATURED_LAST VirtualMemoryGuardExceptionCode = 15 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 16 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type VmnetNetworkDeviceAttachment ¶ added in v0.17.0
type VmnetNetworkDeviceAttachment struct {
NetworkDeviceAttachment
}
VmnetNetworkDeviceAttachment is an idiomatic wrapper over the Objective-C class VZVmnetNetworkDeviceAttachment.
It embeds NetworkDeviceAttachment, promoting that type's methods.
A network device attachment that allows a custom network topology.
func NewVmnetNetworkDeviceAttachmentWithNetwork ¶ added in v0.17.0
func NewVmnetNetworkDeviceAttachmentWithNetwork(network obj.Object) *VmnetNetworkDeviceAttachment
NewVmnetNetworkDeviceAttachmentWithNetwork creates the attachment and configures it with the specified data.
func VmnetNetworkDeviceAttachmentFromID ¶ added in v0.17.0
func VmnetNetworkDeviceAttachmentFromID(id objc.ID) *VmnetNetworkDeviceAttachment
VmnetNetworkDeviceAttachmentFromID adopts an existing Objective-C object as a VmnetNetworkDeviceAttachment (nil for 0), retaining it and registering a release finalizer.
func (*VmnetNetworkDeviceAttachment) Network ¶ added in v0.17.0
func (vnda *VmnetNetworkDeviceAttachment) Network() obj.Object
Network returns the network.
type XHCIController ¶ added in v0.17.0
type XHCIController struct {
USBController
}
XHCIController is an idiomatic wrapper over the Objective-C class VZXHCIController.
It embeds USBController, promoting that type's methods.
A class that represents a USB Extensible Host Controller Interface (XHCI) controller in a VM.
func NewXHCIController ¶ added in v0.17.0
func NewXHCIController() *XHCIController
NewXHCIController creates a new XHCIController.
func XHCIControllerFromID ¶ added in v0.17.0
func XHCIControllerFromID(id objc.ID) *XHCIController
XHCIControllerFromID adopts an existing Objective-C object as a XHCIController (nil for 0), retaining it and registering a release finalizer.
func (*XHCIController) WithDelegate ¶
func (xc *XHCIController) WithDelegate(delegate USBControllerDelegate) *XHCIController
WithDelegate sets the controller's delegate.
type XHCIControllerConfiguration ¶ added in v0.17.0
type XHCIControllerConfiguration struct {
USBControllerConfiguration
}
XHCIControllerConfiguration is an idiomatic wrapper over the Objective-C class VZXHCIControllerConfiguration.
It embeds USBControllerConfiguration, promoting that type's methods.
The configuration object for the USB Extensible Host Controller Interface (XHCI) controller.
func NewXHCIControllerConfiguration ¶ added in v0.17.0
func NewXHCIControllerConfiguration() *XHCIControllerConfiguration
NewXHCIControllerConfiguration creates a new XHCIControllerConfiguration.
func XHCIControllerConfigurationFromID ¶ added in v0.17.0
func XHCIControllerConfigurationFromID(id objc.ID) *XHCIControllerConfiguration
XHCIControllerConfigurationFromID adopts an existing Objective-C object as a XHCIControllerConfiguration (nil for 0), retaining it and registering a release finalizer.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.
Source Files
¶
- VZAudioDeviceConfiguration_generated.go
- VZAudioInputStreamSource_generated.go
- VZAudioOutputStreamSink_generated.go
- VZBootLoader_generated.go
- VZBridgedNetworkDeviceAttachment_generated.go
- VZBridgedNetworkInterface_generated.go
- VZConsoleDeviceConfiguration_generated.go
- VZConsoleDevice_generated.go
- VZConsolePortConfiguration_generated.go
- VZCustomVirtioDeviceConfiguration_generated.go
- VZCustomVirtioDeviceDelegateProvider_generated.go
- VZCustomVirtioDeviceDelegate_delegate_generated.go
- VZCustomVirtioDeviceProvider_generated.go
- VZCustomVirtioDevice_generated.go
- VZDirectoryShare_generated.go
- VZDirectorySharingDeviceConfiguration_generated.go
- VZDirectorySharingDevice_generated.go
- VZDiskBlockDeviceStorageDeviceAttachment_generated.go
- VZDiskImageStorageDeviceAttachment_generated.go
- VZEFIBootLoader_generated.go
- VZEFISignatureDatabaseConfiguration_generated.go
- VZEFISignatureList_generated.go
- VZEFISignatureSHA256Hash_generated.go
- VZEFISignatureX509Certificate_generated.go
- VZEFISignature_generated.go
- VZEFIVariableStore_generated.go
- VZEntropyDeviceConfiguration_generated.go
- VZFileHandleNetworkDeviceAttachment_generated.go
- VZFileHandleSerialPortAttachment_generated.go
- VZFileSerialPortAttachment_generated.go
- VZGenericMachineIdentifier_generated.go
- VZGenericPlatformConfiguration_generated.go
- VZGraphicsDeviceConfiguration_generated.go
- VZGraphicsDevice_generated.go
- VZGraphicsDisplayConfiguration_generated.go
- VZGraphicsDisplayObserver_delegate_generated.go
- VZGraphicsDisplay_generated.go
- VZGuestMemoryMapping_generated.go
- VZGuestProvisioningOptions_generated.go
- VZHostAudioInputStreamSource_generated.go
- VZHostAudioOutputStreamSink_generated.go
- VZKeyboardConfiguration_generated.go
- VZLinuxBootLoader_generated.go
- VZLinuxRosettaAbstractSocketCachingOptions_generated.go
- VZLinuxRosettaCachingOptions_generated.go
- VZLinuxRosettaDirectoryShare_generated.go
- VZLinuxRosettaUnixSocketCachingOptions_generated.go
- VZMACAddress_generated.go
- VZMacAuxiliaryStorage_generated.go
- VZMacGraphicsDeviceConfiguration_generated.go
- VZMacGraphicsDevice_generated.go
- VZMacGraphicsDisplayConfiguration_generated.go
- VZMacGraphicsDisplay_generated.go
- VZMacGuestProvisioningOptions_generated.go
- VZMacHardwareModel_generated.go
- VZMacKeyboardConfiguration_generated.go
- VZMacMachineIdentifier_generated.go
- VZMacOSBootLoader_generated.go
- VZMacOSConfigurationRequirements_generated.go
- VZMacOSInstaller_generated.go
- VZMacOSRestoreImage_generated.go
- VZMacOSVirtualMachineStartOptions_generated.go
- VZMacPlatformConfiguration_generated.go
- VZMacTrackpadConfiguration_generated.go
- VZMemoryBalloonDeviceConfiguration_generated.go
- VZMemoryBalloonDevice_generated.go
- VZMultipleDirectoryShare_generated.go
- VZNATNetworkDeviceAttachment_generated.go
- VZNVMExpressControllerDeviceConfiguration_generated.go
- VZNegotiatedVirtioFeatureSet_generated.go
- VZNetworkBlockDeviceStorageDeviceAttachmentDelegate_delegate_generated.go
- VZNetworkBlockDeviceStorageDeviceAttachment_generated.go
- VZNetworkDeviceAttachment_generated.go
- VZNetworkDeviceConfiguration_generated.go
- VZNetworkDevice_generated.go
- VZPlatformConfiguration_generated.go
- VZPointingDeviceConfiguration_generated.go
- VZSerialPortAttachment_generated.go
- VZSerialPortConfiguration_generated.go
- VZSharedDirectory_generated.go
- VZSingleDirectoryShare_generated.go
- VZSocketDeviceConfiguration_generated.go
- VZSocketDevice_generated.go
- VZSpiceAgentPortAttachment_generated.go
- VZStorageDeviceAttachment_generated.go
- VZStorageDeviceConfiguration_generated.go
- VZStorageDevice_generated.go
- VZUSBControllerConfiguration_generated.go
- VZUSBControllerDelegate_delegate_generated.go
- VZUSBController_generated.go
- VZUSBKeyboardConfiguration_generated.go
- VZUSBMassStorageDeviceConfiguration_generated.go
- VZUSBMassStorageDevice_generated.go
- VZUSBPassthroughDeviceConfiguration_generated.go
- VZUSBPassthroughDevice_generated.go
- VZUSBScreenCoordinatePointingDeviceConfiguration_generated.go
- VZVirtioBlockDeviceConfiguration_generated.go
- VZVirtioConsoleDeviceConfiguration_generated.go
- VZVirtioConsoleDeviceDelegate_delegate_generated.go
- VZVirtioConsoleDeviceSerialPortConfiguration_generated.go
- VZVirtioConsoleDevice_generated.go
- VZVirtioConsolePortArray_generated.go
- VZVirtioConsolePortConfigurationArray_generated.go
- VZVirtioConsolePortConfiguration_generated.go
- VZVirtioConsolePort_generated.go
- VZVirtioDeviceSpecificConfiguration_generated.go
- VZVirtioEntropyDeviceConfiguration_generated.go
- VZVirtioFeatureSet_generated.go
- VZVirtioFileSystemDeviceConfiguration_generated.go
- VZVirtioFileSystemDevice_generated.go
- VZVirtioGraphicsDeviceConfiguration_generated.go
- VZVirtioGraphicsDevice_generated.go
- VZVirtioGraphicsScanoutConfiguration_generated.go
- VZVirtioGraphicsScanout_generated.go
- VZVirtioNetworkDeviceConfiguration_generated.go
- VZVirtioQueueElement_generated.go
- VZVirtioQueue_generated.go
- VZVirtioSharedMemoryRegionConfiguration_generated.go
- VZVirtioSharedMemoryRegion_generated.go
- VZVirtioSocketConnection_generated.go
- VZVirtioSocketDeviceConfiguration_generated.go
- VZVirtioSocketDevice_generated.go
- VZVirtioSocketListenerDelegate_delegate_generated.go
- VZVirtioSocketListener_generated.go
- VZVirtioSoundDeviceConfiguration_generated.go
- VZVirtioSoundDeviceInputStreamConfiguration_generated.go
- VZVirtioSoundDeviceOutputStreamConfiguration_generated.go
- VZVirtioSoundDeviceStreamConfiguration_generated.go
- VZVirtioTraditionalMemoryBalloonDeviceConfiguration_generated.go
- VZVirtioTraditionalMemoryBalloonDevice_generated.go
- VZVirtualMachineConfiguration_generated.go
- VZVirtualMachineDelegate_delegate_generated.go
- VZVirtualMachineStartOptions_generated.go
- VZVirtualMachineView_generated.go
- VZVirtualMachine_generated.go
- VZVmnetNetworkDeviceAttachment_generated.go
- VZXHCIControllerConfiguration_generated.go
- VZXHCIController_generated.go
- doc.go
- virtualization_classmethods_generated.go
- virtualization_constants_generated.go
- virtualization_enums_generated.go
- virtualization_errors_generated.go
- virtualization_protocols_generated.go
- virtualization_providers_generated.go
- virtualization_runtime_generated.go