Documentation
¶
Overview ¶
Package securityinterface provides a fluent Go API over the macOS SecurityInterface 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.
Main-thread requirements ¶
Methods, setters, and constructors of classes Apple isolates to the main thread run there automatically; callers never need to arrange main-thread dispatch for the generated API.
Types ¶
Each base type below lists the concrete types you construct and pass where the base is accepted:
- CertificatePanel: CertificateTrustPanel
Index ¶
- func SFAuthorizationPluginViewUserNameKey() obj.Object
- func SFAuthorizationPluginViewUserShortNameKey() obj.Object
- func SFCertificateViewDisclosureStateDidChange() obj.Object
- func SFDisplayViewException() obj.Object
- type AuthorizationPluginView
- func (apv *AuthorizationPluginView) ButtonPressed(inButtonType ButtonType)
- func (apv *AuthorizationPluginView) Callbacks() unsafe.Pointer
- func (apv *AuthorizationPluginView) Description() string
- func (apv *AuthorizationPluginView) DidActivate()
- func (apv *AuthorizationPluginView) DidDeactivate()
- func (apv *AuthorizationPluginView) DisplayView()
- func (apv *AuthorizationPluginView) EngineRef() unsafe.Pointer
- func (apv *AuthorizationPluginView) FirstKeyView() obj.Object
- func (apv *AuthorizationPluginView) FirstResponder() obj.Object
- func (apv *AuthorizationPluginView) IsEqual(other obj.Object) bool
- func (apv *AuthorizationPluginView) IsKind(className string) bool
- func (apv *AuthorizationPluginView) LastError() unsafe.Pointer
- func (apv *AuthorizationPluginView) LastKeyView() obj.Object
- func (apv *AuthorizationPluginView) SetButtonEnabled(inButtonType ButtonType, inEnabled bool)
- func (apv *AuthorizationPluginView) SetEnabled(inEnabled bool)
- func (apv *AuthorizationPluginView) String() string
- func (apv *AuthorizationPluginView) UpdateView()
- func (apv *AuthorizationPluginView) ViewForType(inType ViewType) obj.Object
- func (apv *AuthorizationPluginView) WillActivateWithUser(inUserInformation obj.Object)
- type AuthorizationView
- func (av *AuthorizationView) Authorization() obj.Object
- func (av *AuthorizationView) AuthorizationState() AuthorizationViewState
- func (av *AuthorizationView) Authorize(inSender obj.Object) bool
- func (av *AuthorizationView) Deauthorize(inSender obj.Object) bool
- func (av *AuthorizationView) Delegate() obj.Object
- func (av *AuthorizationView) Description() string
- func (av *AuthorizationView) IsEnabled() bool
- func (av *AuthorizationView) IsEqual(other obj.Object) bool
- func (av *AuthorizationView) IsKind(className string) bool
- func (av *AuthorizationView) SetAutoupdate(autoupdate bool)
- func (av *AuthorizationView) SetAutoupdateInterval(autoupdate bool, interval float64)
- func (av *AuthorizationView) SetDelegate(delegate obj.Object)
- func (av *AuthorizationView) SetEnabled(enabled bool)
- func (av *AuthorizationView) SetString(authorizationString string)
- func (av *AuthorizationView) String() string
- func (av *AuthorizationView) UpdateStatus(inSender obj.Object) bool
- type AuthorizationViewState
- type ButtonType
- type CGLCPContextPriorityRequest
- type CertificatePanel
- func (cp *CertificatePanel) CertificateView() *CertificateView
- func (cp *CertificatePanel) Description() string
- func (cp *CertificatePanel) HelpAnchor() string
- func (cp *CertificatePanel) IsEqual(other obj.Object) bool
- func (cp *CertificatePanel) IsKind(className string) bool
- func (cp *CertificatePanel) Policies() obj.Object
- func (cp *CertificatePanel) RunModalForCertificatesShowGroup(certificates obj.Object, showGroup bool) int
- func (cp *CertificatePanel) RunModalForTrustShowGroup(trust obj.Object, showGroup bool) int
- func (cp *CertificatePanel) SetAlternateButtonTitle(title string)
- func (cp *CertificatePanel) SetDefaultButtonTitle(title string)
- func (cp *CertificatePanel) SetHelpAnchor(anchor string)
- func (cp *CertificatePanel) SetPolicies(policies obj.Object)
- func (cp *CertificatePanel) SetShowsHelp(showsHelp bool)
- func (cp *CertificatePanel) ShowsHelp() bool
- func (cp *CertificatePanel) String() string
- type CertificatePanelProvider
- type CertificateTrustPanel
- type CertificateView
- func (cv *CertificateView) Certificate() obj.Object
- func (cv *CertificateView) Description() string
- func (cv *CertificateView) DetailsDisclosed() bool
- func (cv *CertificateView) DetailsDisplayed() bool
- func (cv *CertificateView) IsEditable() bool
- func (cv *CertificateView) IsEqual(other obj.Object) bool
- func (cv *CertificateView) IsKind(className string) bool
- func (cv *CertificateView) IsTrustDisplayed() bool
- func (cv *CertificateView) Policies() obj.Object
- func (cv *CertificateView) PoliciesDisclosed() bool
- func (cv *CertificateView) SaveTrustSettings()
- func (cv *CertificateView) SetCertificate(certificate obj.Object)
- func (cv *CertificateView) SetDetailsDisclosed(disclosed bool)
- func (cv *CertificateView) SetDisplayDetails(display bool)
- func (cv *CertificateView) SetDisplayTrust(display bool)
- func (cv *CertificateView) SetEditableTrust(editable bool)
- func (cv *CertificateView) SetPolicies(policies obj.Object)
- func (cv *CertificateView) SetPoliciesDisclosed(disclosed bool)
- func (cv *CertificateView) String() string
- type ChooseIdentityPanel
- func (cip *ChooseIdentityPanel) Description() string
- func (cip *ChooseIdentityPanel) Domain() string
- func (cip *ChooseIdentityPanel) HelpAnchor() string
- func (cip *ChooseIdentityPanel) Identity() obj.Object
- func (cip *ChooseIdentityPanel) InformativeText() string
- func (cip *ChooseIdentityPanel) IsEqual(other obj.Object) bool
- func (cip *ChooseIdentityPanel) IsKind(className string) bool
- func (cip *ChooseIdentityPanel) Policies() obj.Object
- func (cip *ChooseIdentityPanel) RunModalForIdentitiesMessage(identities obj.Object, message string) int
- func (cip *ChooseIdentityPanel) SetAlternateButtonTitle(title string)
- func (cip *ChooseIdentityPanel) SetDefaultButtonTitle(title string)
- func (cip *ChooseIdentityPanel) SetDomain(domainString string)
- func (cip *ChooseIdentityPanel) SetHelpAnchor(anchor string)
- func (cip *ChooseIdentityPanel) SetInformativeText(informativeText string)
- func (cip *ChooseIdentityPanel) SetPolicies(policies obj.Object)
- func (cip *ChooseIdentityPanel) SetShowsHelp(showsHelp bool)
- func (cip *ChooseIdentityPanel) ShowsHelp() bool
- func (cip *ChooseIdentityPanel) String() string
- type ChooseIdentityTableCellView
- func (citcv *ChooseIdentityTableCellView) Description() string
- func (citcv *ChooseIdentityTableCellView) IsEqual(other obj.Object) bool
- func (citcv *ChooseIdentityTableCellView) IsKind(className string) bool
- func (citcv *ChooseIdentityTableCellView) IssuerTextField() obj.Object
- func (citcv *ChooseIdentityTableCellView) String() string
- func (citcv *ChooseIdentityTableCellView) WithIssuerTextField(issuerTextField obj.Object) *ChooseIdentityTableCellView
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type EvCmd
- type FilesecProperty
- type Flag
- type Idtype
- type IpcInfoObjectType
- type KeychainSavePanel
- func (ksp *KeychainSavePanel) Description() string
- func (ksp *KeychainSavePanel) Error() unsafe.Pointer
- func (ksp *KeychainSavePanel) IsEqual(other obj.Object) bool
- func (ksp *KeychainSavePanel) IsKind(className string) bool
- func (ksp *KeychainSavePanel) Keychain() obj.Object
- func (ksp *KeychainSavePanel) SetPassword(password string)
- func (ksp *KeychainSavePanel) String() string
- type KeychainSettingsPanel
- func (ksp *KeychainSettingsPanel) Description() string
- func (ksp *KeychainSettingsPanel) IsEqual(other obj.Object) bool
- func (ksp *KeychainSettingsPanel) IsKind(className string) bool
- func (ksp *KeychainSettingsPanel) RunModalForSettingsKeychain(settings *security.SecKeychainSettings, keychain obj.Object) int
- func (ksp *KeychainSettingsPanel) String() string
- 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 ViewType
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SFAuthorizationPluginViewUserNameKey ¶
SFAuthorizationPluginViewUserNameKey returns the string constant SFAuthorizationPluginViewUserNameKey, for use as a dictionary key or argument.
func SFAuthorizationPluginViewUserShortNameKey ¶
SFAuthorizationPluginViewUserShortNameKey returns the string constant SFAuthorizationPluginViewUserShortNameKey, for use as a dictionary key or argument.
func SFCertificateViewDisclosureStateDidChange ¶
SFCertificateViewDisclosureStateDidChange returns the string constant SFCertificateViewDisclosureStateDidChange, for use as a dictionary key or argument.
func SFDisplayViewException ¶
SFDisplayViewException returns the string constant SFDisplayViewException, for use as a dictionary key or argument.
Types ¶
type AuthorizationPluginView ¶ added in v0.17.0
AuthorizationPluginView is an idiomatic wrapper over the Objective-C class SFAuthorizationPluginView.
Allows authorization plug-in developers to create a custom view their plug-in can display.
func AuthorizationPluginViewFromID ¶ added in v0.17.0
func AuthorizationPluginViewFromID(id objc.ID) *AuthorizationPluginView
AuthorizationPluginViewFromID adopts an existing Objective-C object as a AuthorizationPluginView (nil for 0), retaining it and registering a release finalizer.
func NewAuthorizationPluginViewWithCallbacksAndEngineRef ¶ added in v0.17.0
func NewAuthorizationPluginViewWithCallbacksAndEngineRef(callbacks unsafe.Pointer, engineRef unsafe.Pointer) *AuthorizationPluginView
NewAuthorizationPluginViewWithCallbacksAndEngineRef initializes a new authorization plug-in view with the specified callbacks and authorization engine handle.
func (*AuthorizationPluginView) ButtonPressed ¶ added in v0.17.0
func (apv *AuthorizationPluginView) ButtonPressed(inButtonType ButtonType)
ButtonPressed tells the authorization plug-in that the user pressed a button in the custom view.
func (*AuthorizationPluginView) Callbacks ¶ added in v0.18.0
func (apv *AuthorizationPluginView) Callbacks() unsafe.Pointer
Callbacks returns the authorization callbacks structure with which this instance was initialized.
func (*AuthorizationPluginView) Description ¶ added in v0.17.0
func (apv *AuthorizationPluginView) Description() string
Description returns the object's -description text.
func (*AuthorizationPluginView) DidActivate ¶ added in v0.17.0
func (apv *AuthorizationPluginView) DidActivate()
DidActivate tells the authorization plug-in when its user interface has become active.
func (*AuthorizationPluginView) DidDeactivate ¶ added in v0.17.0
func (apv *AuthorizationPluginView) DidDeactivate()
DidDeactivate tells the authorization plug-in that its user interface has been deactivated.
func (*AuthorizationPluginView) DisplayView ¶ added in v0.17.0
func (apv *AuthorizationPluginView) DisplayView()
DisplayView displays the user interface provided by the authorization plug-in view subclass.
func (*AuthorizationPluginView) EngineRef ¶ added in v0.18.0
func (apv *AuthorizationPluginView) EngineRef() unsafe.Pointer
EngineRef returns the authorization engine handle with which this instance was initialized.
func (*AuthorizationPluginView) FirstKeyView ¶ added in v0.17.0
func (apv *AuthorizationPluginView) FirstKeyView() obj.Object
FirstKeyView returns the first view in the keyboard loop of the view.
func (*AuthorizationPluginView) FirstResponder ¶ added in v0.17.0
func (apv *AuthorizationPluginView) FirstResponder() obj.Object
FirstResponder returns the view that should get focus for keyboard events.
func (*AuthorizationPluginView) IsEqual ¶ added in v0.17.0
func (apv *AuthorizationPluginView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*AuthorizationPluginView) IsKind ¶ added in v0.17.0
func (apv *AuthorizationPluginView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*AuthorizationPluginView) LastError ¶ added in v0.18.0
func (apv *AuthorizationPluginView) LastError() unsafe.Pointer
LastError returns the last error that occurred during evaluation.
func (*AuthorizationPluginView) LastKeyView ¶ added in v0.17.0
func (apv *AuthorizationPluginView) LastKeyView() obj.Object
LastKeyView returns the last view in the keyboard loop of the view.
func (*AuthorizationPluginView) SetButtonEnabled ¶ added in v0.17.0
func (apv *AuthorizationPluginView) SetButtonEnabled(inButtonType ButtonType, inEnabled bool)
SetButtonEnabled enables or disables a button in the authorization plug-in’s user interface.
func (*AuthorizationPluginView) SetEnabled ¶ added in v0.17.0
func (apv *AuthorizationPluginView) SetEnabled(inEnabled bool)
SetEnabled enables or disables the controls in the authorization plug-in’s view.
func (*AuthorizationPluginView) String ¶ added in v0.17.0
func (apv *AuthorizationPluginView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*AuthorizationPluginView) UpdateView ¶ added in v0.17.0
func (apv *AuthorizationPluginView) UpdateView()
UpdateView tells the authorization plug-in to get and display the appropriate view in the authorization plug-in’s user interface.
func (*AuthorizationPluginView) ViewForType ¶ added in v0.17.0
func (apv *AuthorizationPluginView) ViewForType(inType ViewType) obj.Object
ViewForType returns the appropriate view object for the specified view type.
func (*AuthorizationPluginView) WillActivateWithUser ¶ added in v0.17.0
func (apv *AuthorizationPluginView) WillActivateWithUser(inUserInformation obj.Object)
WillActivateWithUser tells the authorization plug-in that its user interface is about to be made active by the Apple-provided Security Agent.
type AuthorizationView ¶ added in v0.17.0
AuthorizationView is an idiomatic wrapper over the Objective-C class SFAuthorizationView.
The class responsible for displaying a lock icon that can be used to indicate that a user interface has restricted access.
func AuthorizationViewFromID ¶ added in v0.17.0
func AuthorizationViewFromID(id objc.ID) *AuthorizationView
AuthorizationViewFromID adopts an existing Objective-C object as a AuthorizationView (nil for 0), retaining it and registering a release finalizer.
func NewAuthorizationView ¶ added in v0.17.0
func NewAuthorizationView() *AuthorizationView
NewAuthorizationView creates a new AuthorizationView.
func (*AuthorizationView) Authorization ¶ added in v0.17.0
func (av *AuthorizationView) Authorization() obj.Object
Authorization returns the authorization object associated with this view.
func (*AuthorizationView) AuthorizationState ¶ added in v0.17.0
func (av *AuthorizationView) AuthorizationState() AuthorizationViewState
AuthorizationState returns the current state of the authorization view.
func (*AuthorizationView) Authorize ¶ added in v0.17.0
func (av *AuthorizationView) Authorize(inSender obj.Object) bool
Authorize attempts to unlock the lock icon in the view.
func (*AuthorizationView) Deauthorize ¶ added in v0.17.0
func (av *AuthorizationView) Deauthorize(inSender obj.Object) bool
Deauthorize sets the authorization state to unauthorized and locks the lock icon in the view.
func (*AuthorizationView) Delegate ¶ added in v0.17.0
func (av *AuthorizationView) Delegate() obj.Object
Delegate returns the delegate for this view.
func (*AuthorizationView) Description ¶ added in v0.17.0
func (av *AuthorizationView) Description() string
Description returns the object's -description text.
func (*AuthorizationView) IsEnabled ¶ added in v0.17.0
func (av *AuthorizationView) IsEnabled() bool
IsEnabled reports whether the authorization view is enabled (true) or disabled (false).
func (*AuthorizationView) IsEqual ¶ added in v0.17.0
func (av *AuthorizationView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*AuthorizationView) IsKind ¶ added in v0.17.0
func (av *AuthorizationView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*AuthorizationView) SetAutoupdate ¶ added in v0.17.0
func (av *AuthorizationView) SetAutoupdate(autoupdate bool)
SetAutoupdate sets the authorization view to update itself automatically.
func (*AuthorizationView) SetAutoupdateInterval ¶ added in v0.17.0
func (av *AuthorizationView) SetAutoupdateInterval(autoupdate bool, interval float64)
SetAutoupdateInterval sets the authorization view to update itself at a specific interval.
func (*AuthorizationView) SetDelegate ¶ added in v0.17.0
func (av *AuthorizationView) SetDelegate(delegate obj.Object)
SetDelegate sets the delegate for this authorization view.
func (*AuthorizationView) SetEnabled ¶ added in v0.17.0
func (av *AuthorizationView) SetEnabled(enabled bool)
SetEnabled sets the current state of the authorization view.
func (*AuthorizationView) SetString ¶ added in v0.17.0
func (av *AuthorizationView) SetString(authorizationString string)
SetString sets the requested-right string to use with the default authorization rights set.
func (*AuthorizationView) String ¶ added in v0.17.0
func (av *AuthorizationView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*AuthorizationView) UpdateStatus ¶ added in v0.17.0
func (av *AuthorizationView) UpdateStatus(inSender obj.Object) bool
UpdateStatus manually updates the authorization view.
type AuthorizationViewState ¶ added in v0.17.0
type AuthorizationViewState int32
Defines the current state of the authorization view.
const ( AuthorizationStartupState AuthorizationViewState = 0 AuthorizationViewLockedState AuthorizationViewState = 1 AuthorizationViewInProgressState AuthorizationViewState = 2 AuthorizationViewUnlockedState AuthorizationViewState = 3 )
func (AuthorizationViewState) String ¶ added in v0.17.0
func (e AuthorizationViewState) String() string
String returns the AuthorizationViewState constant's name, or its numeric form when the value is not a known constant.
type ButtonType ¶ added in v0.17.0
type ButtonType int32
These constants define the button types used by authorization plug-ins.
const ( ButtonTypeCancel ButtonType = 0 ButtonTypeOK ButtonType = 1 ButtonTypeBack ButtonType = 0 ButtonTypeLogin ButtonType = 1 )
func (ButtonType) String ¶ added in v0.17.0
func (e ButtonType) String() string
String returns the ButtonType constant's name, or its numeric form when the value is not a known constant.
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 CertificatePanel ¶ added in v0.17.0
CertificatePanel is an idiomatic wrapper over the Objective-C class SFCertificatePanel.
CertificatePanel is an abstract base — you do not construct it directly. Construct one of CertificateTrustPanel and pass it where a CertificatePanel is accepted.
A panel or sheet that displays one or more certificates.
func CertificatePanelFromID ¶ added in v0.17.0
func CertificatePanelFromID(id objc.ID) *CertificatePanel
CertificatePanelFromID adopts an existing Objective-C object as a CertificatePanel (nil for 0), retaining it and registering a release finalizer.
func SharedCertificatePanel ¶ added in v0.17.0
func SharedCertificatePanel() *CertificatePanel
SharedCertificatePanel returns a fully initialized, singleton certificate panel object.
func (*CertificatePanel) CertificateView ¶ added in v0.17.0
func (cp *CertificatePanel) CertificateView() *CertificateView
CertificateView returns the certificate view for the modal panel.
func (*CertificatePanel) Description ¶ added in v0.17.0
func (cp *CertificatePanel) Description() string
Description returns the object's -description text.
func (*CertificatePanel) HelpAnchor ¶ added in v0.17.0
func (cp *CertificatePanel) HelpAnchor() string
HelpAnchor returns the current help anchor string for the sheet or panel.
func (*CertificatePanel) IsEqual ¶ added in v0.17.0
func (cp *CertificatePanel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*CertificatePanel) IsKind ¶ added in v0.17.0
func (cp *CertificatePanel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*CertificatePanel) Policies ¶ added in v0.17.0
func (cp *CertificatePanel) Policies() obj.Object
Policies returns an array of policies used to evaluate the status of the displayed certificates.
func (*CertificatePanel) RunModalForCertificatesShowGroup ¶ added in v0.17.0
func (cp *CertificatePanel) RunModalForCertificatesShowGroup(certificates obj.Object, showGroup bool) int
RunModalForCertificatesShowGroup displays one or more specified certificates in a modal panel.
func (*CertificatePanel) RunModalForTrustShowGroup ¶ added in v0.17.0
func (cp *CertificatePanel) RunModalForTrustShowGroup(trust obj.Object, showGroup bool) int
RunModalForTrustShowGroup displays a certificate chain in a modal panel.
func (*CertificatePanel) SetAlternateButtonTitle ¶ added in v0.17.0
func (cp *CertificatePanel) SetAlternateButtonTitle(title string)
SetAlternateButtonTitle customizes the title of the alternate button.
func (*CertificatePanel) SetDefaultButtonTitle ¶ added in v0.17.0
func (cp *CertificatePanel) SetDefaultButtonTitle(title string)
SetDefaultButtonTitle customizes the title of the default button.
func (*CertificatePanel) SetHelpAnchor ¶ added in v0.17.0
func (cp *CertificatePanel) SetHelpAnchor(anchor string)
SetHelpAnchor sets the help anchor string for the sheet or modal panel.
func (*CertificatePanel) SetPolicies ¶ added in v0.17.0
func (cp *CertificatePanel) SetPolicies(policies obj.Object)
SetPolicies specifies one or more policies that apply to the displayed certificates.
func (*CertificatePanel) SetShowsHelp ¶ added in v0.17.0
func (cp *CertificatePanel) SetShowsHelp(showsHelp bool)
SetShowsHelp displays a Help button in the sheet or panel.
func (*CertificatePanel) ShowsHelp ¶ added in v0.17.0
func (cp *CertificatePanel) ShowsHelp() bool
ShowsHelp reports whether the help button is currently set to be displayed.
func (*CertificatePanel) String ¶ added in v0.17.0
func (cp *CertificatePanel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type CertificatePanelProvider ¶ added in v0.17.0
type CertificatePanelProvider interface {
objref.Object
// contains filtered or unexported methods
}
CertificatePanelProvider is accepted wherever a SFCertificatePanel (or one of its subclasses) is expected.
type CertificateTrustPanel ¶ added in v0.17.0
type CertificateTrustPanel struct {
CertificatePanel
}
CertificateTrustPanel is an idiomatic wrapper over the Objective-C class SFCertificateTrustPanel.
It embeds CertificatePanel, promoting that type's methods.
A panel or sheet that lets the user edit the trust settings in any of the certificates in a certificate chain.
func CertificateTrustPanelFromID ¶ added in v0.17.0
func CertificateTrustPanelFromID(id objc.ID) *CertificateTrustPanel
CertificateTrustPanelFromID adopts an existing Objective-C object as a CertificateTrustPanel (nil for 0), retaining it and registering a release finalizer.
func NewCertificateTrustPanel ¶ added in v0.17.0
func NewCertificateTrustPanel() *CertificateTrustPanel
NewCertificateTrustPanel creates a new CertificateTrustPanel.
func SharedCertificateTrustPanel ¶ added in v0.17.0
func SharedCertificateTrustPanel() *CertificateTrustPanel
SharedCertificateTrustPanel returns a fully initialized, singleton certificate trust panel object.
func (*CertificateTrustPanel) InformativeText ¶ added in v0.17.0
func (ctp *CertificateTrustPanel) InformativeText() string
InformativeText returns the (optional) informative text currently displayed in the panel.
func (*CertificateTrustPanel) RunModalForTrustMessage ¶ added in v0.17.0
func (ctp *CertificateTrustPanel) RunModalForTrustMessage(trust obj.Object, message string) int
RunModalForTrustMessage displays a modal panel that shows the results of a certificate trust evaluation and that allows the user to edit trust settings.
func (*CertificateTrustPanel) SetInformativeText ¶ added in v0.17.0
func (ctp *CertificateTrustPanel) SetInformativeText(informativeText string)
SetInformativeText sets the (optional) informative text displayed in the panel.
type CertificateView ¶ added in v0.17.0
CertificateView is an idiomatic wrapper over the Objective-C class SFCertificateView.
A view that displays the contents of a certificate, with options to display certificate details, display trust settings, and allow users to edit a certificate’s trust settings.
func CertificateViewFromID ¶ added in v0.17.0
func CertificateViewFromID(id objc.ID) *CertificateView
CertificateViewFromID adopts an existing Objective-C object as a CertificateView (nil for 0), retaining it and registering a release finalizer.
func NewCertificateView ¶ added in v0.17.0
func NewCertificateView() *CertificateView
NewCertificateView creates a new CertificateView.
func (*CertificateView) Certificate ¶ added in v0.17.0
func (cv *CertificateView) Certificate() obj.Object
Certificate returns the certificate currently displayed in the view.
func (*CertificateView) Description ¶ added in v0.17.0
func (cv *CertificateView) Description() string
Description returns the object's -description text.
func (*CertificateView) DetailsDisclosed ¶ added in v0.17.0
func (cv *CertificateView) DetailsDisclosed() bool
DetailsDisclosed reports whether the view currently shows the certificate’s details.
func (*CertificateView) DetailsDisplayed ¶ added in v0.17.0
func (cv *CertificateView) DetailsDisplayed() bool
DetailsDisplayed reports whether indicates if the view currently shows the certificate’s details.
func (*CertificateView) IsEditable ¶ added in v0.17.0
func (cv *CertificateView) IsEditable() bool
IsEditable reports whether indicates if the view allows the user to edit the certificate’s trust.
func (*CertificateView) IsEqual ¶ added in v0.17.0
func (cv *CertificateView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*CertificateView) IsKind ¶ added in v0.17.0
func (cv *CertificateView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*CertificateView) IsTrustDisplayed ¶ added in v0.17.0
func (cv *CertificateView) IsTrustDisplayed() bool
IsTrustDisplayed reports whether indicates if the view currently shows the certificate’s trust settings.
func (*CertificateView) Policies ¶ added in v0.17.0
func (cv *CertificateView) Policies() obj.Object
Policies returns an array of policies used to evaluate the status of the displayed certificate.
func (*CertificateView) PoliciesDisclosed ¶ added in v0.17.0
func (cv *CertificateView) PoliciesDisclosed() bool
PoliciesDisclosed reports whether the trust policy subview is disclosed.
func (*CertificateView) SaveTrustSettings ¶ added in v0.17.0
func (cv *CertificateView) SaveTrustSettings()
SaveTrustSettings saves the user’s current trust settings for the displayed certificate.
func (*CertificateView) SetCertificate ¶ added in v0.17.0
func (cv *CertificateView) SetCertificate(certificate obj.Object)
SetCertificate specifies the certificate that’s displayed in the view.
func (*CertificateView) SetDetailsDisclosed ¶ added in v0.17.0
func (cv *CertificateView) SetDetailsDisclosed(disclosed bool)
SetDetailsDisclosed sets whether the certificate details subview is disclosed.
func (*CertificateView) SetDisplayDetails ¶ added in v0.17.0
func (cv *CertificateView) SetDisplayDetails(display bool)
SetDisplayDetails specifies whether the user can see the certificate details.
func (*CertificateView) SetDisplayTrust ¶ added in v0.17.0
func (cv *CertificateView) SetDisplayTrust(display bool)
SetDisplayTrust specifies whether the user can see the certificate’s trust settings.
func (*CertificateView) SetEditableTrust ¶ added in v0.17.0
func (cv *CertificateView) SetEditableTrust(editable bool)
SetEditableTrust specifies whether the user can edit the certificate’s trust settings.
func (*CertificateView) SetPolicies ¶ added in v0.17.0
func (cv *CertificateView) SetPolicies(policies obj.Object)
SetPolicies specifies the policies to use when evaluating this certificate’s status.
func (*CertificateView) SetPoliciesDisclosed ¶ added in v0.17.0
func (cv *CertificateView) SetPoliciesDisclosed(disclosed bool)
SetPoliciesDisclosed specifies whether the trust policy settings subview is disclosed.
func (*CertificateView) String ¶ added in v0.17.0
func (cv *CertificateView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type ChooseIdentityPanel ¶ added in v0.17.0
ChooseIdentityPanel is an idiomatic wrapper over the Objective-C class SFChooseIdentityPanel.
A panel or sheet containing a list of identities that a user can choose from.
func ChooseIdentityPanelFromID ¶ added in v0.17.0
func ChooseIdentityPanelFromID(id objc.ID) *ChooseIdentityPanel
ChooseIdentityPanelFromID adopts an existing Objective-C object as a ChooseIdentityPanel (nil for 0), retaining it and registering a release finalizer.
func NewChooseIdentityPanel ¶ added in v0.17.0
func NewChooseIdentityPanel() *ChooseIdentityPanel
NewChooseIdentityPanel creates a new ChooseIdentityPanel.
func SharedChooseIdentityPanel ¶ added in v0.17.0
func SharedChooseIdentityPanel() *ChooseIdentityPanel
SharedChooseIdentityPanel returns a fully initialized, singleton choose identity panel object.
func (*ChooseIdentityPanel) Description ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) Description() string
Description returns the object's -description text.
func (*ChooseIdentityPanel) Domain ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) Domain() string
Domain returns the domain that will be associated with the chosen identity.
func (*ChooseIdentityPanel) HelpAnchor ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) HelpAnchor() string
HelpAnchor returns the current help anchor string for the sheet or panel.
func (*ChooseIdentityPanel) Identity ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) Identity() obj.Object
Identity returns the identity that the user chose in the panel or sheet.
func (*ChooseIdentityPanel) InformativeText ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) InformativeText() string
InformativeText returns the informative text currently displayed in the panel.
func (*ChooseIdentityPanel) IsEqual ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ChooseIdentityPanel) IsKind ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ChooseIdentityPanel) Policies ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) Policies() obj.Object
Policies returns an array of policies used to evaluate the status of the displayed certificates.
func (*ChooseIdentityPanel) RunModalForIdentitiesMessage ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) RunModalForIdentitiesMessage(identities obj.Object, message string) int
RunModalForIdentitiesMessage displays a list of identities in a modal panel.
func (*ChooseIdentityPanel) SetAlternateButtonTitle ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) SetAlternateButtonTitle(title string)
SetAlternateButtonTitle customizes the title of the alternate button.
func (*ChooseIdentityPanel) SetDefaultButtonTitle ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) SetDefaultButtonTitle(title string)
SetDefaultButtonTitle customizes the title of the default button.
func (*ChooseIdentityPanel) SetDomain ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) SetDomain(domainString string)
SetDomain sets an optional domain in which the identity is to be used.
func (*ChooseIdentityPanel) SetHelpAnchor ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) SetHelpAnchor(anchor string)
SetHelpAnchor sets the help anchor string for the sheet or modal panel.
func (*ChooseIdentityPanel) SetInformativeText ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) SetInformativeText(informativeText string)
SetInformativeText sets the optional informative text displayed in the panel.
func (*ChooseIdentityPanel) SetPolicies ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) SetPolicies(policies obj.Object)
SetPolicies specifies one or more policies that apply to the displayed certificates.
func (*ChooseIdentityPanel) SetShowsHelp ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) SetShowsHelp(showsHelp bool)
SetShowsHelp displays a Help button in the sheet or panel.
func (*ChooseIdentityPanel) ShowsHelp ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) ShowsHelp() bool
ShowsHelp reports whether the help button is currently set to be displayed.
func (*ChooseIdentityPanel) String ¶ added in v0.17.0
func (cip *ChooseIdentityPanel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type ChooseIdentityTableCellView ¶ added in v0.17.0
ChooseIdentityTableCellView is an idiomatic wrapper over the Objective-C class SFChooseIdentityTableCellView.
func ChooseIdentityTableCellViewFromID ¶ added in v0.17.0
func ChooseIdentityTableCellViewFromID(id objc.ID) *ChooseIdentityTableCellView
ChooseIdentityTableCellViewFromID adopts an existing Objective-C object as a ChooseIdentityTableCellView (nil for 0), retaining it and registering a release finalizer.
func NewChooseIdentityTableCellView ¶ added in v0.17.0
func NewChooseIdentityTableCellView() *ChooseIdentityTableCellView
NewChooseIdentityTableCellView creates a new ChooseIdentityTableCellView.
func (*ChooseIdentityTableCellView) Description ¶ added in v0.17.0
func (citcv *ChooseIdentityTableCellView) Description() string
Description returns the object's -description text.
func (*ChooseIdentityTableCellView) IsEqual ¶ added in v0.17.0
func (citcv *ChooseIdentityTableCellView) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ChooseIdentityTableCellView) IsKind ¶ added in v0.17.0
func (citcv *ChooseIdentityTableCellView) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ChooseIdentityTableCellView) IssuerTextField ¶ added in v0.17.0
func (citcv *ChooseIdentityTableCellView) IssuerTextField() obj.Object
IssuerTextField returns the issuer text field.
func (*ChooseIdentityTableCellView) String ¶ added in v0.17.0
func (citcv *ChooseIdentityTableCellView) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ChooseIdentityTableCellView) WithIssuerTextField ¶ added in v0.17.0
func (citcv *ChooseIdentityTableCellView) WithIssuerTextField(issuerTextField obj.Object) *ChooseIdentityTableCellView
WithIssuerTextField sets the issuer text field.
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 KeychainSavePanel ¶ added in v0.17.0
KeychainSavePanel is an idiomatic wrapper over the Objective-C class SFKeychainSavePanel.
A panel or sheet that allows the user to create a keychain.
func KeychainSavePanelFromID ¶ added in v0.17.0
func KeychainSavePanelFromID(id objc.ID) *KeychainSavePanel
KeychainSavePanelFromID adopts an existing Objective-C object as a KeychainSavePanel (nil for 0), retaining it and registering a release finalizer.
func NewKeychainSavePanel ¶ added in v0.17.0
func NewKeychainSavePanel() *KeychainSavePanel
NewKeychainSavePanel creates a new KeychainSavePanel.
func SharedKeychainSavePanel ¶ added in v0.17.0
func SharedKeychainSavePanel() *KeychainSavePanel
SharedKeychainSavePanel returns a shared keychain save panel object.
func (*KeychainSavePanel) Description ¶ added in v0.17.0
func (ksp *KeychainSavePanel) Description() string
Description returns the object's -description text.
func (*KeychainSavePanel) Error ¶ added in v0.18.0
func (ksp *KeychainSavePanel) Error() unsafe.Pointer
Error returns the last error encountered by the keychain save panel.
func (*KeychainSavePanel) IsEqual ¶ added in v0.17.0
func (ksp *KeychainSavePanel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*KeychainSavePanel) IsKind ¶ added in v0.17.0
func (ksp *KeychainSavePanel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*KeychainSavePanel) Keychain ¶ added in v0.17.0
func (ksp *KeychainSavePanel) Keychain() obj.Object
Keychain returns the keychain created by the keychain save panel.
func (*KeychainSavePanel) SetPassword ¶ added in v0.17.0
func (ksp *KeychainSavePanel) SetPassword(password string)
SetPassword specifies the password for the keychain that will be created.
func (*KeychainSavePanel) String ¶ added in v0.17.0
func (ksp *KeychainSavePanel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type KeychainSettingsPanel ¶ added in v0.17.0
KeychainSettingsPanel is an idiomatic wrapper over the Objective-C class SFKeychainSettingsPanel.
A panel or sheet that allows users to change their keychain settings.
func KeychainSettingsPanelFromID ¶ added in v0.17.0
func KeychainSettingsPanelFromID(id objc.ID) *KeychainSettingsPanel
KeychainSettingsPanelFromID adopts an existing Objective-C object as a KeychainSettingsPanel (nil for 0), retaining it and registering a release finalizer.
func NewKeychainSettingsPanel ¶ added in v0.17.0
func NewKeychainSettingsPanel() *KeychainSettingsPanel
NewKeychainSettingsPanel creates a new KeychainSettingsPanel.
func SharedKeychainSettingsPanel ¶ added in v0.17.0
func SharedKeychainSettingsPanel() *KeychainSettingsPanel
SharedKeychainSettingsPanel returns a shared keychain settings panel object.
func (*KeychainSettingsPanel) Description ¶ added in v0.17.0
func (ksp *KeychainSettingsPanel) Description() string
Description returns the object's -description text.
func (*KeychainSettingsPanel) IsEqual ¶ added in v0.17.0
func (ksp *KeychainSettingsPanel) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*KeychainSettingsPanel) IsKind ¶ added in v0.17.0
func (ksp *KeychainSettingsPanel) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*KeychainSettingsPanel) RunModalForSettingsKeychain ¶ added in v0.18.0
func (ksp *KeychainSettingsPanel) RunModalForSettingsKeychain(settings *security.SecKeychainSettings, keychain obj.Object) int
RunModalForSettingsKeychain displays a panel that allows users to change keychain settings.
func (*KeychainSettingsPanel) String ¶ added in v0.17.0
func (ksp *KeychainSettingsPanel) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
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 ViewType ¶ added in v0.17.0
type ViewType int32
These constants define the view type requested by the authorization plug-in.
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.
Source Files
¶
- SFAuthorizationPluginView_generated.go
- SFAuthorizationView_generated.go
- SFCertificatePanel_generated.go
- SFCertificateTrustPanel_generated.go
- SFCertificateView_generated.go
- SFChooseIdentityPanel_generated.go
- SFChooseIdentityTableCellView_generated.go
- SFKeychainSavePanel_generated.go
- SFKeychainSettingsPanel_generated.go
- doc.go
- securityinterface_classmethods_generated.go
- securityinterface_constants_generated.go
- securityinterface_enums_generated.go
- securityinterface_providers_generated.go
- securityinterface_runtime_generated.go