automaticassessmentconfiguration

package
v0.19.0 Latest Latest
Warning

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

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

Documentation

Rendered for darwin/amd64

Overview

Package automaticassessmentconfiguration provides a fluent Go API over the macOS AutomaticAssessmentConfiguration 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.

Delegates

A …Delegate interface is implemented by a plain Go value and installed with the matching With… setter; the package builds the Objective-C delegate object behind the scenes. Optional protocol methods are separate one-method …Handler interfaces — implement the ones you need on the same value and the framework calls them too.

Index

Constants

This section is empty.

Variables

View Source
var ErrConfigurationUpdatesNotSupported = errkit.New("AEAssessmentErrorDomain", 4)

ErrConfigurationUpdatesNotSupported matches the AutomaticAssessmentConfiguration error AEAssessmentErrorConfigurationUpdatesNotSupported.

View Source
var ErrMultipleParticipantsNotSupported = errkit.New("AEAssessmentErrorDomain", 3)

ErrMultipleParticipantsNotSupported matches the AutomaticAssessmentConfiguration error AEAssessmentErrorMultipleParticipantsNotSupported.

View Source
var ErrRequiredParticipantsNotAvailable = errkit.New("AEAssessmentErrorDomain", 5)

ErrRequiredParticipantsNotAvailable matches the AutomaticAssessmentConfiguration error AEAssessmentErrorRequiredParticipantsNotAvailable.

View Source
var ErrUnknown = errkit.New("AEAssessmentErrorDomain", 1)

ErrUnknown matches the AutomaticAssessmentConfiguration error AEAssessmentErrorUnknown.

View Source
var ErrUnsupportedPlatform = errkit.New("AEAssessmentErrorDomain", 2)

ErrUnsupportedPlatform matches the AutomaticAssessmentConfiguration error AEAssessmentErrorUnsupportedPlatform.

Functions

func AEAssessmentErrorDomain

func AEAssessmentErrorDomain() uintptr

AEAssessmentErrorDomain returns the address of the symbol AEAssessmentErrorDomain.

func AENotInstalledParticipantsKey

func AENotInstalledParticipantsKey() obj.Object

AENotInstalledParticipantsKey returns the string constant AENotInstalledParticipantsKey, for use as a dictionary key or argument.

func AERestrictedSystemParticipantsKey

func AERestrictedSystemParticipantsKey() obj.Object

AERestrictedSystemParticipantsKey returns the string constant AERestrictedSystemParticipantsKey, for use as a dictionary key or argument.

func SupportsConfigurationUpdates added in v0.17.0

func SupportsConfigurationUpdates() bool

SupportsConfigurationUpdates wraps the corresponding Objective-C method.

func SupportsMultipleParticipants added in v0.17.0

func SupportsMultipleParticipants() bool

SupportsMultipleParticipants wraps the corresponding Objective-C method.

Types

type AssessmentApplication added in v0.17.0

type AssessmentApplication struct {
	objref.Handle
}

AssessmentApplication is an idiomatic wrapper over the Objective-C class AEAssessmentApplication.

A representation of an app that users can access during an assessment.

func AssessmentApplicationFromID added in v0.17.0

func AssessmentApplicationFromID(id objc.ID) *AssessmentApplication

AssessmentApplicationFromID adopts an existing Objective-C object as a AssessmentApplication (nil for 0), retaining it and registering a release finalizer.

func NewAssessmentApplicationWithBundleIdentifier added in v0.17.0

func NewAssessmentApplicationWithBundleIdentifier(bundleIdentifier string) *AssessmentApplication

NewAssessmentApplicationWithBundleIdentifier creates a representation of an app using its bundle identifier.

func NewAssessmentApplicationWithBundleIdentifierTeamIdentifier added in v0.17.0

func NewAssessmentApplicationWithBundleIdentifierTeamIdentifier(bundleIdentifier string, teamIdentifier string) *AssessmentApplication

NewAssessmentApplicationWithBundleIdentifierTeamIdentifier creates a representation of an app using its bundle and team identifiers.

func (*AssessmentApplication) BundleIdentifier added in v0.17.0

func (aa *AssessmentApplication) BundleIdentifier() string

BundleIdentifier returns the bundle identifier.

func (*AssessmentApplication) Description added in v0.17.0

func (aa *AssessmentApplication) Description() string

Description returns the object's -description text.

func (*AssessmentApplication) IsEqual added in v0.17.0

func (aa *AssessmentApplication) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*AssessmentApplication) IsKind added in v0.17.0

func (aa *AssessmentApplication) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*AssessmentApplication) RequiresSignatureValidation added in v0.17.0

func (aa *AssessmentApplication) RequiresSignatureValidation() bool

RequiresSignatureValidation wraps the corresponding Objective-C method.

func (*AssessmentApplication) String added in v0.17.0

func (aa *AssessmentApplication) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*AssessmentApplication) TeamIdentifier added in v0.17.0

func (aa *AssessmentApplication) TeamIdentifier() string

TeamIdentifier returns the team identifier.

func (*AssessmentApplication) WithRequiresSignatureValidation added in v0.17.0

func (aa *AssessmentApplication) WithRequiresSignatureValidation(requiresSignatureValidation bool) *AssessmentApplication

WithRequiresSignatureValidation sets a Boolean that indicates whether the session requires the app to have a valid code signature to run.

type AssessmentConfiguration added in v0.17.0

type AssessmentConfiguration struct {
	objref.Handle
}

AssessmentConfiguration is an idiomatic wrapper over the Objective-C class AEAssessmentConfiguration.

Configuration information for an assessment session.

func AssessmentConfigurationFromID added in v0.17.0

func AssessmentConfigurationFromID(id objc.ID) *AssessmentConfiguration

AssessmentConfigurationFromID adopts an existing Objective-C object as a AssessmentConfiguration (nil for 0), retaining it and registering a release finalizer.

func NewAssessmentConfiguration added in v0.17.0

func NewAssessmentConfiguration() *AssessmentConfiguration

NewAssessmentConfiguration creates a new AssessmentConfiguration.

func (*AssessmentConfiguration) AllowsAccessibilityKeyboard added in v0.17.0

func (ac *AssessmentConfiguration) AllowsAccessibilityKeyboard() bool

AllowsAccessibilityKeyboard reports whether to allow alternative input methods in the Accessibility Keyboard during an assessment. Users can enable the Accessibility Keyboard in the Settings app (Accessibility > Keyboard > Accessibility Keyboard) to access an on-screen keyboard with alternative input methods. An assessment session disables alternative input methods in the Accessibility Keyboard by default, but you can allow them by setting “AEAssessmentConfiguration/allowsAccessibilityKeyboard“ to `true` in the “AEAssessmentConfiguration“ instance that you use to initialize a session.

func (*AssessmentConfiguration) AllowsAccessibilityLiveCaptions added in v0.17.0

func (ac *AssessmentConfiguration) AllowsAccessibilityLiveCaptions() bool

AllowsAccessibilityLiveCaptions reports whether to allow Live Captions during an assessment. Users can enable Live Captions in the Settings app (Accessibility > Live Captions) to receive real-time transcription of spoken audio as text on screen. An assessment session disables Live Captions by default, but you can allow it by setting “AEAssessmentConfiguration/allowsAccessibilityLiveCaptions“ to `true` in the “AEAssessmentConfiguration“ instance that you use to initialize a session.

func (*AssessmentConfiguration) AllowsAccessibilityReader added in v0.17.0

func (ac *AssessmentConfiguration) AllowsAccessibilityReader() bool

AllowsAccessibilityReader reports whether to allow the Accessibility Reader during an assessment. Users can enable the Accessibility Reader in the Settings app (Accessibility > Read & Speak > Accessibility Reader) to have text content formatted or read aloud. An assessment session disables the Accessibility Reader by default, but you can allow it by setting “AEAssessmentConfiguration/allowsAccessibilityReader“ to `true` in the “AEAssessmentConfiguration“ instance that you use to initialize a session.

func (*AssessmentConfiguration) AllowsKeyboardShortcuts added in v0.17.0

func (ac *AssessmentConfiguration) AllowsKeyboardShortcuts() bool

AllowsKeyboardShortcuts reports whether to allow keyboard shortcuts during an assessment. Users can add Keyboard Shortcuts in the Settings app (General > Keyboard > Text Replacement). An assessment session disables the use of keyboard shortcuts by default, but you can allow them by setting “AEAssessmentConfiguration/allowsKeyboardShortcuts“ to `true` in the “AEAssessmentConfiguration“ instance that you use to initialize a session.

func (*AssessmentConfiguration) AllowsPredictiveKeyboard added in v0.17.0

func (ac *AssessmentConfiguration) AllowsPredictiveKeyboard() bool

AllowsPredictiveKeyboard reports whether to enable the predictive keyboard during an assessment. Users can turn on the Predictive Keyboard feature in the Settings app (General > Keyboard). An assessment session disables this feature by default, but you can allow it by setting “AEAssessmentConfiguration/allowsPredictiveKeyboard“ to `true` in the “AEAssessmentConfiguration“ instance that you use to initialize a session.

func (*AssessmentConfiguration) AllowsScreenshots added in v0.17.0

func (ac *AssessmentConfiguration) AllowsScreenshots() bool

AllowsScreenshots reports whether to allow screenshots copied to the clipboard during an assessment. An assessment session disables the ability to take screenshots by default to maintain assessment integrity. This property specifically applies to screenshots that are copied to the clipboard, typically those taken using the Command+Control+Shift+3 and Command+Control+Shift+4 keyboard shortcuts. You can allow clipboard screenshots by setting `allowsScreenshots` to `true`. - Note: The clipboard is cleared before the assessment session ends to prevent exporting captured content.

func (*AssessmentConfiguration) AllowsSpellCheck added in v0.17.0

func (ac *AssessmentConfiguration) AllowsSpellCheck() bool

AllowsSpellCheck reports whether to allow spell check during an assessment. Users can activate the spell checker by turning on the Check Spelling feature in the Settings app (General > Keyboard). An assessment session disables spell checking by default, but you can allow it by setting “AEAssessmentConfiguration/allowsSpellCheck“ to `true` in the “AEAssessmentConfiguration“ instance that you use to initialize a session.

func (*AssessmentConfiguration) AutocorrectMode added in v0.17.0

func (ac *AssessmentConfiguration) AutocorrectMode() AutocorrectMode

AutocorrectMode returns the autocorrect mode that specifies which autocorrect features to allow during an assessment. Users can turn on autocorrect in the Settings app (General > Keyboard > Auto-Correction). An assessment session disables this feature by default, but you can allow it by setting “AEAssessmentConfiguration/autocorrectMode-swift.property“ in the “AEAssessmentConfiguration“ instance that you use to initialize a session. Set the mode's value to some combination of the the values from the “AEAssessmentConfiguration/AutocorrectMode-swift.struct“ structure.

func (*AssessmentConfiguration) ConfigurationsByApplication added in v0.17.0

func (ac *AssessmentConfiguration) ConfigurationsByApplication() obj.Object

ConfigurationsByApplication returns the collection of apps available during an assessment, along with their associated configurations. Access this property to get a list of the currently allowed secondary apps and their individual configurations. Add apps to the list by calling the “AEAssessmentConfiguration/setConfiguration(_:for:)“ method. Remove them from the list by calling the “AEAssessmentConfiguration/remove(_:)“ method.

func (*AssessmentConfiguration) Description added in v0.17.0

func (ac *AssessmentConfiguration) Description() string

Description returns the object's -description text.

func (*AssessmentConfiguration) IsEqual added in v0.17.0

func (ac *AssessmentConfiguration) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*AssessmentConfiguration) IsKind added in v0.17.0

func (ac *AssessmentConfiguration) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*AssessmentConfiguration) MainParticipantConfiguration added in v0.17.0

func (ac *AssessmentConfiguration) MainParticipantConfiguration() *AssessmentParticipantConfiguration

MainParticipantConfiguration returns the app-specific configuration for the app that invokes the assessment. Use this property to get and customize the app-specific configuration that's applied to your own app. For example, you can set the `allowsNetworkAccess` property for your own app: ```swift let config = AEAssessmentConfiguration() config.mainParticipantConfiguration.allowsNetworkAccess = false ```

func (*AssessmentConfiguration) RemoveApplication added in v0.17.0

func (ac *AssessmentConfiguration) RemoveApplication(application *AssessmentApplication)

RemoveApplication removes the availability of a previously allowed app.

func (*AssessmentConfiguration) SetConfigurationForApplication added in v0.17.0

func (ac *AssessmentConfiguration) SetConfigurationForApplication(configuration *AssessmentParticipantConfiguration, application *AssessmentApplication)

SetConfigurationForApplication adds an app to the list of apps available during an assessment.

func (*AssessmentConfiguration) String added in v0.17.0

func (ac *AssessmentConfiguration) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*AssessmentConfiguration) WithAllowsAccessibilityKeyboard added in v0.17.0

func (ac *AssessmentConfiguration) WithAllowsAccessibilityKeyboard(allowsAccessibilityKeyboard bool) *AssessmentConfiguration

WithAllowsAccessibilityKeyboard sets a Boolean value that indicates whether to allow the Accessibility Keyboard during an assessment.

func (*AssessmentConfiguration) WithAllowsAccessibilityLiveCaptions added in v0.17.0

func (ac *AssessmentConfiguration) WithAllowsAccessibilityLiveCaptions(allowsAccessibilityLiveCaptions bool) *AssessmentConfiguration

WithAllowsAccessibilityLiveCaptions sets a Boolean value that indicates whether to allow Live Captions during an assessment.

func (*AssessmentConfiguration) WithAllowsAccessibilityReader added in v0.17.0

func (ac *AssessmentConfiguration) WithAllowsAccessibilityReader(allowsAccessibilityReader bool) *AssessmentConfiguration

WithAllowsAccessibilityReader sets a Boolean value that indicates whether to allow the Accessibility Reader during an assessment.

func (*AssessmentConfiguration) WithAllowsKeyboardShortcuts added in v0.17.0

func (ac *AssessmentConfiguration) WithAllowsKeyboardShortcuts(allowsKeyboardShortcuts bool) *AssessmentConfiguration

WithAllowsKeyboardShortcuts sets a Boolean value that indicates whether to allow keyboard shortcuts during an assessment.

func (*AssessmentConfiguration) WithAllowsPredictiveKeyboard added in v0.17.0

func (ac *AssessmentConfiguration) WithAllowsPredictiveKeyboard(allowsPredictiveKeyboard bool) *AssessmentConfiguration

WithAllowsPredictiveKeyboard sets a Boolean value that indicates whether to enable the predictive keyboard during an assessment.

func (*AssessmentConfiguration) WithAllowsScreenshots added in v0.17.0

func (ac *AssessmentConfiguration) WithAllowsScreenshots(allowsScreenshots bool) *AssessmentConfiguration

WithAllowsScreenshots sets a Boolean value that indicates whether to allow screenshots copied to the clipboard during an assessment.

func (*AssessmentConfiguration) WithAllowsSpellCheck added in v0.17.0

func (ac *AssessmentConfiguration) WithAllowsSpellCheck(allowsSpellCheck bool) *AssessmentConfiguration

WithAllowsSpellCheck sets a Boolean value that indicates whether to allow spell check during an assessment.

func (*AssessmentConfiguration) WithAutocorrectMode added in v0.17.0

func (ac *AssessmentConfiguration) WithAutocorrectMode(autocorrectMode AutocorrectMode) *AssessmentConfiguration

WithAutocorrectMode sets a Boolean value that indicates whether to allow Autocorrect during an assessment.

type AssessmentErrorCode added in v0.17.0

type AssessmentErrorCode int64

Error codes that the framework returns if a session fails.

const (
	AssessmentErrorUnknown                          AssessmentErrorCode = 1
	AssessmentErrorUnsupportedPlatform              AssessmentErrorCode = 2
	AssessmentErrorMultipleParticipantsNotSupported AssessmentErrorCode = 3
	AssessmentErrorConfigurationUpdatesNotSupported AssessmentErrorCode = 4
	AssessmentErrorRequiredParticipantsNotAvailable AssessmentErrorCode = 5
)

func (AssessmentErrorCode) String added in v0.17.0

func (e AssessmentErrorCode) String() string

String returns the AssessmentErrorCode constant's name, or its numeric form when the value is not a known constant.

type AssessmentParticipantConfiguration added in v0.17.0

type AssessmentParticipantConfiguration struct {
	objref.Handle
}

AssessmentParticipantConfiguration is an idiomatic wrapper over the Objective-C class AEAssessmentParticipantConfiguration.

Configuration information for an app that’s available during an assessment.

func AssessmentParticipantConfigurationFromID added in v0.17.0

func AssessmentParticipantConfigurationFromID(id objc.ID) *AssessmentParticipantConfiguration

AssessmentParticipantConfigurationFromID adopts an existing Objective-C object as a AssessmentParticipantConfiguration (nil for 0), retaining it and registering a release finalizer.

func New added in v0.17.0

New creates a new assessment participant configuration instance.

func NewAssessmentParticipantConfiguration added in v0.17.0

func NewAssessmentParticipantConfiguration() *AssessmentParticipantConfiguration

NewAssessmentParticipantConfiguration creates a new AssessmentParticipantConfiguration.

func (*AssessmentParticipantConfiguration) AllowsNetworkAccess added in v0.17.0

func (apc *AssessmentParticipantConfiguration) AllowsNetworkAccess() bool

AllowsNetworkAccess wraps the corresponding Objective-C method.

func (*AssessmentParticipantConfiguration) ConfigurationInfo added in v0.17.0

func (apc *AssessmentParticipantConfiguration) ConfigurationInfo() map[string]obj.Object

ConfigurationInfo returns the configuration info.

func (*AssessmentParticipantConfiguration) Description added in v0.17.0

func (apc *AssessmentParticipantConfiguration) Description() string

Description returns the object's -description text.

func (*AssessmentParticipantConfiguration) IsEqual added in v0.17.0

func (apc *AssessmentParticipantConfiguration) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*AssessmentParticipantConfiguration) IsKind added in v0.17.0

func (apc *AssessmentParticipantConfiguration) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*AssessmentParticipantConfiguration) IsRequired added in v0.17.0

func (apc *AssessmentParticipantConfiguration) IsRequired() bool

IsRequired reports whether the object is required.

func (*AssessmentParticipantConfiguration) String added in v0.17.0

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*AssessmentParticipantConfiguration) WithAllowsNetworkAccess added in v0.17.0

func (apc *AssessmentParticipantConfiguration) WithAllowsNetworkAccess(allowsNetworkAccess bool) *AssessmentParticipantConfiguration

WithAllowsNetworkAccess sets a Boolean that indicates whether an app can access network resources during an assessment.

func (*AssessmentParticipantConfiguration) WithConfigurationInfo added in v0.17.0

func (apc *AssessmentParticipantConfiguration) WithConfigurationInfo(configurationInfo map[string]obj.Object) *AssessmentParticipantConfiguration

WithConfigurationInfo sets the configuration info.

func (*AssessmentParticipantConfiguration) WithRequired added in v0.17.0

WithRequired sets the required.

type AssessmentSession added in v0.17.0

type AssessmentSession struct {
	objref.Handle
}

AssessmentSession is an idiomatic wrapper over the Objective-C class AEAssessmentSession.

A session that your app uses to protect an assessment.

func AssessmentSessionFromID added in v0.17.0

func AssessmentSessionFromID(id objc.ID) *AssessmentSession

AssessmentSessionFromID adopts an existing Objective-C object as a AssessmentSession (nil for 0), retaining it and registering a release finalizer.

func NewAssessmentSessionWithConfiguration added in v0.17.0

func NewAssessmentSessionWithConfiguration(configuration *AssessmentConfiguration) *AssessmentSession

NewAssessmentSessionWithConfiguration creates a new assessment session.

func (*AssessmentSession) Begin added in v0.17.0

func (as *AssessmentSession) Begin()

Begin starts an assessment session.

func (*AssessmentSession) Configuration added in v0.17.0

func (as *AssessmentSession) Configuration() *AssessmentConfiguration

Configuration returns the configuration.

func (*AssessmentSession) Description added in v0.17.0

func (as *AssessmentSession) Description() string

Description returns the object's -description text.

func (*AssessmentSession) End added in v0.17.0

func (as *AssessmentSession) End()

End ends an assessment session.

func (*AssessmentSession) IsActive added in v0.17.0

func (as *AssessmentSession) IsActive() bool

IsActive reports whether the object is active.

func (*AssessmentSession) IsEqual added in v0.17.0

func (as *AssessmentSession) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*AssessmentSession) IsKind added in v0.17.0

func (as *AssessmentSession) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*AssessmentSession) String added in v0.17.0

func (as *AssessmentSession) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*AssessmentSession) UpdateToConfiguration added in v0.17.0

func (as *AssessmentSession) UpdateToConfiguration(configuration *AssessmentConfiguration)

UpdateToConfiguration changes the session to use the specified configuration.

func (*AssessmentSession) WithDelegate added in v0.17.0

WithDelegate sets a delegate to which the session provides state change updates.

type AssessmentSessionDelegate added in v0.17.0

type AssessmentSessionDelegate interface {
}

AssessmentSessionDelegate receives the callbacks of the Objective-C protocol AEAssessmentSessionDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (AssessmentSessionDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type AssessmentSessionDelegateAssessmentSessionDidBeginHandler added in v0.17.0

type AssessmentSessionDelegateAssessmentSessionDidBeginHandler interface {
	AssessmentSessionDidBegin(session *AssessmentSession)
}

AssessmentSessionDelegateAssessmentSessionDidBeginHandler is the optional AEAssessmentSessionDelegate method assessmentSessionDidBegin:. Implement it on a AssessmentSessionDelegate value to receive that callback; a value without it is simply never sent one.

type AssessmentSessionDelegateAssessmentSessionDidEndHandler added in v0.17.0

type AssessmentSessionDelegateAssessmentSessionDidEndHandler interface {
	AssessmentSessionDidEnd(session *AssessmentSession)
}

AssessmentSessionDelegateAssessmentSessionDidEndHandler is the optional AEAssessmentSessionDelegate method assessmentSessionDidEnd:. Implement it on a AssessmentSessionDelegate value to receive that callback; a value without it is simply never sent one.

type AssessmentSessionDelegateAssessmentSessionDidUpdateHandler added in v0.17.0

type AssessmentSessionDelegateAssessmentSessionDidUpdateHandler interface {
	AssessmentSessionDidUpdate(session *AssessmentSession)
}

AssessmentSessionDelegateAssessmentSessionDidUpdateHandler is the optional AEAssessmentSessionDelegate method assessmentSessionDidUpdate:. Implement it on a AssessmentSessionDelegate value to receive that callback; a value without it is simply never sent one.

type AssessmentSessionDelegateAssessmentSessionFailedToBeginWithErrorHandler added in v0.17.0

type AssessmentSessionDelegateAssessmentSessionFailedToBeginWithErrorHandler interface {
	AssessmentSessionFailedToBeginWithError(session *AssessmentSession, err error)
}

AssessmentSessionDelegateAssessmentSessionFailedToBeginWithErrorHandler is the optional AEAssessmentSessionDelegate method assessmentSession:failedToBeginWithError:. Implement it on a AssessmentSessionDelegate value to receive that callback; a value without it is simply never sent one.

type AssessmentSessionDelegateAssessmentSessionFailedToUpdateToConfigurationErrorHandler added in v0.17.0

type AssessmentSessionDelegateAssessmentSessionFailedToUpdateToConfigurationErrorHandler interface {
	AssessmentSessionFailedToUpdateToConfigurationError(session *AssessmentSession, configuration *AssessmentConfiguration, err error)
}

AssessmentSessionDelegateAssessmentSessionFailedToUpdateToConfigurationErrorHandler is the optional AEAssessmentSessionDelegate method assessmentSession:failedToUpdateToConfiguration:error:. Implement it on a AssessmentSessionDelegate value to receive that callback; a value without it is simply never sent one.

type AssessmentSessionDelegateAssessmentSessionWasInterruptedWithErrorHandler added in v0.17.0

type AssessmentSessionDelegateAssessmentSessionWasInterruptedWithErrorHandler interface {
	AssessmentSessionWasInterruptedWithError(session *AssessmentSession, err error)
}

AssessmentSessionDelegateAssessmentSessionWasInterruptedWithErrorHandler is the optional AEAssessmentSessionDelegate method assessmentSession:wasInterruptedWithError:. Implement it on a AssessmentSessionDelegate value to receive that callback; a value without it is simply never sent one.

type AutocorrectMode added in v0.17.0

type AutocorrectMode uint64

The set of autocorrect features that you can enable during an assessment. Bitmask — values may be combined with |.

const (
	AutocorrectModeNone AutocorrectMode = 0
	// A mode in which autocorrect checks for spelling as the user types.
	AutocorrectModeSpelling AutocorrectMode = 1
	// A mode in which autocorrect checks punctuation as the user types.
	AutocorrectModePunctuation AutocorrectMode = 2
)

func (AutocorrectMode) String added in v0.17.0

func (e AutocorrectMode) String() string

String returns the AutocorrectMode constant's name, or its numeric form when the value is not a known constant.

type Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid 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

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 EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID 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 Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype 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 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
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid 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
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

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 QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type Tag added in v0.17.0

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type 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

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.

Jump to

Keyboard shortcuts

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