Documentation
¶
Overview ¶
Package installerplugins provides a fluent Go API over the macOS InstallerPlugins 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 ¶
- func InstallerState_Choice_CustomLocation() obj.Object
- func InstallerState_Choice_Identifier() obj.Object
- func InstallerState_Choice_Installed() obj.Object
- type CGLCPContextPriorityRequest
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type EvCmd
- type FilesecProperty
- type Flag
- type Idtype
- type InstallerPane
- func (ip *InstallerPane) ContentView() obj.Object
- func (ip *InstallerPane) Description() string
- func (ip *InstallerPane) DidEnterPane(dir InstallerSectionDirection)
- func (ip *InstallerPane) DidExitPane(dir InstallerSectionDirection)
- func (ip *InstallerPane) FirstKeyView() obj.Object
- func (ip *InstallerPane) GotoNextPane() bool
- func (ip *InstallerPane) GotoPreviousPane() bool
- func (ip *InstallerPane) IsEqual(other obj.Object) bool
- func (ip *InstallerPane) IsKind(className string) bool
- func (ip *InstallerPane) LastKeyView() obj.Object
- func (ip *InstallerPane) NextEnabled() bool
- func (ip *InstallerPane) NextPane() *InstallerPane
- func (ip *InstallerPane) PreviousEnabled() bool
- func (ip *InstallerPane) Section() *InstallerSection
- func (ip *InstallerPane) ShouldExitPane(dir InstallerSectionDirection) bool
- func (ip *InstallerPane) String() string
- func (ip *InstallerPane) Title() string
- func (ip *InstallerPane) WillEnterPane(dir InstallerSectionDirection)
- func (ip *InstallerPane) WillExitPane(dir InstallerSectionDirection)
- func (ip *InstallerPane) WithContentView(contentView obj.Object) *InstallerPane
- func (ip *InstallerPane) WithFirstKeyView(firstKeyView obj.Object) *InstallerPane
- func (ip *InstallerPane) WithInitialKeyView(initialKeyView obj.Object) *InstallerPane
- func (ip *InstallerPane) WithLastKeyView(lastKeyView obj.Object) *InstallerPane
- func (ip *InstallerPane) WithNextEnabled(nextEnabled bool) *InstallerPane
- func (ip *InstallerPane) WithNextPane(nextPane *InstallerPane) *InstallerPane
- func (ip *InstallerPane) WithPreviousEnabled(previousEnabled bool) *InstallerPane
- type InstallerPane_Private
- type InstallerSection
- func (is *InstallerSection) ActivePane() *InstallerPane
- func (is *InstallerSection) Bundle() *foundation.Bundle
- func (is *InstallerSection) Description() string
- func (is *InstallerSection) DidLoadMainNib()
- func (is *InstallerSection) FirstPane() *InstallerPane
- func (is *InstallerSection) GotoPane(pane *InstallerPane) bool
- func (is *InstallerSection) InstallerState() *InstallerState
- func (is *InstallerSection) IsEqual(other obj.Object) bool
- func (is *InstallerSection) IsKind(className string) bool
- func (is *InstallerSection) SharedDictionary() obj.Object
- func (is *InstallerSection) ShouldLoad() bool
- func (is *InstallerSection) String() string
- func (is *InstallerSection) Title() string
- func (is *InstallerSection) WillLoadMainNib()
- type InstallerSectionDirection
- type InstallerSection_Private
- type InstallerState
- func (is *InstallerState) ChoiceDictionaries() obj.Object
- func (is *InstallerState) ChoiceDictionaryForIdentifier(choiceIdentifier string) obj.Object
- func (is *InstallerState) Description() string
- func (is *InstallerState) InstallStarted() bool
- func (is *InstallerState) InstallSucceeded() bool
- func (is *InstallerState) IsEqual(other obj.Object) bool
- func (is *InstallerState) IsKind(className string) bool
- func (is *InstallerState) LicenseAgreed() bool
- func (is *InstallerState) LicenseAgreedLanguage() string
- func (is *InstallerState) String() string
- func (is *InstallerState) TargetPath() string
- func (is *InstallerState) TargetVolumePath() string
- type InstallerState_Private
- type IpcInfoObjectType
- type LaunchDataType
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type NXMouseButton
- type OSClockid
- type OSUnfairLockFlags
- type PMPageToPaperMappingType
- type Perm
- type PtrauthKey
- type QosClass
- type Tag
- type Type
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallerState_Choice_CustomLocation ¶
InstallerState_Choice_CustomLocation returns the string constant InstallerState_Choice_CustomLocation, for use as a dictionary key or argument.
func InstallerState_Choice_Identifier ¶
InstallerState_Choice_Identifier returns the string constant InstallerState_Choice_Identifier, for use as a dictionary key or argument.
func InstallerState_Choice_Installed ¶
InstallerState_Choice_Installed returns the string constant InstallerState_Choice_Installed, for use as a dictionary key or argument.
Types ¶
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 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 InstallerPane ¶
InstallerPane is an idiomatic wrapper over the Objective-C class InstallerPane.
func InstallerPaneFromID ¶
func InstallerPaneFromID(id objc.ID) *InstallerPane
InstallerPaneFromID adopts an existing Objective-C object as a InstallerPane (nil for 0), retaining it and registering a release finalizer.
func NewInstallerPane ¶ added in v0.17.0
func NewInstallerPane() *InstallerPane
NewInstallerPane creates a new InstallerPane.
func NewInstallerPaneWithSection ¶ added in v0.17.0
func NewInstallerPaneWithSection(parent obj.Object) *InstallerPane
NewInstallerPaneWithSection init method for InstallerPane. This method takes it's parent section as an argument.
func (*InstallerPane) ContentView ¶
func (ip *InstallerPane) ContentView() obj.Object
ContentView returns the contentView outlet. ContentView is used to determine what is to be displayed on screen when this pane is active. The contentView must be the same view when the pane is exited, as when the pane is first entered. Subclasses can override this method to return dynamic views which are not loaded from a nib.
func (*InstallerPane) Description ¶ added in v0.17.0
func (ip *InstallerPane) Description() string
Description returns the object's -description text.
func (*InstallerPane) DidEnterPane ¶
func (ip *InstallerPane) DidEnterPane(dir InstallerSectionDirection)
DidEnterPane called immediatly after the InstallerPane is displayed on the screen.
func (*InstallerPane) DidExitPane ¶
func (ip *InstallerPane) DidExitPane(dir InstallerSectionDirection)
DidExitPane called immediatly after the InstallerPane has exited and has been removed from the screen.
func (*InstallerPane) FirstKeyView ¶
func (ip *InstallerPane) FirstKeyView() obj.Object
FirstKeyView returns the view that should first have keyboard focus when the content view of the pane first becomes key. This method returns the firstKeyView outlet. This outlet should be connected in the nib containing the pane. A subclass can override this method to return a dynamically defined firstKeyView.
func (*InstallerPane) GotoNextPane ¶
func (ip *InstallerPane) GotoNextPane() bool
GotoNextPane reports whether causes the current pane to exit and the following pane available to be loaded. gotoNextPane causes this pane's shouldExit: method to be skipped.
func (*InstallerPane) GotoPreviousPane ¶
func (ip *InstallerPane) GotoPreviousPane() bool
GotoPreviousPane reports whether causes the current pane to exit and the previous pane in the Installer's Pane Stack to be displayed. gotoNextPane causes this pane's shouldExit: method to be skipped.
func (*InstallerPane) IsEqual ¶ added in v0.17.0
func (ip *InstallerPane) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*InstallerPane) IsKind ¶ added in v0.17.0
func (ip *InstallerPane) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*InstallerPane) LastKeyView ¶
func (ip *InstallerPane) LastKeyView() obj.Object
LastKeyView returns the lastKeyView which has focus before the contentView of the pane is no longer the key view. A subclass can override this method to return a dynamically defined lastKeyView.
func (*InstallerPane) NextEnabled ¶
func (ip *InstallerPane) NextEnabled() bool
NextEnabled reports whether going to the next pane is enabled in the UI.
func (*InstallerPane) NextPane ¶
func (ip *InstallerPane) NextPane() *InstallerPane
NextPane returns the next InstallerPane to follow this one. Set the nextPane outlet in a nib to define a default nextPane. A subclass may want to override nextPane if the pane determines it's nextPane dynamically.
func (*InstallerPane) PreviousEnabled ¶
func (ip *InstallerPane) PreviousEnabled() bool
PreviousEnabled reports whether going to the previous pane is enabled in the UI.
func (*InstallerPane) Section ¶
func (ip *InstallerPane) Section() *InstallerSection
Section returns the parent section for this pane.
func (*InstallerPane) ShouldExitPane ¶
func (ip *InstallerPane) ShouldExitPane(dir InstallerSectionDirection) bool
ShouldExitPane called to determine if a pane should exit and allow another pane to be display on screen. A subclass should override this method if it needs to prevent the InstallerPane from exiting. Once the InstallerPane decides it is time to exit, it can call gotoNextPane or gotoPreviousPane to exit without calling shouldExitPane again.
func (*InstallerPane) String ¶ added in v0.17.0
func (ip *InstallerPane) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*InstallerPane) Title ¶
func (ip *InstallerPane) Title() string
Title returns title text for the pane while being displayed. The title is retrieved and displayed every time a pane is entered. The title must be vaild after the willEnter method is called. You must override this method if you would like a title for a custom pane.
func (*InstallerPane) WillEnterPane ¶
func (ip *InstallerPane) WillEnterPane(dir InstallerSectionDirection)
WillEnterPane called immediatly before the InstallerPane is displayed on the screen.
func (*InstallerPane) WillExitPane ¶
func (ip *InstallerPane) WillExitPane(dir InstallerSectionDirection)
WillExitPane called immediatly before the InstallerPane will exit and be removed from the screen.
func (*InstallerPane) WithContentView ¶ added in v0.17.0
func (ip *InstallerPane) WithContentView(contentView obj.Object) *InstallerPane
WithContentView sets the content view.
func (*InstallerPane) WithFirstKeyView ¶ added in v0.17.0
func (ip *InstallerPane) WithFirstKeyView(firstKeyView obj.Object) *InstallerPane
WithFirstKeyView sets the first key view.
func (*InstallerPane) WithInitialKeyView ¶ added in v0.17.0
func (ip *InstallerPane) WithInitialKeyView(initialKeyView obj.Object) *InstallerPane
WithInitialKeyView sets the initial key view.
func (*InstallerPane) WithLastKeyView ¶ added in v0.17.0
func (ip *InstallerPane) WithLastKeyView(lastKeyView obj.Object) *InstallerPane
WithLastKeyView sets the last key view.
func (*InstallerPane) WithNextEnabled ¶ added in v0.17.0
func (ip *InstallerPane) WithNextEnabled(nextEnabled bool) *InstallerPane
WithNextEnabled sets specifies whether going to the next pane is enabled in the UI.
func (*InstallerPane) WithNextPane ¶ added in v0.17.0
func (ip *InstallerPane) WithNextPane(nextPane *InstallerPane) *InstallerPane
WithNextPane sets the next pane.
func (*InstallerPane) WithPreviousEnabled ¶ added in v0.17.0
func (ip *InstallerPane) WithPreviousEnabled(previousEnabled bool) *InstallerPane
WithPreviousEnabled sets specifies whether going to the previous pane is enabled in the UI.
type InstallerPane_Private ¶
InstallerPane_Private is a handle for the opaque InstallerPane_Private type.
func (InstallerPane_Private) IsNil ¶ added in v0.18.0
func (h InstallerPane_Private) IsNil() bool
IsNil reports whether InstallerPane_Private is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type InstallerSection ¶
InstallerSection is an idiomatic wrapper over the Objective-C class InstallerSection.
func InstallerSectionFromID ¶
func InstallerSectionFromID(id objc.ID) *InstallerSection
InstallerSectionFromID adopts an existing Objective-C object as a InstallerSection (nil for 0), retaining it and registering a release finalizer.
func NewInstallerSection ¶ added in v0.17.0
func NewInstallerSection() *InstallerSection
NewInstallerSection creates a new InstallerSection.
func (*InstallerSection) ActivePane ¶
func (is *InstallerSection) ActivePane() *InstallerPane
ActivePane returns the current active page for this section. If the section is active, it will return the current active page. If the section is not active, nil will be returned.
func (*InstallerSection) Bundle ¶
func (is *InstallerSection) Bundle() *foundation.Bundle
Bundle returns this method returns the NSBundle in which the InstallerSection is located. Since InstallerSection is not typically overriden, the bundle returned may not necessarily be the same bundle as the InstallerSection class. Use this method to gain access to bundle resources.
func (*InstallerSection) Description ¶ added in v0.17.0
func (is *InstallerSection) Description() string
Description returns the object's -description text.
func (*InstallerSection) DidLoadMainNib ¶
func (is *InstallerSection) DidLoadMainNib()
DidLoadMainNib called immediatly after the default nib for the section is loaded. If no default nib is specified, didLoadMainNib is called immediately after willLoadMainNib is called. didLoadMainNib is called before the section's panes are in view.
func (*InstallerSection) FirstPane ¶
func (is *InstallerSection) FirstPane() *InstallerPane
FirstPane returns the first pane specified by the firstPane outlet. This pane is the first pane entered when the section first becomes active.
func (*InstallerSection) GotoPane ¶
func (is *InstallerSection) GotoPane(pane *InstallerPane) bool
GotoPane this method causes the current pane to exit and "pane" to be made active. This effectively replaces the current pane and does not place the current pane onto the pane stack. gotoPane does not invoke shouldExit method for the current pane. gotoPane is typically not overriden by a subclass.
func (*InstallerSection) InstallerState ¶
func (is *InstallerSection) InstallerState() *InstallerState
InstallerState returns the Installer State object for the current install session. Returns an object which describes the Installer choices and status at the given time. Plugins cannot influence this state, it should only be used for informational purposes. See InstallerState.h for more details.
func (*InstallerSection) IsEqual ¶ added in v0.17.0
func (is *InstallerSection) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*InstallerSection) IsKind ¶ added in v0.17.0
func (is *InstallerSection) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*InstallerSection) SharedDictionary ¶
func (is *InstallerSection) SharedDictionary() obj.Object
SharedDictionary returns a global Mutable Dictionary which is global to the Install session. Use this dictionary to pass information between sections. This dictionary should not be used to store state for your section or its panes.
func (*InstallerSection) ShouldLoad ¶
func (is *InstallerSection) ShouldLoad() bool
ShouldLoad reports whether called when a section is first about to be fully loaded. By default this method returns true. A Subclass can override this method and determine at runtime if the section makes sense. Return false and the section will not be further loaded. sections are never fully unloaded.
func (*InstallerSection) String ¶ added in v0.17.0
func (is *InstallerSection) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*InstallerSection) Title ¶
func (is *InstallerSection) Title() string
Title returns the title for the section defined in the Info.plist file for the section's bundle. The title retrieved using the "InstallerSectionTitle" key in the Info.plist for the section's bundle and that key must be present in the InfoPlist.strings file for title to be localized. Although subclasses can override this method and return a dynamic title at runtime, the title is only retrieved for display once (immediatly following the shouldLoad method, if shouldLoad returns YES).
func (*InstallerSection) WillLoadMainNib ¶
func (is *InstallerSection) WillLoadMainNib()
WillLoadMainNib each InstallerSection object can define a default nib to be loaded by the Installer at the optimal time. Before this default nib is loaded willLoadMainNib will be called. didLoadMainNib is called when the nib is successfully loaded. The nib may be loaded way before the content is display on the screen, so awakeFromNib methods should not assume the content is displayed to the user. WillEnter/DidEnter method should be used to determine when views are actually "in view." A default nib is specified for a section in the Info.plist for the section using the NSMainNibFile key. A subclass can override this method to do any necessary work before the main nib is loaded or to actually load a custom nib if no default nib is specified.
type InstallerSectionDirection ¶
type InstallerSectionDirection int64
const ( InstallerDirectionForward InstallerSectionDirection = 0 InstallerDirectionBackward InstallerSectionDirection = 1 InstallerDirectionUndefined InstallerSectionDirection = 2 )
func (InstallerSectionDirection) String ¶
func (e InstallerSectionDirection) String() string
String returns the InstallerSectionDirection constant's name, or its numeric form when the value is not a known constant.
type InstallerSection_Private ¶
InstallerSection_Private is a handle for the opaque InstallerSection_Private type.
func (InstallerSection_Private) IsNil ¶ added in v0.18.0
func (h InstallerSection_Private) IsNil() bool
IsNil reports whether InstallerSection_Private is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.
type InstallerState ¶
InstallerState is an idiomatic wrapper over the Objective-C class InstallerState.
func InstallerStateFromID ¶
func InstallerStateFromID(id objc.ID) *InstallerState
InstallerStateFromID adopts an existing Objective-C object as a InstallerState (nil for 0), retaining it and registering a release finalizer.
func NewInstallerState ¶ added in v0.17.0
func NewInstallerState() *InstallerState
NewInstallerState creates a new InstallerState.
func (*InstallerState) ChoiceDictionaries ¶
func (is *InstallerState) ChoiceDictionaries() obj.Object
ChoiceDictionaries returns an array of choice dictionaries. Each choice dictionary contains the keys InstallerState_Choice_Identifier,InstallerState_Choice_Installed, and optionally InstallerState_Choice_CustomLocation. These keys specify a choice and whether they were installed or not. This is only available after choice selections have been made.
func (*InstallerState) ChoiceDictionaryForIdentifier ¶
func (is *InstallerState) ChoiceDictionaryForIdentifier(choiceIdentifier string) obj.Object
ChoiceDictionaryForIdentifier retrieves choice dictionaries by identifier. See choiceDictionaries for the values returned.
func (*InstallerState) Description ¶ added in v0.17.0
func (is *InstallerState) Description() string
Description returns the object's -description text.
func (*InstallerState) InstallStarted ¶
func (is *InstallerState) InstallStarted() bool
InstallStarted reports whether specifies if the install process has started or not. Will return true after an install has been initiated. If true is returned, you can assume the install has taken place.
func (*InstallerState) InstallSucceeded ¶
func (is *InstallerState) InstallSucceeded() bool
InstallSucceeded reports whether specifies if the install was successfull or not. This value is only valid if installStarted returns True.
func (*InstallerState) IsEqual ¶ added in v0.17.0
func (is *InstallerState) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*InstallerState) IsKind ¶ added in v0.17.0
func (is *InstallerState) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*InstallerState) LicenseAgreed ¶
func (is *InstallerState) LicenseAgreed() bool
LicenseAgreed reports whether specifies the user agreed to the license, if there is no license, this will return false.
func (*InstallerState) LicenseAgreedLanguage ¶
func (is *InstallerState) LicenseAgreedLanguage() string
LicenseAgreedLanguage specifies the language the language was last viewed or agreed with.
func (*InstallerState) String ¶ added in v0.17.0
func (is *InstallerState) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*InstallerState) TargetPath ¶
func (is *InstallerState) TargetPath() string
TargetPath returns full target path selected. Specifies the full path selected by the user. This path contains the targetVolumePath.
func (*InstallerState) TargetVolumePath ¶
func (is *InstallerState) TargetVolumePath() string
TargetVolumePath specifies the mount point of the selected target Only Available after target has been selected.
type InstallerState_Private ¶
InstallerState_Private is a handle for the opaque InstallerState_Private type.
func (InstallerState_Private) IsNil ¶ added in v0.18.0
func (h InstallerState_Private) IsNil() bool
IsNil reports whether InstallerState_Private 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 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 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 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 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 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 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.