Documentation
¶
Overview ¶
Package diskarbitration provides a fluent Go API over the macOS DiskArbitration 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.
Index ¶
- Constants
- func DAApprovalSessionGetTypeID() int
- func DAApprovalSessionScheduleWithRunLoop(session DAApprovalSessionRef, runLoop corefoundation.CFRunLoopRef, ...)
- func DAApprovalSessionUnscheduleFromRunLoop(session DAApprovalSessionRef, runLoop corefoundation.CFRunLoopRef, ...)
- func DADiskClaim(disk DADiskRef, options int, release unsafe.Pointer, ...)
- func DADiskCopyDescription(disk DADiskRef) corefoundation.CFDictionaryRef
- func DADiskCopyIOMedia(disk DADiskRef) int
- func DADiskEject(disk DADiskRef, options int, callback unsafe.Pointer, context_ unsafe.Pointer)
- func DADiskGetBSDName(disk DADiskRef) string
- func DADiskGetOptions(disk DADiskRef) int
- func DADiskGetTypeID() int
- func DADiskIsClaimed(disk DADiskRef) uint8
- func DADiskMount(disk DADiskRef, path corefoundation.CFURLRef, options int, ...)
- func DADiskMountWithArguments(disk DADiskRef, path corefoundation.CFURLRef, options int, ...)
- func DADiskRename(disk DADiskRef, name corefoundation.CFStringRef, options int, ...)
- func DADiskSetOptions(disk DADiskRef, options int, value uint8) int
- func DADiskUnclaim(disk DADiskRef)
- func DADiskUnmount(disk DADiskRef, options int, callback unsafe.Pointer, context_ unsafe.Pointer)
- func DADissenterGetStatus(dissenter DADissenterRef) int
- func DADissenterGetStatusString(dissenter DADissenterRef) corefoundation.CFStringRef
- func DARegisterDiskAppearedCallback(session DASessionRef, match corefoundation.CFDictionaryRef, ...)
- func DARegisterDiskDescriptionChangedCallback(session DASessionRef, match corefoundation.CFDictionaryRef, ...)
- func DARegisterDiskDisappearedCallback(session DASessionRef, match corefoundation.CFDictionaryRef, ...)
- func DARegisterDiskEjectApprovalCallback(session DASessionRef, match corefoundation.CFDictionaryRef, ...)
- func DARegisterDiskMountApprovalCallback(session DASessionRef, match corefoundation.CFDictionaryRef, ...)
- func DARegisterDiskPeekCallback(session DASessionRef, match corefoundation.CFDictionaryRef, order int, ...)
- func DARegisterDiskUnmountApprovalCallback(session DASessionRef, match corefoundation.CFDictionaryRef, ...)
- func DASessionGetTypeID() int
- func DASessionScheduleWithRunLoop(session DASessionRef, runLoop corefoundation.CFRunLoopRef, ...)
- func DASessionSetDispatchQueue(session DASessionRef, queue dispatch.Queue)
- func DASessionUnscheduleFromRunLoop(session DASessionRef, runLoop corefoundation.CFRunLoopRef, ...)
- func DAUnregisterApprovalCallback(session DASessionRef, callback unsafe.Pointer, context_ unsafe.Pointer)
- func DAUnregisterCallback(session DASessionRef, callback unsafe.Pointer, context_ unsafe.Pointer)
- func KDADiskDescriptionBusNameKey() obj.Object
- func KDADiskDescriptionBusPathKey() obj.Object
- func KDADiskDescriptionDeviceGUIDKey() obj.Object
- func KDADiskDescriptionDeviceInternalKey() obj.Object
- func KDADiskDescriptionDeviceModelKey() obj.Object
- func KDADiskDescriptionDevicePathKey() obj.Object
- func KDADiskDescriptionDeviceProtocolKey() obj.Object
- func KDADiskDescriptionDeviceRevisionKey() obj.Object
- func KDADiskDescriptionDeviceTDMLockedKey() obj.Object
- func KDADiskDescriptionDeviceUnitKey() obj.Object
- func KDADiskDescriptionDeviceVendorKey() obj.Object
- func KDADiskDescriptionFSKitPrefix() obj.Object
- func KDADiskDescriptionMatchMediaUnformatted() obj.Object
- func KDADiskDescriptionMatchMediaWhole() obj.Object
- func KDADiskDescriptionMatchVolumeMountable() obj.Object
- func KDADiskDescriptionMatchVolumeUnrecognized() obj.Object
- func KDADiskDescriptionMediaBSDMajorKey() obj.Object
- func KDADiskDescriptionMediaBSDMinorKey() obj.Object
- func KDADiskDescriptionMediaBSDNameKey() obj.Object
- func KDADiskDescriptionMediaBSDUnitKey() obj.Object
- func KDADiskDescriptionMediaBlockSizeKey() obj.Object
- func KDADiskDescriptionMediaContentKey() obj.Object
- func KDADiskDescriptionMediaEjectableKey() obj.Object
- func KDADiskDescriptionMediaEncryptedKey() obj.Object
- func KDADiskDescriptionMediaEncryptionDetailKey() obj.Object
- func KDADiskDescriptionMediaIconKey() obj.Object
- func KDADiskDescriptionMediaKindKey() obj.Object
- func KDADiskDescriptionMediaLeafKey() obj.Object
- func KDADiskDescriptionMediaNameKey() obj.Object
- func KDADiskDescriptionMediaPathKey() obj.Object
- func KDADiskDescriptionMediaRemovableKey() obj.Object
- func KDADiskDescriptionMediaSizeKey() obj.Object
- func KDADiskDescriptionMediaTypeKey() obj.Object
- func KDADiskDescriptionMediaUUIDKey() obj.Object
- func KDADiskDescriptionMediaWholeKey() obj.Object
- func KDADiskDescriptionMediaWritableKey() obj.Object
- func KDADiskDescriptionRepairRunningKey() obj.Object
- func KDADiskDescriptionVolumeKindKey() obj.Object
- func KDADiskDescriptionVolumeMountableKey() obj.Object
- func KDADiskDescriptionVolumeNameKey() obj.Object
- func KDADiskDescriptionVolumeNetworkKey() obj.Object
- func KDADiskDescriptionVolumePathKey() obj.Object
- func KDADiskDescriptionVolumeTypeKey() obj.Object
- func KDADiskDescriptionVolumeUUIDKey() obj.Object
- func KDADiskDescriptionWatchVolumeName() obj.Object
- func KDADiskDescriptionWatchVolumePath() obj.Object
- type Clockid
- type DAApprovalSessionRef
- type DADisk
- type DADiskRef
- func DADiskCopyWholeDisk(disk DADiskRef) DADiskRef
- func DADiskCreateFromBSDName(allocator corefoundation.CFAllocatorRef, session DASessionRef, name string) DADiskRef
- func DADiskCreateFromIOMedia(allocator corefoundation.CFAllocatorRef, session DASessionRef, media int) DADiskRef
- func DADiskCreateFromVolumePath(allocator corefoundation.CFAllocatorRef, session DASessionRef, ...) DADiskRef
- type DADissenter
- type DADissenterRef
- type DASession
- type DASessionRef
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type FilesecProperty
- type Flag
- type Idtype
- type IpcInfoObjectType
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type OSClockid
- type Perm
- type PtrauthKey
- type QosClass
- type Tag
- type Type
- type VirtualMemoryGuardExceptionCode
Constants ¶
const ( KDADiskClaimOptionDefault = 0 KDADiskEjectOptionDefault = 0 KDADiskMountOptionDefault = 0 KDADiskMountOptionNoFollow = 2 KDADiskMountOptionWhole = 1 KDADiskOptionDefault = 0 KDADiskRenameOptionDefault = 0 KDADiskUnmountOptionDefault = 0 KDADiskUnmountOptionForce = 524288 KDADiskUnmountOptionWhole = 1 KDAReturnBadArgument = -119930877 KDAReturnBusy = -119930878 KDAReturnError = -119930879 KDAReturnExclusiveAccess = -119930876 KDAReturnNoResources = -119930875 KDAReturnNotFound = -119930874 KDAReturnNotMounted = -119930873 KDAReturnNotPermitted = -119930872 KDAReturnNotPrivileged = -119930871 KDAReturnNotReady = -119930870 KDAReturnNotWritable = -119930869 KDAReturnSuccess = 0 KDAReturnUnsupported = -119930868 )
Variables ¶
This section is empty.
Functions ¶
func DAApprovalSessionGetTypeID ¶
func DAApprovalSessionGetTypeID() int
DAApprovalSessionGetTypeID calls the DiskArbitration framework function DAApprovalSessionGetTypeID.
func DAApprovalSessionScheduleWithRunLoop ¶
func DAApprovalSessionScheduleWithRunLoop(session DAApprovalSessionRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef)
DAApprovalSessionScheduleWithRunLoop calls the DiskArbitration framework function DAApprovalSessionScheduleWithRunLoop.
func DAApprovalSessionUnscheduleFromRunLoop ¶
func DAApprovalSessionUnscheduleFromRunLoop(session DAApprovalSessionRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef)
DAApprovalSessionUnscheduleFromRunLoop calls the DiskArbitration framework function DAApprovalSessionUnscheduleFromRunLoop.
func DADiskClaim ¶
func DADiskClaim(disk DADiskRef, options int, release unsafe.Pointer, releaseContext unsafe.Pointer, callback unsafe.Pointer, callbackContext unsafe.Pointer)
DADiskClaim calls the DiskArbitration framework function DADiskClaim.
func DADiskCopyDescription ¶
func DADiskCopyDescription(disk DADiskRef) corefoundation.CFDictionaryRef
DADiskCopyDescription calls the DiskArbitration framework function DADiskCopyDescription.
func DADiskCopyIOMedia ¶
DADiskCopyIOMedia calls the DiskArbitration framework function DADiskCopyIOMedia.
func DADiskEject ¶
DADiskEject calls the DiskArbitration framework function DADiskEject.
func DADiskGetBSDName ¶
DADiskGetBSDName calls the DiskArbitration framework function DADiskGetBSDName.
func DADiskGetOptions ¶
DADiskGetOptions calls the DiskArbitration framework function DADiskGetOptions.
func DADiskGetTypeID ¶
func DADiskGetTypeID() int
DADiskGetTypeID calls the DiskArbitration framework function DADiskGetTypeID.
func DADiskIsClaimed ¶
DADiskIsClaimed calls the DiskArbitration framework function DADiskIsClaimed.
func DADiskMount ¶
func DADiskMount(disk DADiskRef, path corefoundation.CFURLRef, options int, callback unsafe.Pointer, context_ unsafe.Pointer)
DADiskMount calls the DiskArbitration framework function DADiskMount.
func DADiskMountWithArguments ¶
func DADiskMountWithArguments(disk DADiskRef, path corefoundation.CFURLRef, options int, callback unsafe.Pointer, context_ unsafe.Pointer, arguments unsafe.Pointer)
DADiskMountWithArguments calls the DiskArbitration framework function DADiskMountWithArguments.
func DADiskRename ¶
func DADiskRename(disk DADiskRef, name corefoundation.CFStringRef, options int, callback unsafe.Pointer, context_ unsafe.Pointer)
DADiskRename calls the DiskArbitration framework function DADiskRename.
func DADiskSetOptions ¶
DADiskSetOptions calls the DiskArbitration framework function DADiskSetOptions.
func DADiskUnclaim ¶
func DADiskUnclaim(disk DADiskRef)
DADiskUnclaim calls the DiskArbitration framework function DADiskUnclaim.
func DADiskUnmount ¶
DADiskUnmount calls the DiskArbitration framework function DADiskUnmount.
func DADissenterGetStatus ¶
func DADissenterGetStatus(dissenter DADissenterRef) int
DADissenterGetStatus calls the DiskArbitration framework function DADissenterGetStatus.
func DADissenterGetStatusString ¶
func DADissenterGetStatusString(dissenter DADissenterRef) corefoundation.CFStringRef
DADissenterGetStatusString calls the DiskArbitration framework function DADissenterGetStatusString.
func DARegisterDiskAppearedCallback ¶
func DARegisterDiskAppearedCallback(session DASessionRef, match corefoundation.CFDictionaryRef, callback unsafe.Pointer, context_ unsafe.Pointer)
DARegisterDiskAppearedCallback calls the DiskArbitration framework function DARegisterDiskAppearedCallback.
func DARegisterDiskDescriptionChangedCallback ¶
func DARegisterDiskDescriptionChangedCallback(session DASessionRef, match corefoundation.CFDictionaryRef, watch corefoundation.CFArrayRef, callback unsafe.Pointer, context_ unsafe.Pointer)
DARegisterDiskDescriptionChangedCallback calls the DiskArbitration framework function DARegisterDiskDescriptionChangedCallback.
func DARegisterDiskDisappearedCallback ¶
func DARegisterDiskDisappearedCallback(session DASessionRef, match corefoundation.CFDictionaryRef, callback unsafe.Pointer, context_ unsafe.Pointer)
DARegisterDiskDisappearedCallback calls the DiskArbitration framework function DARegisterDiskDisappearedCallback.
func DARegisterDiskEjectApprovalCallback ¶
func DARegisterDiskEjectApprovalCallback(session DASessionRef, match corefoundation.CFDictionaryRef, callback unsafe.Pointer, context_ unsafe.Pointer)
DARegisterDiskEjectApprovalCallback calls the DiskArbitration framework function DARegisterDiskEjectApprovalCallback.
func DARegisterDiskMountApprovalCallback ¶
func DARegisterDiskMountApprovalCallback(session DASessionRef, match corefoundation.CFDictionaryRef, callback unsafe.Pointer, context_ unsafe.Pointer)
DARegisterDiskMountApprovalCallback calls the DiskArbitration framework function DARegisterDiskMountApprovalCallback.
func DARegisterDiskPeekCallback ¶
func DARegisterDiskPeekCallback(session DASessionRef, match corefoundation.CFDictionaryRef, order int, callback unsafe.Pointer, context_ unsafe.Pointer)
DARegisterDiskPeekCallback calls the DiskArbitration framework function DARegisterDiskPeekCallback.
func DARegisterDiskUnmountApprovalCallback ¶
func DARegisterDiskUnmountApprovalCallback(session DASessionRef, match corefoundation.CFDictionaryRef, callback unsafe.Pointer, context_ unsafe.Pointer)
DARegisterDiskUnmountApprovalCallback calls the DiskArbitration framework function DARegisterDiskUnmountApprovalCallback.
func DASessionGetTypeID ¶
func DASessionGetTypeID() int
DASessionGetTypeID calls the DiskArbitration framework function DASessionGetTypeID.
func DASessionScheduleWithRunLoop ¶
func DASessionScheduleWithRunLoop(session DASessionRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef)
DASessionScheduleWithRunLoop calls the DiskArbitration framework function DASessionScheduleWithRunLoop.
func DASessionSetDispatchQueue ¶
func DASessionSetDispatchQueue(session DASessionRef, queue dispatch.Queue)
DASessionSetDispatchQueue calls the DiskArbitration framework function DASessionSetDispatchQueue.
func DASessionUnscheduleFromRunLoop ¶
func DASessionUnscheduleFromRunLoop(session DASessionRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef)
DASessionUnscheduleFromRunLoop calls the DiskArbitration framework function DASessionUnscheduleFromRunLoop.
func DAUnregisterApprovalCallback ¶
func DAUnregisterApprovalCallback(session DASessionRef, callback unsafe.Pointer, context_ unsafe.Pointer)
DAUnregisterApprovalCallback calls the DiskArbitration framework function DAUnregisterApprovalCallback.
func DAUnregisterCallback ¶
func DAUnregisterCallback(session DASessionRef, callback unsafe.Pointer, context_ unsafe.Pointer)
DAUnregisterCallback calls the DiskArbitration framework function DAUnregisterCallback.
func KDADiskDescriptionBusNameKey ¶
KDADiskDescriptionBusNameKey returns the value of the constant kDADiskDescriptionBusNameKey.
func KDADiskDescriptionBusPathKey ¶
KDADiskDescriptionBusPathKey returns the value of the constant kDADiskDescriptionBusPathKey.
func KDADiskDescriptionDeviceGUIDKey ¶
KDADiskDescriptionDeviceGUIDKey returns the value of the constant kDADiskDescriptionDeviceGUIDKey.
func KDADiskDescriptionDeviceInternalKey ¶
KDADiskDescriptionDeviceInternalKey returns the value of the constant kDADiskDescriptionDeviceInternalKey.
func KDADiskDescriptionDeviceModelKey ¶
KDADiskDescriptionDeviceModelKey returns the value of the constant kDADiskDescriptionDeviceModelKey.
func KDADiskDescriptionDevicePathKey ¶
KDADiskDescriptionDevicePathKey returns the value of the constant kDADiskDescriptionDevicePathKey.
func KDADiskDescriptionDeviceProtocolKey ¶
KDADiskDescriptionDeviceProtocolKey returns the value of the constant kDADiskDescriptionDeviceProtocolKey.
func KDADiskDescriptionDeviceRevisionKey ¶
KDADiskDescriptionDeviceRevisionKey returns the value of the constant kDADiskDescriptionDeviceRevisionKey.
func KDADiskDescriptionDeviceTDMLockedKey ¶
KDADiskDescriptionDeviceTDMLockedKey returns the value of the constant kDADiskDescriptionDeviceTDMLockedKey.
func KDADiskDescriptionDeviceUnitKey ¶
KDADiskDescriptionDeviceUnitKey returns the value of the constant kDADiskDescriptionDeviceUnitKey.
func KDADiskDescriptionDeviceVendorKey ¶
KDADiskDescriptionDeviceVendorKey returns the value of the constant kDADiskDescriptionDeviceVendorKey.
func KDADiskDescriptionFSKitPrefix ¶
KDADiskDescriptionFSKitPrefix returns the value of the constant kDADiskDescriptionFSKitPrefix.
func KDADiskDescriptionMatchMediaUnformatted ¶
KDADiskDescriptionMatchMediaUnformatted returns the value of the constant kDADiskDescriptionMatchMediaUnformatted.
func KDADiskDescriptionMatchMediaWhole ¶
KDADiskDescriptionMatchMediaWhole returns the value of the constant kDADiskDescriptionMatchMediaWhole.
func KDADiskDescriptionMatchVolumeMountable ¶
KDADiskDescriptionMatchVolumeMountable returns the value of the constant kDADiskDescriptionMatchVolumeMountable.
func KDADiskDescriptionMatchVolumeUnrecognized ¶
KDADiskDescriptionMatchVolumeUnrecognized returns the value of the constant kDADiskDescriptionMatchVolumeUnrecognized.
func KDADiskDescriptionMediaBSDMajorKey ¶
KDADiskDescriptionMediaBSDMajorKey returns the value of the constant kDADiskDescriptionMediaBSDMajorKey.
func KDADiskDescriptionMediaBSDMinorKey ¶
KDADiskDescriptionMediaBSDMinorKey returns the value of the constant kDADiskDescriptionMediaBSDMinorKey.
func KDADiskDescriptionMediaBSDNameKey ¶
KDADiskDescriptionMediaBSDNameKey returns the value of the constant kDADiskDescriptionMediaBSDNameKey.
func KDADiskDescriptionMediaBSDUnitKey ¶
KDADiskDescriptionMediaBSDUnitKey returns the value of the constant kDADiskDescriptionMediaBSDUnitKey.
func KDADiskDescriptionMediaBlockSizeKey ¶
KDADiskDescriptionMediaBlockSizeKey returns the value of the constant kDADiskDescriptionMediaBlockSizeKey.
func KDADiskDescriptionMediaContentKey ¶
KDADiskDescriptionMediaContentKey returns the value of the constant kDADiskDescriptionMediaContentKey.
func KDADiskDescriptionMediaEjectableKey ¶
KDADiskDescriptionMediaEjectableKey returns the value of the constant kDADiskDescriptionMediaEjectableKey.
func KDADiskDescriptionMediaEncryptedKey ¶
KDADiskDescriptionMediaEncryptedKey returns the value of the constant kDADiskDescriptionMediaEncryptedKey.
func KDADiskDescriptionMediaEncryptionDetailKey ¶
KDADiskDescriptionMediaEncryptionDetailKey returns the value of the constant kDADiskDescriptionMediaEncryptionDetailKey.
func KDADiskDescriptionMediaIconKey ¶
KDADiskDescriptionMediaIconKey returns the value of the constant kDADiskDescriptionMediaIconKey.
func KDADiskDescriptionMediaKindKey ¶
KDADiskDescriptionMediaKindKey returns the value of the constant kDADiskDescriptionMediaKindKey.
func KDADiskDescriptionMediaLeafKey ¶
KDADiskDescriptionMediaLeafKey returns the value of the constant kDADiskDescriptionMediaLeafKey.
func KDADiskDescriptionMediaNameKey ¶
KDADiskDescriptionMediaNameKey returns the value of the constant kDADiskDescriptionMediaNameKey.
func KDADiskDescriptionMediaPathKey ¶
KDADiskDescriptionMediaPathKey returns the value of the constant kDADiskDescriptionMediaPathKey.
func KDADiskDescriptionMediaRemovableKey ¶
KDADiskDescriptionMediaRemovableKey returns the value of the constant kDADiskDescriptionMediaRemovableKey.
func KDADiskDescriptionMediaSizeKey ¶
KDADiskDescriptionMediaSizeKey returns the value of the constant kDADiskDescriptionMediaSizeKey.
func KDADiskDescriptionMediaTypeKey ¶
KDADiskDescriptionMediaTypeKey returns the value of the constant kDADiskDescriptionMediaTypeKey.
func KDADiskDescriptionMediaUUIDKey ¶
KDADiskDescriptionMediaUUIDKey returns the value of the constant kDADiskDescriptionMediaUUIDKey.
func KDADiskDescriptionMediaWholeKey ¶
KDADiskDescriptionMediaWholeKey returns the value of the constant kDADiskDescriptionMediaWholeKey.
func KDADiskDescriptionMediaWritableKey ¶
KDADiskDescriptionMediaWritableKey returns the value of the constant kDADiskDescriptionMediaWritableKey.
func KDADiskDescriptionRepairRunningKey ¶
KDADiskDescriptionRepairRunningKey returns the value of the constant kDADiskDescriptionRepairRunningKey.
func KDADiskDescriptionVolumeKindKey ¶
KDADiskDescriptionVolumeKindKey returns the value of the constant kDADiskDescriptionVolumeKindKey.
func KDADiskDescriptionVolumeMountableKey ¶
KDADiskDescriptionVolumeMountableKey returns the value of the constant kDADiskDescriptionVolumeMountableKey.
func KDADiskDescriptionVolumeNameKey ¶
KDADiskDescriptionVolumeNameKey returns the value of the constant kDADiskDescriptionVolumeNameKey.
func KDADiskDescriptionVolumeNetworkKey ¶
KDADiskDescriptionVolumeNetworkKey returns the value of the constant kDADiskDescriptionVolumeNetworkKey.
func KDADiskDescriptionVolumePathKey ¶
KDADiskDescriptionVolumePathKey returns the value of the constant kDADiskDescriptionVolumePathKey.
func KDADiskDescriptionVolumeTypeKey ¶
KDADiskDescriptionVolumeTypeKey returns the value of the constant kDADiskDescriptionVolumeTypeKey.
func KDADiskDescriptionVolumeUUIDKey ¶
KDADiskDescriptionVolumeUUIDKey returns the value of the constant kDADiskDescriptionVolumeUUIDKey.
func KDADiskDescriptionWatchVolumeName ¶
KDADiskDescriptionWatchVolumeName returns the value of the constant kDADiskDescriptionWatchVolumeName.
func KDADiskDescriptionWatchVolumePath ¶
KDADiskDescriptionWatchVolumePath returns the value of the constant kDADiskDescriptionWatchVolumePath.
Types ¶
type DAApprovalSessionRef ¶ added in v0.18.0
DAApprovalSessionRef is a handle for the opaque DAApprovalSessionRef type.
func DAApprovalSessionCreate ¶
func DAApprovalSessionCreate(allocator corefoundation.CFAllocatorRef) DAApprovalSessionRef
DAApprovalSessionCreate calls the DiskArbitration framework function DAApprovalSessionCreate.
func (DAApprovalSessionRef) IsNil ¶ added in v0.18.0
func (h DAApprovalSessionRef) IsNil() bool
IsNil reports whether DAApprovalSessionRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type DADiskRef ¶ added in v0.18.0
DADiskRef is a handle for the opaque DADiskRef type.
func DADiskCopyWholeDisk ¶
DADiskCopyWholeDisk calls the DiskArbitration framework function DADiskCopyWholeDisk.
func DADiskCreateFromBSDName ¶
func DADiskCreateFromBSDName(allocator corefoundation.CFAllocatorRef, session DASessionRef, name string) DADiskRef
DADiskCreateFromBSDName calls the DiskArbitration framework function DADiskCreateFromBSDName.
func DADiskCreateFromIOMedia ¶
func DADiskCreateFromIOMedia(allocator corefoundation.CFAllocatorRef, session DASessionRef, media int) DADiskRef
DADiskCreateFromIOMedia calls the DiskArbitration framework function DADiskCreateFromIOMedia.
func DADiskCreateFromVolumePath ¶
func DADiskCreateFromVolumePath(allocator corefoundation.CFAllocatorRef, session DASessionRef, path corefoundation.CFURLRef) DADiskRef
DADiskCreateFromVolumePath calls the DiskArbitration framework function DADiskCreateFromVolumePath.
type DADissenter ¶
type DADissenter struct{}
type DADissenterRef ¶ added in v0.18.0
DADissenterRef is a handle for the opaque DADissenterRef type.
func DADissenterCreate ¶
func DADissenterCreate(allocator corefoundation.CFAllocatorRef, status int, str corefoundation.CFStringRef) DADissenterRef
DADissenterCreate calls the DiskArbitration framework function DADissenterCreate.
func (DADissenterRef) IsNil ¶ added in v0.18.0
func (h DADissenterRef) IsNil() bool
IsNil reports whether DADissenterRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type DASessionRef ¶ added in v0.18.0
DASessionRef is a handle for the opaque DASessionRef type.
func DASessionCreate ¶
func DASessionCreate(allocator corefoundation.CFAllocatorRef) DASessionRef
DASessionCreate calls the DiskArbitration framework function DASessionCreate.
func (DASessionRef) IsNil ¶ added in v0.18.0
func (h DASessionRef) IsNil() bool
IsNil reports whether DASessionRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
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 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 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 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.