securityinterface

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package securityinterface provides a fluent Go API over the macOS SecurityInterface framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationPluginView

type AuthorizationPluginView struct {
	// contains filtered or unexported fields
}

AuthorizationPluginView wraps raw.SFAuthorizationPluginView with a fluent Go API.

func AuthorizationPluginViewFromID

func AuthorizationPluginViewFromID(id objc.ID) *AuthorizationPluginView

AuthorizationPluginViewFromID adopts an existing object pointer as a AuthorizationPluginView (nil for 0).

func NewAuthorizationPluginViewWithCallbacksAndEngineRef

func NewAuthorizationPluginViewWithCallbacksAndEngineRef(callbacks unsafe.Pointer, engineRef unsafe.Pointer) *AuthorizationPluginView

NewAuthorizationPluginViewWithCallbacksAndEngineRef creates a new AuthorizationPluginView.

func (*AuthorizationPluginView) ButtonPressed

func (x *AuthorizationPluginView) ButtonPressed(inButtonType SFButtonType)

ButtonPressed calls the underlying ButtonPressed.

func (*AuthorizationPluginView) Callbacks

func (x *AuthorizationPluginView) Callbacks() unsafe.Pointer

Callbacks calls the underlying Callbacks.

func (*AuthorizationPluginView) DidActivate

func (x *AuthorizationPluginView) DidActivate()

DidActivate calls the underlying DidActivate.

func (*AuthorizationPluginView) DidDeactivate

func (x *AuthorizationPluginView) DidDeactivate()

DidDeactivate calls the underlying DidDeactivate.

func (*AuthorizationPluginView) DisplayView

func (x *AuthorizationPluginView) DisplayView()

DisplayView calls the underlying DisplayView.

func (*AuthorizationPluginView) EngineRef

func (x *AuthorizationPluginView) EngineRef() unsafe.Pointer

EngineRef calls the underlying EngineRef.

func (*AuthorizationPluginView) FirstKeyView

func (x *AuthorizationPluginView) FirstKeyView() *appkit.NSView

FirstKeyView calls the underlying FirstKeyView.

func (*AuthorizationPluginView) FirstResponder

func (x *AuthorizationPluginView) FirstResponder() *appkit.NSResponder

FirstResponder calls the underlying FirstResponder.

func (*AuthorizationPluginView) ID

ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.

func (*AuthorizationPluginView) LastError

func (x *AuthorizationPluginView) LastError() unsafe.Pointer

LastError calls the underlying LastError.

func (*AuthorizationPluginView) LastKeyView

func (x *AuthorizationPluginView) LastKeyView() *appkit.NSView

LastKeyView calls the underlying LastKeyView.

func (*AuthorizationPluginView) SetButtonEnabled

func (x *AuthorizationPluginView) SetButtonEnabled(inButtonType SFButtonType, inEnabled bool)

SetButtonEnabled calls the underlying SetButtonEnabled.

func (*AuthorizationPluginView) SetEnabled

func (x *AuthorizationPluginView) SetEnabled(inEnabled bool)

SetEnabled calls the underlying SetEnabled.

func (*AuthorizationPluginView) Unwrap

Unwrap returns the underlying raw.SFAuthorizationPluginView.

func (*AuthorizationPluginView) UpdateView

func (x *AuthorizationPluginView) UpdateView()

UpdateView calls the underlying UpdateView.

func (*AuthorizationPluginView) ViewForType

func (x *AuthorizationPluginView) ViewForType(inType SFViewType) *appkit.NSView

ViewForType calls the underlying ViewForType.

func (*AuthorizationPluginView) WillActivateWithUser

func (x *AuthorizationPluginView) WillActivateWithUser(inUserInformation *foundation.NSDictionary[objc.ID, objc.ID])

WillActivateWithUser calls the underlying WillActivateWithUser.

type AuthorizationPluginViewable

type AuthorizationPluginViewable interface {
	Unwrap() *raw.SFAuthorizationPluginView
	EngineRef() unsafe.Pointer
	Callbacks() unsafe.Pointer
	ButtonPressed(inButtonType SFButtonType)
	LastError() unsafe.Pointer
	DidActivate()
	WillActivateWithUser(inUserInformation *foundation.NSDictionary[objc.ID, objc.ID])
	DidDeactivate()
	FirstKeyView() *appkit.NSView
	FirstResponder() *appkit.NSResponder
	LastKeyView() *appkit.NSView
	SetEnabled(inEnabled bool)
	ViewForType(inType SFViewType) *appkit.NSView
	DisplayView()
	SetButtonEnabled(inButtonType SFButtonType, inEnabled bool)
	UpdateView()
}

AuthorizationPluginViewable is the interface implemented by AuthorizationPluginView, for mocking and DI.

type AuthorizationView

type AuthorizationView struct {
	// contains filtered or unexported fields
}

AuthorizationView wraps raw.SFAuthorizationView with a fluent Go API.

func AuthorizationViewFromID

func AuthorizationViewFromID(id objc.ID) *AuthorizationView

AuthorizationViewFromID adopts an existing object pointer as a AuthorizationView (nil for 0).

func NewAuthorizationView

func NewAuthorizationView() *AuthorizationView

NewAuthorizationView creates a new AuthorizationView.

func (*AuthorizationView) Authorization

Authorization calls the underlying Authorization.

func (*AuthorizationView) AuthorizationRights

func (x *AuthorizationView) AuthorizationRights() *security.AuthorizationItemSet

AuthorizationRights calls the underlying AuthorizationRights.

func (*AuthorizationView) AuthorizationState

func (x *AuthorizationView) AuthorizationState() SFAuthorizationViewState

AuthorizationState calls the underlying AuthorizationState.

func (*AuthorizationView) Authorize

func (x *AuthorizationView) Authorize(inSender objc.ID) bool

Authorize calls the underlying Authorize.

func (*AuthorizationView) Deauthorize

func (x *AuthorizationView) Deauthorize(inSender objc.ID) bool

Deauthorize calls the underlying Deauthorize.

func (*AuthorizationView) Delegate

func (x *AuthorizationView) Delegate() objc.ID

Delegate calls the underlying Delegate.

func (*AuthorizationView) ID

func (x *AuthorizationView) ID() objc.ID

ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.

func (*AuthorizationView) IsEnabled

func (x *AuthorizationView) IsEnabled() bool

IsEnabled calls the underlying IsEnabled.

func (*AuthorizationView) SetAuthorizationRights

func (x *AuthorizationView) SetAuthorizationRights(authorizationRights *security.AuthorizationItemSet)

SetAuthorizationRights calls the underlying SetAuthorizationRights.

func (*AuthorizationView) SetAutoupdate

func (x *AuthorizationView) SetAutoupdate(autoupdate bool)

SetAutoupdate calls the underlying SetAutoupdate.

func (*AuthorizationView) SetAutoupdateInterval

func (x *AuthorizationView) SetAutoupdateInterval(autoupdate bool, interval float64)

SetAutoupdateInterval calls the underlying SetAutoupdateInterval.

func (*AuthorizationView) SetDelegate

func (x *AuthorizationView) SetDelegate(delegate objc.ID)

SetDelegate calls the underlying SetDelegate.

func (*AuthorizationView) SetEnabled

func (x *AuthorizationView) SetEnabled(enabled bool)

SetEnabled calls the underlying SetEnabled.

func (*AuthorizationView) SetFlags

func (x *AuthorizationView) SetFlags(flags security.AuthorizationFlags)

SetFlags calls the underlying SetFlags.

func (*AuthorizationView) SetString

func (x *AuthorizationView) SetString(authorizationString string)

SetString calls the underlying SetString.

func (*AuthorizationView) Unwrap

Unwrap returns the underlying raw.SFAuthorizationView.

func (*AuthorizationView) UpdateStatus

func (x *AuthorizationView) UpdateStatus(inSender objc.ID) bool

UpdateStatus calls the underlying UpdateStatus.

type AuthorizationViewable

type AuthorizationViewable interface {
	Unwrap() *raw.SFAuthorizationView
	SetString(authorizationString string)
	SetAuthorizationRights(authorizationRights *security.AuthorizationItemSet)
	AuthorizationRights() *security.AuthorizationItemSet
	Authorization() *securityfoundation.SFAuthorization
	UpdateStatus(inSender objc.ID) bool
	SetAutoupdate(autoupdate bool)
	SetAutoupdateInterval(autoupdate bool, interval float64)
	AuthorizationState() SFAuthorizationViewState
	SetEnabled(enabled bool)
	IsEnabled() bool
	SetFlags(flags security.AuthorizationFlags)
	SetDelegate(delegate objc.ID)
	Delegate() objc.ID
	Authorize(inSender objc.ID) bool
	Deauthorize(inSender objc.ID) bool
}

AuthorizationViewable is the interface implemented by AuthorizationView, for mocking and DI.

type CertificatePanel

type CertificatePanel struct {
	// contains filtered or unexported fields
}

CertificatePanel wraps raw.SFCertificatePanel with a fluent Go API.

func CertificatePanelFromID

func CertificatePanelFromID(id objc.ID) *CertificatePanel

CertificatePanelFromID adopts an existing object pointer as a CertificatePanel (nil for 0).

func NewCertificatePanel

func NewCertificatePanel() *CertificatePanel

NewCertificatePanel creates a new CertificatePanel.

func SharedCertificatePanel

func SharedCertificatePanel() *CertificatePanel

SharedCertificatePanel calls the underlying SFCertificatePanelSharedCertificatePanel.

func (*CertificatePanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoCertificatesShowGroup

func (x *CertificatePanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoCertificatesShowGroup(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, certificates *foundation.NSArray[objc.ID], showGroup bool)

BeginSheetForWindowModalDelegateDidEndSelectorContextInfoCertificatesShowGroup calls the underlying BeginSheetForWindowModalDelegateDidEndSelectorContextInfoCertificatesShowGroup.

func (*CertificatePanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustShowGroup

func (x *CertificatePanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustShowGroup(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, trust unsafe.Pointer, showGroup bool)

BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustShowGroup calls the underlying BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustShowGroup.

func (*CertificatePanel) CertificateView

func (x *CertificatePanel) CertificateView() *CertificateView

CertificateView calls the underlying CertificateView.

func (*CertificatePanel) HelpAnchor

func (x *CertificatePanel) HelpAnchor() string

HelpAnchor calls the underlying HelpAnchor.

func (*CertificatePanel) ID

func (x *CertificatePanel) ID() objc.ID

ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.

func (*CertificatePanel) Policies

func (x *CertificatePanel) Policies() *foundation.NSArray[objc.ID]

Policies calls the underlying Policies.

func (*CertificatePanel) RunModalForCertificatesShowGroup

func (x *CertificatePanel) RunModalForCertificatesShowGroup(certificates *foundation.NSArray[objc.ID], showGroup bool) int

RunModalForCertificatesShowGroup calls the underlying RunModalForCertificatesShowGroup.

func (*CertificatePanel) RunModalForTrustShowGroup

func (x *CertificatePanel) RunModalForTrustShowGroup(trust unsafe.Pointer, showGroup bool) int

RunModalForTrustShowGroup calls the underlying RunModalForTrustShowGroup.

func (*CertificatePanel) SetAlternateButtonTitle

func (x *CertificatePanel) SetAlternateButtonTitle(title string)

SetAlternateButtonTitle calls the underlying SetAlternateButtonTitle.

func (*CertificatePanel) SetDefaultButtonTitle

func (x *CertificatePanel) SetDefaultButtonTitle(title string)

SetDefaultButtonTitle calls the underlying SetDefaultButtonTitle.

func (*CertificatePanel) SetHelpAnchor

func (x *CertificatePanel) SetHelpAnchor(anchor string)

SetHelpAnchor calls the underlying SetHelpAnchor.

func (*CertificatePanel) SetPolicies

func (x *CertificatePanel) SetPolicies(policies objc.ID)

SetPolicies calls the underlying SetPolicies.

func (*CertificatePanel) SetShowsHelp

func (x *CertificatePanel) SetShowsHelp(showsHelp bool)

SetShowsHelp calls the underlying SetShowsHelp.

func (*CertificatePanel) ShowsHelp

func (x *CertificatePanel) ShowsHelp() bool

ShowsHelp calls the underlying ShowsHelp.

func (*CertificatePanel) Unwrap

Unwrap returns the underlying raw.SFCertificatePanel.

type CertificatePanelProvider

type CertificatePanelProvider interface {
	// contains filtered or unexported methods
}

CertificatePanelProvider is implemented by CertificatePanel and any idiomatic type wrapping a SFCertificatePanel subclass.

type CertificatePanelable

type CertificatePanelable interface {
	Unwrap() *raw.SFCertificatePanel
	RunModalForTrustShowGroup(trust unsafe.Pointer, showGroup bool) int
	RunModalForCertificatesShowGroup(certificates *foundation.NSArray[objc.ID], showGroup bool) int
	BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustShowGroup(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, trust unsafe.Pointer, showGroup bool)
	BeginSheetForWindowModalDelegateDidEndSelectorContextInfoCertificatesShowGroup(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, certificates *foundation.NSArray[objc.ID], showGroup bool)
	SetPolicies(policies objc.ID)
	Policies() *foundation.NSArray[objc.ID]
	SetDefaultButtonTitle(title string)
	SetAlternateButtonTitle(title string)
	SetShowsHelp(showsHelp bool)
	ShowsHelp() bool
	SetHelpAnchor(anchor string)
	HelpAnchor() string
	CertificateView() *CertificateView
}

CertificatePanelable is the interface implemented by CertificatePanel, for mocking and DI.

type CertificateTrustPanel

type CertificateTrustPanel struct {
	// contains filtered or unexported fields
}

CertificateTrustPanel wraps raw.SFCertificateTrustPanel with a fluent Go API.

func CertificateTrustPanelFromID

func CertificateTrustPanelFromID(id objc.ID) *CertificateTrustPanel

CertificateTrustPanelFromID adopts an existing object pointer as a CertificateTrustPanel (nil for 0).

func NewCertificateTrustPanel

func NewCertificateTrustPanel() *CertificateTrustPanel

NewCertificateTrustPanel creates a new CertificateTrustPanel.

func SharedCertificateTrustPanel

func SharedCertificateTrustPanel() *CertificateTrustPanel

SharedCertificateTrustPanel calls the underlying SFCertificateTrustPanelSharedCertificateTrustPanel.

func (*CertificateTrustPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustMessage

func (x *CertificateTrustPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustMessage(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, trust unsafe.Pointer, message string)

BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustMessage calls the underlying BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustMessage.

func (*CertificateTrustPanel) ID

func (x *CertificateTrustPanel) ID() objc.ID

ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.

func (*CertificateTrustPanel) InformativeText

func (x *CertificateTrustPanel) InformativeText() string

InformativeText calls the underlying InformativeText.

func (*CertificateTrustPanel) RunModalForTrustMessage

func (x *CertificateTrustPanel) RunModalForTrustMessage(trust unsafe.Pointer, message string) int

RunModalForTrustMessage calls the underlying RunModalForTrustMessage.

func (*CertificateTrustPanel) SetInformativeText

func (x *CertificateTrustPanel) SetInformativeText(informativeText string)

SetInformativeText calls the underlying SetInformativeText.

func (*CertificateTrustPanel) Unwrap

Unwrap returns the underlying raw.SFCertificateTrustPanel.

type CertificateTrustPanelable

type CertificateTrustPanelable interface {
	Unwrap() *raw.SFCertificateTrustPanel
	RunModalForTrustMessage(trust unsafe.Pointer, message string) int
	BeginSheetForWindowModalDelegateDidEndSelectorContextInfoTrustMessage(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, trust unsafe.Pointer, message string)
	SetInformativeText(informativeText string)
	InformativeText() string
}

CertificateTrustPanelable is the interface implemented by CertificateTrustPanel, for mocking and DI.

type CertificateView

type CertificateView struct {
	// contains filtered or unexported fields
}

CertificateView wraps raw.SFCertificateView with a fluent Go API.

func CertificateViewFromID

func CertificateViewFromID(id objc.ID) *CertificateView

CertificateViewFromID adopts an existing object pointer as a CertificateView (nil for 0).

func NewCertificateView

func NewCertificateView() *CertificateView

NewCertificateView creates a new CertificateView.

func (*CertificateView) Certificate

func (x *CertificateView) Certificate() unsafe.Pointer

Certificate calls the underlying Certificate.

func (*CertificateView) DetailsDisclosed

func (x *CertificateView) DetailsDisclosed() bool

DetailsDisclosed calls the underlying DetailsDisclosed.

func (*CertificateView) DetailsDisplayed

func (x *CertificateView) DetailsDisplayed() bool

DetailsDisplayed calls the underlying DetailsDisplayed.

func (*CertificateView) ID

func (x *CertificateView) ID() objc.ID

ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.

func (*CertificateView) IsEditable

func (x *CertificateView) IsEditable() bool

IsEditable calls the underlying IsEditable.

func (*CertificateView) IsTrustDisplayed

func (x *CertificateView) IsTrustDisplayed() bool

IsTrustDisplayed calls the underlying IsTrustDisplayed.

func (*CertificateView) Policies

func (x *CertificateView) Policies() *foundation.NSArray[objc.ID]

Policies calls the underlying Policies.

func (*CertificateView) PoliciesDisclosed

func (x *CertificateView) PoliciesDisclosed() bool

PoliciesDisclosed calls the underlying PoliciesDisclosed.

func (*CertificateView) SaveTrustSettings

func (x *CertificateView) SaveTrustSettings()

SaveTrustSettings calls the underlying SaveTrustSettings.

func (*CertificateView) SetCertificate

func (x *CertificateView) SetCertificate(certificate unsafe.Pointer)

SetCertificate calls the underlying SetCertificate.

func (*CertificateView) SetDetailsDisclosed

func (x *CertificateView) SetDetailsDisclosed(disclosed bool)

SetDetailsDisclosed calls the underlying SetDetailsDisclosed.

func (*CertificateView) SetDisplayDetails

func (x *CertificateView) SetDisplayDetails(display bool)

SetDisplayDetails calls the underlying SetDisplayDetails.

func (*CertificateView) SetDisplayTrust

func (x *CertificateView) SetDisplayTrust(display bool)

SetDisplayTrust calls the underlying SetDisplayTrust.

func (*CertificateView) SetEditableTrust

func (x *CertificateView) SetEditableTrust(editable bool)

SetEditableTrust calls the underlying SetEditableTrust.

func (*CertificateView) SetPolicies

func (x *CertificateView) SetPolicies(policies objc.ID)

SetPolicies calls the underlying SetPolicies.

func (*CertificateView) SetPoliciesDisclosed

func (x *CertificateView) SetPoliciesDisclosed(disclosed bool)

SetPoliciesDisclosed calls the underlying SetPoliciesDisclosed.

func (*CertificateView) Unwrap

func (x *CertificateView) Unwrap() *raw.SFCertificateView

Unwrap returns the underlying raw.SFCertificateView.

type CertificateViewable

type CertificateViewable interface {
	Unwrap() *raw.SFCertificateView
	SetCertificate(certificate unsafe.Pointer)
	Certificate() unsafe.Pointer
	SetPolicies(policies objc.ID)
	Policies() *foundation.NSArray[objc.ID]
	SetEditableTrust(editable bool)
	IsEditable() bool
	SetDisplayTrust(display bool)
	IsTrustDisplayed() bool
	SaveTrustSettings()
	SetDisplayDetails(display bool)
	DetailsDisplayed() bool
	SetDetailsDisclosed(disclosed bool)
	DetailsDisclosed() bool
	SetPoliciesDisclosed(disclosed bool)
	PoliciesDisclosed() bool
}

CertificateViewable is the interface implemented by CertificateView, for mocking and DI.

type ChooseIdentityPanel

type ChooseIdentityPanel struct {
	// contains filtered or unexported fields
}

ChooseIdentityPanel wraps raw.SFChooseIdentityPanel with a fluent Go API.

func ChooseIdentityPanelFromID

func ChooseIdentityPanelFromID(id objc.ID) *ChooseIdentityPanel

ChooseIdentityPanelFromID adopts an existing object pointer as a ChooseIdentityPanel (nil for 0).

func NewChooseIdentityPanel

func NewChooseIdentityPanel() *ChooseIdentityPanel

NewChooseIdentityPanel creates a new ChooseIdentityPanel.

func SharedChooseIdentityPanel

func SharedChooseIdentityPanel() *ChooseIdentityPanel

SharedChooseIdentityPanel calls the underlying SFChooseIdentityPanelSharedChooseIdentityPanel.

func (*ChooseIdentityPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoIdentitiesMessage

func (x *ChooseIdentityPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoIdentitiesMessage(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, identities *foundation.NSArray[objc.ID], message string)

BeginSheetForWindowModalDelegateDidEndSelectorContextInfoIdentitiesMessage calls the underlying BeginSheetForWindowModalDelegateDidEndSelectorContextInfoIdentitiesMessage.

func (*ChooseIdentityPanel) Domain

func (x *ChooseIdentityPanel) Domain() string

Domain calls the underlying Domain.

func (*ChooseIdentityPanel) HelpAnchor

func (x *ChooseIdentityPanel) HelpAnchor() string

HelpAnchor calls the underlying HelpAnchor.

func (*ChooseIdentityPanel) ID

func (x *ChooseIdentityPanel) ID() objc.ID

ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.

func (*ChooseIdentityPanel) Identity

func (x *ChooseIdentityPanel) Identity() unsafe.Pointer

Identity calls the underlying Identity.

func (*ChooseIdentityPanel) InformativeText

func (x *ChooseIdentityPanel) InformativeText() string

InformativeText calls the underlying InformativeText.

func (*ChooseIdentityPanel) Policies

func (x *ChooseIdentityPanel) Policies() *foundation.NSArray[objc.ID]

Policies calls the underlying Policies.

func (*ChooseIdentityPanel) RunModalForIdentitiesMessage

func (x *ChooseIdentityPanel) RunModalForIdentitiesMessage(identities *foundation.NSArray[objc.ID], message string) int

RunModalForIdentitiesMessage calls the underlying RunModalForIdentitiesMessage.

func (*ChooseIdentityPanel) SetAlternateButtonTitle

func (x *ChooseIdentityPanel) SetAlternateButtonTitle(title string)

SetAlternateButtonTitle calls the underlying SetAlternateButtonTitle.

func (*ChooseIdentityPanel) SetDefaultButtonTitle

func (x *ChooseIdentityPanel) SetDefaultButtonTitle(title string)

SetDefaultButtonTitle calls the underlying SetDefaultButtonTitle.

func (*ChooseIdentityPanel) SetDomain

func (x *ChooseIdentityPanel) SetDomain(domainString string)

SetDomain calls the underlying SetDomain.

func (*ChooseIdentityPanel) SetHelpAnchor

func (x *ChooseIdentityPanel) SetHelpAnchor(anchor string)

SetHelpAnchor calls the underlying SetHelpAnchor.

func (*ChooseIdentityPanel) SetInformativeText

func (x *ChooseIdentityPanel) SetInformativeText(informativeText string)

SetInformativeText calls the underlying SetInformativeText.

func (*ChooseIdentityPanel) SetPolicies

func (x *ChooseIdentityPanel) SetPolicies(policies objc.ID)

SetPolicies calls the underlying SetPolicies.

func (*ChooseIdentityPanel) SetShowsHelp

func (x *ChooseIdentityPanel) SetShowsHelp(showsHelp bool)

SetShowsHelp calls the underlying SetShowsHelp.

func (*ChooseIdentityPanel) ShowsHelp

func (x *ChooseIdentityPanel) ShowsHelp() bool

ShowsHelp calls the underlying ShowsHelp.

func (*ChooseIdentityPanel) Unwrap

Unwrap returns the underlying raw.SFChooseIdentityPanel.

type ChooseIdentityPanelable

type ChooseIdentityPanelable interface {
	Unwrap() *raw.SFChooseIdentityPanel
	RunModalForIdentitiesMessage(identities *foundation.NSArray[objc.ID], message string) int
	BeginSheetForWindowModalDelegateDidEndSelectorContextInfoIdentitiesMessage(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, identities *foundation.NSArray[objc.ID], message string)
	Identity() unsafe.Pointer
	SetPolicies(policies objc.ID)
	Policies() *foundation.NSArray[objc.ID]
	SetDefaultButtonTitle(title string)
	SetAlternateButtonTitle(title string)
	SetShowsHelp(showsHelp bool)
	ShowsHelp() bool
	SetHelpAnchor(anchor string)
	HelpAnchor() string
	SetInformativeText(informativeText string)
	InformativeText() string
	SetDomain(domainString string)
	Domain() string
}

ChooseIdentityPanelable is the interface implemented by ChooseIdentityPanel, for mocking and DI.

type ChooseIdentityTableCellView

type ChooseIdentityTableCellView struct {
	// contains filtered or unexported fields
}

ChooseIdentityTableCellView wraps raw.SFChooseIdentityTableCellView with a fluent Go API.

func ChooseIdentityTableCellViewFromID

func ChooseIdentityTableCellViewFromID(id objc.ID) *ChooseIdentityTableCellView

ChooseIdentityTableCellViewFromID adopts an existing object pointer as a ChooseIdentityTableCellView (nil for 0).

func NewChooseIdentityTableCellView

func NewChooseIdentityTableCellView() *ChooseIdentityTableCellView

NewChooseIdentityTableCellView creates a new ChooseIdentityTableCellView.

func (*ChooseIdentityTableCellView) ID

ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.

func (*ChooseIdentityTableCellView) IssuerTextField

func (x *ChooseIdentityTableCellView) IssuerTextField() *appkit.NSTextField

IssuerTextField calls the underlying IssuerTextField.

func (*ChooseIdentityTableCellView) SetIssuerTextField

func (x *ChooseIdentityTableCellView) SetIssuerTextField(issuerTextField *appkit.NSTextField)

SetIssuerTextField calls the underlying SetIssuerTextField.

func (*ChooseIdentityTableCellView) Unwrap

Unwrap returns the underlying raw.SFChooseIdentityTableCellView.

func (*ChooseIdentityTableCellView) WithIssuerTextField

func (x *ChooseIdentityTableCellView) WithIssuerTextField(issuerTextField *appkit.NSTextField) *ChooseIdentityTableCellView

WithIssuerTextField sets the issuerTextField property and returns the receiver for chaining.

type ChooseIdentityTableCellViewable

type ChooseIdentityTableCellViewable interface {
	Unwrap() *raw.SFChooseIdentityTableCellView
	WithIssuerTextField(issuerTextField *appkit.NSTextField) *ChooseIdentityTableCellView
	IssuerTextField() *appkit.NSTextField
	SetIssuerTextField(issuerTextField *appkit.NSTextField)
}

ChooseIdentityTableCellViewable is the interface implemented by ChooseIdentityTableCellView, for mocking and DI.

type KeychainSavePanel

type KeychainSavePanel struct {
	// contains filtered or unexported fields
}

KeychainSavePanel wraps raw.SFKeychainSavePanel with a fluent Go API.

func KeychainSavePanelFromID

func KeychainSavePanelFromID(id objc.ID) *KeychainSavePanel

KeychainSavePanelFromID adopts an existing object pointer as a KeychainSavePanel (nil for 0).

func NewKeychainSavePanel

func NewKeychainSavePanel() *KeychainSavePanel

NewKeychainSavePanel creates a new KeychainSavePanel.

func SharedKeychainSavePanel

func SharedKeychainSavePanel() *KeychainSavePanel

SharedKeychainSavePanel calls the underlying SFKeychainSavePanelSharedKeychainSavePanel.

func (*KeychainSavePanel) Error

func (x *KeychainSavePanel) Error() unsafe.Pointer

Error calls the underlying Error.

func (*KeychainSavePanel) ID

func (x *KeychainSavePanel) ID() objc.ID

ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.

func (*KeychainSavePanel) Keychain

func (x *KeychainSavePanel) Keychain() unsafe.Pointer

Keychain calls the underlying Keychain.

func (*KeychainSavePanel) SetPassword

func (x *KeychainSavePanel) SetPassword(password string)

SetPassword calls the underlying SetPassword.

func (*KeychainSavePanel) Unwrap

Unwrap returns the underlying raw.SFKeychainSavePanel.

type KeychainSavePanelable

type KeychainSavePanelable interface {
	Unwrap() *raw.SFKeychainSavePanel
	SetPassword(password string)
	Keychain() unsafe.Pointer
	Error() unsafe.Pointer
}

KeychainSavePanelable is the interface implemented by KeychainSavePanel, for mocking and DI.

type KeychainSettingsPanel

type KeychainSettingsPanel struct {
	// contains filtered or unexported fields
}

KeychainSettingsPanel wraps raw.SFKeychainSettingsPanel with a fluent Go API.

func KeychainSettingsPanelFromID

func KeychainSettingsPanelFromID(id objc.ID) *KeychainSettingsPanel

KeychainSettingsPanelFromID adopts an existing object pointer as a KeychainSettingsPanel (nil for 0).

func NewKeychainSettingsPanel

func NewKeychainSettingsPanel() *KeychainSettingsPanel

NewKeychainSettingsPanel creates a new KeychainSettingsPanel.

func SharedKeychainSettingsPanel

func SharedKeychainSettingsPanel() *KeychainSettingsPanel

SharedKeychainSettingsPanel calls the underlying SFKeychainSettingsPanelSharedKeychainSettingsPanel.

func (*KeychainSettingsPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoSettingsKeychain

func (x *KeychainSettingsPanel) BeginSheetForWindowModalDelegateDidEndSelectorContextInfoSettingsKeychain(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, settings *security.SecKeychainSettings, keychain unsafe.Pointer)

BeginSheetForWindowModalDelegateDidEndSelectorContextInfoSettingsKeychain calls the underlying BeginSheetForWindowModalDelegateDidEndSelectorContextInfoSettingsKeychain.

func (*KeychainSettingsPanel) ID

func (x *KeychainSettingsPanel) ID() objc.ID

ID returns the underlying Objective-C object pointer (objc.ID), for passing to C APIs that take an object or CFTypeRef pointer.

func (*KeychainSettingsPanel) RunModalForSettingsKeychain

func (x *KeychainSettingsPanel) RunModalForSettingsKeychain(settings *security.SecKeychainSettings, keychain unsafe.Pointer) int

RunModalForSettingsKeychain calls the underlying RunModalForSettingsKeychain.

func (*KeychainSettingsPanel) Unwrap

Unwrap returns the underlying raw.SFKeychainSettingsPanel.

type KeychainSettingsPanelable

type KeychainSettingsPanelable interface {
	Unwrap() *raw.SFKeychainSettingsPanel
	RunModalForSettingsKeychain(settings *security.SecKeychainSettings, keychain unsafe.Pointer) int
	BeginSheetForWindowModalDelegateDidEndSelectorContextInfoSettingsKeychain(docWindow *appkit.NSWindow, delegate objc.ID, didEndSelector objc.SEL, contextInfo unsafe.Pointer, settings *security.SecKeychainSettings, keychain unsafe.Pointer)
}

KeychainSettingsPanelable is the interface implemented by KeychainSettingsPanel, for mocking and DI.

type SFAuthorizationViewState added in v0.5.0

type SFAuthorizationViewState int64

@typedef SFAuthorizationViewState @abstract Defines the current state of the authorization view. @constant SFAuthorizationStartupState Indicates the state is starting up. @constant SFAuthorizationViewLockedState Indicates the state is locked. @constant SFAuthorizationViewInProgressState Indicates the state is 'in progress'. @constant SFAuthorizationViewUnlockedState Indicates the state is unlocked.

const (
	SFAuthorizationStartupState        SFAuthorizationViewState = 0
	SFAuthorizationViewLockedState     SFAuthorizationViewState = 1
	SFAuthorizationViewInProgressState SFAuthorizationViewState = 2
	SFAuthorizationViewUnlockedState   SFAuthorizationViewState = 3
)

func (SFAuthorizationViewState) String added in v0.5.0

func (e SFAuthorizationViewState) String() string

type SFButtonType added in v0.5.0

type SFButtonType int64

@typedef SFButtonType @abstract Defines the button types that are used by AuthorizationPlugins. @constant SFButtonTypeCancel Indicates the Cancel button was pressed. @constant SFButtonTypeOK Indicates the OK button was pressed. @constant SFButtonTypeBack Indicates the Back button was pressed. @constant SFButtonTypeLogin Indicates the Login button was pressed.

const (
	SFButtonTypeCancel SFButtonType = 0
	SFButtonTypeOK     SFButtonType = 1
	SFButtonTypeBack   SFButtonType = 0
	SFButtonTypeLogin  SFButtonType = 1
)

func (SFButtonType) String added in v0.5.0

func (e SFButtonType) String() string

type SFViewType added in v0.5.0

type SFViewType int64

@typedef SFViewType @abstract Defines the view types requested by AuthorizationPlugins. @constant SFViewTypeIdentityAndCredentials Indicates a view that has controls for identity and credentials was requested. @constant SFViewTypeCredentials Indicates a view that has controls for credentials was requested.

const (
	SFViewTypeIdentityAndCredentials SFViewType = 0
	SFViewTypeCredentials            SFViewType = 1
)

func (SFViewType) String added in v0.5.0

func (e SFViewType) String() string

Jump to

Keyboard shortcuts

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