Documentation
¶
Overview ¶
Package vmnet provides a fluent Go API over the macOS vmnet 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.
Index ¶
- Variables
- func CopySharedInterfaceList() unsafe.Pointer
- func InterfaceAddIpPortForwardingRule(interface_ InterfaceRef, protocol uint8, externalPort uint16, ...) error
- func InterfaceAddPortForwardingRule(interface_ InterfaceRef, protocol uint8, externalPort uint16, ...) error
- func InterfaceGetIpPortForwardingRules(interface_ InterfaceRef, addressFamily uint8, handler func(obj.Object)) error
- func InterfaceGetPortForwardingRules(interface_ InterfaceRef, handler func(obj.Object)) error
- func InterfaceRemoveIpPortForwardingRule(interface_ InterfaceRef, protocol uint8, externalPort uint16, ...) error
- func InterfaceRemovePortForwardingRule(interface_ InterfaceRef, protocol uint8, externalPort uint16, ...) error
- func InterfaceSetEventCallback(interface_ InterfaceRef, eventMask InterfaceEvent, queue dispatch.Queue, ...) error
- func IpPortForwardingRuleGetDetails(rule xpc.Object, addressFamily uint8, internalAddress unsafe.Pointer) (protocol uint8, externalPort uint16, internalPort uint16, err error)
- func NetworkConfigurationAddDhcpReservation(config VmnetNetworkConfigurationRef, client unsafe.Pointer, ...) error
- func NetworkConfigurationAddPortForwardingRule(config VmnetNetworkConfigurationRef, protocol uint8, addressFamily uint8, ...) error
- func NetworkConfigurationCreate(mode OperatingModes) (result VmnetNetworkConfigurationRef, status VmnetReturn)
- func NetworkConfigurationDisableDhcp(config VmnetNetworkConfigurationRef)
- func NetworkConfigurationDisableDnsProxy(config VmnetNetworkConfigurationRef)
- func NetworkConfigurationDisableNat44(config VmnetNetworkConfigurationRef)
- func NetworkConfigurationDisableNat66(config VmnetNetworkConfigurationRef)
- func NetworkConfigurationDisableRouterAdvertisement(config VmnetNetworkConfigurationRef)
- func NetworkConfigurationSetExternalInterface(config VmnetNetworkConfigurationRef, interfaceName string) error
- func NetworkConfigurationSetIpv4Subnet(config VmnetNetworkConfigurationRef, subnetAddr unsafe.Pointer, ...) error
- func NetworkConfigurationSetIpv6Prefix(config VmnetNetworkConfigurationRef, prefix unsafe.Pointer, length uint8) error
- func NetworkConfigurationSetMtu(config VmnetNetworkConfigurationRef, mtu uint32) error
- func NetworkCreate(configuration VmnetNetworkConfigurationRef) (result VmnetNetworkRef, status VmnetReturn)
- func NetworkCreateWithSerialization(network xpc.Object) (result VmnetNetworkRef, status VmnetReturn)
- func NetworkGetIpv4Subnet(network VmnetNetworkRef, subnet unsafe.Pointer, mask unsafe.Pointer)
- func NetworkGetIpv6Prefix(network VmnetNetworkRef, prefix unsafe.Pointer) (prefixLen uint8)
- func PortForwardingRuleGetDetails(rule xpc.Object, internalAddress unsafe.Pointer) (protocol uint8, externalPort uint16, internalPort uint16, err error)
- func Read(interface_ InterfaceRef, packets unsafe.Pointer, pktcnt *int32) error
- func StopInterface(interface_ InterfaceRef, queue dispatch.Queue, handler func(VmnetReturn)) error
- func Vmnet_allocate_mac_address_key() uintptr
- func Vmnet_enable_checksum_offload_key() uintptr
- func Vmnet_enable_isolation_key() uintptr
- func Vmnet_enable_tso_key() uintptr
- func Vmnet_enable_virtio_header_key() uintptr
- func Vmnet_end_address_key() uintptr
- func Vmnet_estimated_packets_available_key() uintptr
- func Vmnet_host_ip_address_key() uintptr
- func Vmnet_host_ipv6_address_key() uintptr
- func Vmnet_host_subnet_mask_key() uintptr
- func Vmnet_interface_id_key() uintptr
- func Vmnet_mac_address_key() uintptr
- func Vmnet_max_packet_size_key() uintptr
- func Vmnet_mtu_key() uintptr
- func Vmnet_nat66_prefix_key() uintptr
- func Vmnet_nat66_prefix_length_key() uintptr
- func Vmnet_network_identifier_key() uintptr
- func Vmnet_operation_mode_key() uintptr
- func Vmnet_read_max_packets_key() uintptr
- func Vmnet_shared_interface_name_key() uintptr
- func Vmnet_start_address_key() uintptr
- func Vmnet_subnet_mask_key() uintptr
- func Vmnet_write_max_packets_key() uintptr
- func Write(interface_ InterfaceRef, packets unsafe.Pointer, pktcnt *int32) error
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type FilesecProperty
- type Flag
- type Idtype
- type InterfaceEvent
- type InterfaceRef
- type IpcInfoObjectType
- type LaunchDataType
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type OSClockid
- type OperatingModes
- type Perm
- type PtrauthKey
- type QosClass
- type Tag
- type Type
- type VirtualMemoryGuardExceptionCode
- type VmnetInterface
- type VmnetNetwork
- type VmnetNetworkConfiguration
- type VmnetNetworkConfigurationRef
- type VmnetNetworkRef
- type VmnetReturn
- type Vmpktdesc
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
var ErrBufferExhausted = errkit.New("VmnetReturnDomain", 1007)
ErrBufferExhausted matches the vmnet status code VMNET_BUFFER_EXHAUSTED.
var ErrFailure = errkit.New("VmnetReturnDomain", 1001)
ErrFailure matches the vmnet status code VMNET_FAILURE.
var ErrInvalidAccess = errkit.New("VmnetReturnDomain", 1005)
ErrInvalidAccess matches the vmnet status code VMNET_INVALID_ACCESS.
var ErrInvalidArgument = errkit.New("VmnetReturnDomain", 1003)
ErrInvalidArgument matches the vmnet status code VMNET_INVALID_ARGUMENT.
var ErrMemFailure = errkit.New("VmnetReturnDomain", 1002)
ErrMemFailure matches the vmnet status code VMNET_MEM_FAILURE.
var ErrNotAuthorized = errkit.New("VmnetReturnDomain", 1010)
ErrNotAuthorized matches the vmnet status code VMNET_NOT_AUTHORIZED.
var ErrPacketTooBig = errkit.New("VmnetReturnDomain", 1006)
ErrPacketTooBig matches the vmnet status code VMNET_PACKET_TOO_BIG.
var ErrSetupIncomplete = errkit.New("VmnetReturnDomain", 1004)
ErrSetupIncomplete matches the vmnet status code VMNET_SETUP_INCOMPLETE.
var ErrSharingServiceBusy = errkit.New("VmnetReturnDomain", 1009)
ErrSharingServiceBusy matches the vmnet status code VMNET_SHARING_SERVICE_BUSY.
var ErrTooManyPackets = errkit.New("VmnetReturnDomain", 1008)
ErrTooManyPackets matches the vmnet status code VMNET_TOO_MANY_PACKETS.
Functions ¶
func CopySharedInterfaceList ¶ added in v0.17.0
CopySharedInterfaceList calls the vmnet framework function vmnet_copy_shared_interface_list.
func InterfaceAddIpPortForwardingRule ¶ added in v0.17.0
func InterfaceAddIpPortForwardingRule(interface_ InterfaceRef, protocol uint8, externalPort uint16, addressFamily uint8, internalAddress unsafe.Pointer, internalPort uint16, handler func(VmnetReturn)) error
InterfaceAddIpPortForwardingRule reports an error if the vmnet framework function vmnet_interface_add_ip_port_forwarding_rule fails.
func InterfaceAddPortForwardingRule ¶ added in v0.17.0
func InterfaceAddPortForwardingRule(interface_ InterfaceRef, protocol uint8, externalPort uint16, internalAddress unsafe.Pointer, internalPort uint16, handler func(VmnetReturn)) error
InterfaceAddPortForwardingRule reports an error if the vmnet framework function vmnet_interface_add_port_forwarding_rule fails.
func InterfaceGetIpPortForwardingRules ¶ added in v0.17.0
func InterfaceGetIpPortForwardingRules(interface_ InterfaceRef, addressFamily uint8, handler func(obj.Object)) error
InterfaceGetIpPortForwardingRules reports an error if the vmnet framework function vmnet_interface_get_ip_port_forwarding_rules fails.
func InterfaceGetPortForwardingRules ¶ added in v0.17.0
func InterfaceGetPortForwardingRules(interface_ InterfaceRef, handler func(obj.Object)) error
InterfaceGetPortForwardingRules reports an error if the vmnet framework function vmnet_interface_get_port_forwarding_rules fails.
func InterfaceRemoveIpPortForwardingRule ¶ added in v0.17.0
func InterfaceRemoveIpPortForwardingRule(interface_ InterfaceRef, protocol uint8, externalPort uint16, addressFamily uint8, handler func(VmnetReturn)) error
InterfaceRemoveIpPortForwardingRule reports an error if the vmnet framework function vmnet_interface_remove_ip_port_forwarding_rule fails.
func InterfaceRemovePortForwardingRule ¶ added in v0.17.0
func InterfaceRemovePortForwardingRule(interface_ InterfaceRef, protocol uint8, externalPort uint16, handler func(VmnetReturn)) error
InterfaceRemovePortForwardingRule reports an error if the vmnet framework function vmnet_interface_remove_port_forwarding_rule fails.
func InterfaceSetEventCallback ¶ added in v0.17.0
func InterfaceSetEventCallback(interface_ InterfaceRef, eventMask InterfaceEvent, queue dispatch.Queue, callback func(InterfaceEvent, obj.Object)) error
InterfaceSetEventCallback reports an error if the vmnet framework function vmnet_interface_set_event_callback fails.
func IpPortForwardingRuleGetDetails ¶ added in v0.17.0
func IpPortForwardingRuleGetDetails(rule xpc.Object, addressFamily uint8, internalAddress unsafe.Pointer) (protocol uint8, externalPort uint16, internalPort uint16, err error)
IpPortForwardingRuleGetDetails reports an error if the vmnet framework function vmnet_ip_port_forwarding_rule_get_details fails.
func NetworkConfigurationAddDhcpReservation ¶ added in v0.17.0
func NetworkConfigurationAddDhcpReservation(config VmnetNetworkConfigurationRef, client unsafe.Pointer, reservation unsafe.Pointer) error
NetworkConfigurationAddDhcpReservation reports an error if the vmnet framework function vmnet_network_configuration_add_dhcp_reservation fails.
func NetworkConfigurationAddPortForwardingRule ¶ added in v0.17.0
func NetworkConfigurationAddPortForwardingRule(config VmnetNetworkConfigurationRef, protocol uint8, addressFamily uint8, internalPort uint16, externalPort uint16, internalAddress unsafe.Pointer) error
NetworkConfigurationAddPortForwardingRule reports an error if the vmnet framework function vmnet_network_configuration_add_port_forwarding_rule fails.
func NetworkConfigurationCreate ¶ added in v0.17.0
func NetworkConfigurationCreate(mode OperatingModes) (result VmnetNetworkConfigurationRef, status VmnetReturn)
NetworkConfigurationCreate calls the vmnet framework function vmnet_network_configuration_create.
func NetworkConfigurationDisableDhcp ¶ added in v0.17.0
func NetworkConfigurationDisableDhcp(config VmnetNetworkConfigurationRef)
NetworkConfigurationDisableDhcp calls the vmnet framework function vmnet_network_configuration_disable_dhcp.
func NetworkConfigurationDisableDnsProxy ¶ added in v0.17.0
func NetworkConfigurationDisableDnsProxy(config VmnetNetworkConfigurationRef)
NetworkConfigurationDisableDnsProxy calls the vmnet framework function vmnet_network_configuration_disable_dns_proxy.
func NetworkConfigurationDisableNat44 ¶ added in v0.17.0
func NetworkConfigurationDisableNat44(config VmnetNetworkConfigurationRef)
NetworkConfigurationDisableNat44 calls the vmnet framework function vmnet_network_configuration_disable_nat44.
func NetworkConfigurationDisableNat66 ¶ added in v0.17.0
func NetworkConfigurationDisableNat66(config VmnetNetworkConfigurationRef)
NetworkConfigurationDisableNat66 calls the vmnet framework function vmnet_network_configuration_disable_nat66.
func NetworkConfigurationDisableRouterAdvertisement ¶ added in v0.17.0
func NetworkConfigurationDisableRouterAdvertisement(config VmnetNetworkConfigurationRef)
NetworkConfigurationDisableRouterAdvertisement calls the vmnet framework function vmnet_network_configuration_disable_router_advertisement.
func NetworkConfigurationSetExternalInterface ¶ added in v0.17.0
func NetworkConfigurationSetExternalInterface(config VmnetNetworkConfigurationRef, interfaceName string) error
NetworkConfigurationSetExternalInterface reports an error if the vmnet framework function vmnet_network_configuration_set_external_interface fails.
func NetworkConfigurationSetIpv4Subnet ¶ added in v0.17.0
func NetworkConfigurationSetIpv4Subnet(config VmnetNetworkConfigurationRef, subnetAddr unsafe.Pointer, subnetMask unsafe.Pointer) error
NetworkConfigurationSetIpv4Subnet reports an error if the vmnet framework function vmnet_network_configuration_set_ipv4_subnet fails.
func NetworkConfigurationSetIpv6Prefix ¶ added in v0.17.0
func NetworkConfigurationSetIpv6Prefix(config VmnetNetworkConfigurationRef, prefix unsafe.Pointer, length uint8) error
NetworkConfigurationSetIpv6Prefix reports an error if the vmnet framework function vmnet_network_configuration_set_ipv6_prefix fails.
func NetworkConfigurationSetMtu ¶ added in v0.17.0
func NetworkConfigurationSetMtu(config VmnetNetworkConfigurationRef, mtu uint32) error
NetworkConfigurationSetMtu reports an error if the vmnet framework function vmnet_network_configuration_set_mtu fails.
func NetworkCreate ¶ added in v0.17.0
func NetworkCreate(configuration VmnetNetworkConfigurationRef) (result VmnetNetworkRef, status VmnetReturn)
NetworkCreate calls the vmnet framework function vmnet_network_create.
func NetworkCreateWithSerialization ¶ added in v0.17.0
func NetworkCreateWithSerialization(network xpc.Object) (result VmnetNetworkRef, status VmnetReturn)
NetworkCreateWithSerialization calls the vmnet framework function vmnet_network_create_with_serialization.
func NetworkGetIpv4Subnet ¶ added in v0.17.0
func NetworkGetIpv4Subnet(network VmnetNetworkRef, subnet unsafe.Pointer, mask unsafe.Pointer)
NetworkGetIpv4Subnet calls the vmnet framework function vmnet_network_get_ipv4_subnet.
func NetworkGetIpv6Prefix ¶ added in v0.17.0
func NetworkGetIpv6Prefix(network VmnetNetworkRef, prefix unsafe.Pointer) (prefixLen uint8)
NetworkGetIpv6Prefix calls the vmnet framework function vmnet_network_get_ipv6_prefix.
func PortForwardingRuleGetDetails ¶ added in v0.17.0
func PortForwardingRuleGetDetails(rule xpc.Object, internalAddress unsafe.Pointer) (protocol uint8, externalPort uint16, internalPort uint16, err error)
PortForwardingRuleGetDetails reports an error if the vmnet framework function vmnet_port_forwarding_rule_get_details fails.
func Read ¶ added in v0.17.0
func Read(interface_ InterfaceRef, packets unsafe.Pointer, pktcnt *int32) error
Read reports an error if the vmnet framework function vmnet_read fails.
func StopInterface ¶ added in v0.17.0
func StopInterface(interface_ InterfaceRef, queue dispatch.Queue, handler func(VmnetReturn)) error
StopInterface reports an error if the vmnet framework function vmnet_stop_interface fails.
func Vmnet_allocate_mac_address_key ¶
func Vmnet_allocate_mac_address_key() uintptr
Vmnet_allocate_mac_address_key returns the address of the symbol vmnet_allocate_mac_address_key.
func Vmnet_enable_checksum_offload_key ¶
func Vmnet_enable_checksum_offload_key() uintptr
Vmnet_enable_checksum_offload_key returns the address of the symbol vmnet_enable_checksum_offload_key.
func Vmnet_enable_isolation_key ¶
func Vmnet_enable_isolation_key() uintptr
Vmnet_enable_isolation_key returns the address of the symbol vmnet_enable_isolation_key.
func Vmnet_enable_tso_key ¶
func Vmnet_enable_tso_key() uintptr
Vmnet_enable_tso_key returns the address of the symbol vmnet_enable_tso_key.
func Vmnet_enable_virtio_header_key ¶
func Vmnet_enable_virtio_header_key() uintptr
Vmnet_enable_virtio_header_key returns the address of the symbol vmnet_enable_virtio_header_key.
func Vmnet_end_address_key ¶
func Vmnet_end_address_key() uintptr
Vmnet_end_address_key returns the address of the symbol vmnet_end_address_key.
func Vmnet_estimated_packets_available_key ¶
func Vmnet_estimated_packets_available_key() uintptr
Vmnet_estimated_packets_available_key returns the address of the symbol vmnet_estimated_packets_available_key.
func Vmnet_host_ip_address_key ¶
func Vmnet_host_ip_address_key() uintptr
Vmnet_host_ip_address_key returns the address of the symbol vmnet_host_ip_address_key.
func Vmnet_host_ipv6_address_key ¶
func Vmnet_host_ipv6_address_key() uintptr
Vmnet_host_ipv6_address_key returns the address of the symbol vmnet_host_ipv6_address_key.
func Vmnet_host_subnet_mask_key ¶
func Vmnet_host_subnet_mask_key() uintptr
Vmnet_host_subnet_mask_key returns the address of the symbol vmnet_host_subnet_mask_key.
func Vmnet_interface_id_key ¶
func Vmnet_interface_id_key() uintptr
Vmnet_interface_id_key returns the address of the symbol vmnet_interface_id_key.
func Vmnet_mac_address_key ¶
func Vmnet_mac_address_key() uintptr
Vmnet_mac_address_key returns the address of the symbol vmnet_mac_address_key.
func Vmnet_max_packet_size_key ¶
func Vmnet_max_packet_size_key() uintptr
Vmnet_max_packet_size_key returns the address of the symbol vmnet_max_packet_size_key.
func Vmnet_mtu_key ¶
func Vmnet_mtu_key() uintptr
Vmnet_mtu_key returns the address of the symbol vmnet_mtu_key.
func Vmnet_nat66_prefix_key ¶
func Vmnet_nat66_prefix_key() uintptr
Vmnet_nat66_prefix_key returns the address of the symbol vmnet_nat66_prefix_key.
func Vmnet_nat66_prefix_length_key ¶
func Vmnet_nat66_prefix_length_key() uintptr
Vmnet_nat66_prefix_length_key returns the address of the symbol vmnet_nat66_prefix_length_key.
func Vmnet_network_identifier_key ¶
func Vmnet_network_identifier_key() uintptr
Vmnet_network_identifier_key returns the address of the symbol vmnet_network_identifier_key.
func Vmnet_operation_mode_key ¶
func Vmnet_operation_mode_key() uintptr
Vmnet_operation_mode_key returns the address of the symbol vmnet_operation_mode_key.
func Vmnet_read_max_packets_key ¶
func Vmnet_read_max_packets_key() uintptr
Vmnet_read_max_packets_key returns the address of the symbol vmnet_read_max_packets_key.
func Vmnet_shared_interface_name_key ¶
func Vmnet_shared_interface_name_key() uintptr
Vmnet_shared_interface_name_key returns the address of the symbol vmnet_shared_interface_name_key.
func Vmnet_start_address_key ¶
func Vmnet_start_address_key() uintptr
Vmnet_start_address_key returns the address of the symbol vmnet_start_address_key.
func Vmnet_subnet_mask_key ¶
func Vmnet_subnet_mask_key() uintptr
Vmnet_subnet_mask_key returns the address of the symbol vmnet_subnet_mask_key.
func Vmnet_write_max_packets_key ¶
func Vmnet_write_max_packets_key() uintptr
Vmnet_write_max_packets_key returns the address of the symbol vmnet_write_max_packets_key.
Types ¶
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 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 InterfaceEvent ¶ added in v0.17.0
type InterfaceEvent uint32
Interface event types.
const (
InterfaceEventAvailable InterfaceEvent = 1
)
func (InterfaceEvent) String ¶ added in v0.17.0
func (e InterfaceEvent) String() string
String returns the InterfaceEvent constant's name, or its numeric form when the value is not a known constant.
type InterfaceRef ¶ added in v0.18.0
InterfaceRef is a handle for the opaque interface_ref type.
func InterfaceStartWithNetwork ¶ added in v0.17.0
func InterfaceStartWithNetwork(network VmnetNetworkRef, interfaceDesc xpc.Object, queue dispatch.Queue, startBlock func(VmnetReturn, obj.Object)) InterfaceRef
InterfaceStartWithNetwork calls the vmnet framework function vmnet_interface_start_with_network.
func StartInterface ¶ added in v0.17.0
func StartInterface(interfaceDesc xpc.Object, queue dispatch.Queue, handler func(VmnetReturn, obj.Object)) InterfaceRef
StartInterface calls the vmnet framework function vmnet_start_interface.
func (InterfaceRef) IsNil ¶ added in v0.18.0
func (h InterfaceRef) IsNil() bool
IsNil reports whether InterfaceRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
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 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 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 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 OperatingModes ¶ added in v0.17.0
type OperatingModes uint32
The operating modes for an interface.
const ( OperatingModesHostMode OperatingModes = 1000 OperatingModesBridgedMode OperatingModes = 1002 )
func (OperatingModes) String ¶ added in v0.17.0
func (e OperatingModes) String() string
String returns the OperatingModes 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 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 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 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 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 VmnetNetwork ¶
type VmnetNetwork struct{}
type VmnetNetworkConfiguration ¶
type VmnetNetworkConfiguration struct{}
type VmnetNetworkConfigurationRef ¶ added in v0.18.0
VmnetNetworkConfigurationRef is a handle for the opaque vmnet_network_configuration_ref type.
func (VmnetNetworkConfigurationRef) IsNil ¶ added in v0.18.0
func (h VmnetNetworkConfigurationRef) IsNil() bool
IsNil reports whether VmnetNetworkConfigurationRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type VmnetNetworkRef ¶ added in v0.18.0
VmnetNetworkRef is a handle for the opaque vmnet_network_ref type.
func (VmnetNetworkRef) IsNil ¶ added in v0.18.0
func (h VmnetNetworkRef) IsNil() bool
IsNil reports whether VmnetNetworkRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type VmnetReturn ¶ added in v0.17.0
type VmnetReturn uint32
Values returned by functions in the vmnet Framework.
const ( VmnetReturnSuccess VmnetReturn = 1000 VmnetReturnFailure VmnetReturn = 1001 VmnetReturnMemFailure VmnetReturn = 1002 VmnetReturnInvalidArgument VmnetReturn = 1003 VmnetReturnSetupIncomplete VmnetReturn = 1004 VmnetReturnInvalidAccess VmnetReturn = 1005 VmnetReturnPacketTooBig VmnetReturn = 1006 VmnetReturnBufferExhausted VmnetReturn = 1007 VmnetReturnTooManyPackets VmnetReturn = 1008 VmnetReturnSharingServiceBusy VmnetReturn = 1009 VmnetReturnNotAuthorized VmnetReturn = 1010 )
func NetworkCopySerialization ¶ added in v0.17.0
func NetworkCopySerialization(network VmnetNetworkRef) (result unsafe.Pointer, status VmnetReturn)
NetworkCopySerialization calls the vmnet framework function vmnet_network_copy_serialization.
func (VmnetReturn) String ¶ added in v0.17.0
func (e VmnetReturn) String() string
String returns the VmnetReturn constant's name, or its numeric form when the value is not a known constant.
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.