executionpolicy

package
v0.6.17 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package executionpolicy provides Go bindings for the ExecutionPolicy framework.

Provide functionality so developer tools can manage execution policy exceptions.

This framework provides the ability for developer tools to manage execution policy exceptions for software that’s built locally.

Classes

Key Types

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

Functions

func NewBoolBlock

func NewBoolBlock(handler BoolHandler) (objc.ID, func())

NewBoolBlock wraps a Go BoolHandler as an Objective-C block. The caller must defer the returned cleanup function.

Used by:

Types

type BoolHandler

type BoolHandler = func(bool)

BoolHandler handles completion with a primitive value.

Used by:

type EPDeveloperTool

type EPDeveloperTool struct {
	objectivec.Object
}

Instance Properties

Instance Methods

See: https://developer.apple.com/documentation/ExecutionPolicy/EPDeveloperTool

func EPDeveloperToolFromID

func EPDeveloperToolFromID(id objc.ID) EPDeveloperTool

EPDeveloperToolFromID constructs a EPDeveloperTool from an objc.ID.

func NewEPDeveloperTool

func NewEPDeveloperTool() EPDeveloperTool

NewEPDeveloperTool creates a new EPDeveloperTool instance.

func (EPDeveloperTool) Autorelease

func (e EPDeveloperTool) Autorelease() EPDeveloperTool

Autorelease adds the receiver to the current autorelease pool.

func (EPDeveloperTool) Init

Init initializes the instance.

func (EPDeveloperTool) RequestDeveloperToolAccess

func (e EPDeveloperTool) RequestDeveloperToolAccess(ctx context.Context) (bool, error)

RequestDeveloperToolAccess is a synchronous wrapper around EPDeveloperTool.RequestDeveloperToolAccessWithCompletionHandler. It blocks until the completion handler fires or the context is cancelled.

type EPDeveloperToolClass

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

func GetEPDeveloperToolClass

func GetEPDeveloperToolClass() EPDeveloperToolClass

GetEPDeveloperToolClass returns the class object for EPDeveloperTool.

func (EPDeveloperToolClass) Alloc

Alloc allocates memory for a new instance of the class.

func (EPDeveloperToolClass) Class

func (ec EPDeveloperToolClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type EPDeveloperToolStatus

type EPDeveloperToolStatus int

See: https://developer.apple.com/documentation/ExecutionPolicy/EPDeveloperToolStatus

const (
	EPDeveloperToolStatusAuthorized    EPDeveloperToolStatus = 3
	EPDeveloperToolStatusDenied        EPDeveloperToolStatus = 2
	EPDeveloperToolStatusNotDetermined EPDeveloperToolStatus = 0
	EPDeveloperToolStatusRestricted    EPDeveloperToolStatus = 1
)

func (EPDeveloperToolStatus) String

func (e EPDeveloperToolStatus) String() string

type EPError

type EPError int

See: https://developer.apple.com/documentation/ExecutionPolicy/EPError-swift.struct/Code

const (
	EPErrorGeneric           EPError = 1
	EPErrorNotADeveloperTool EPError = 2
)

func (EPError) String

func (e EPError) String() string

type EPExecutionPolicy

type EPExecutionPolicy struct {
	objectivec.Object
}

Instance Methods

See: https://developer.apple.com/documentation/ExecutionPolicy/EPExecutionPolicy

func EPExecutionPolicyFromID

func EPExecutionPolicyFromID(id objc.ID) EPExecutionPolicy

EPExecutionPolicyFromID constructs a EPExecutionPolicy from an objc.ID.

func NewEPExecutionPolicy

func NewEPExecutionPolicy() EPExecutionPolicy

NewEPExecutionPolicy creates a new EPExecutionPolicy instance.

func (EPExecutionPolicy) Autorelease

func (e EPExecutionPolicy) Autorelease() EPExecutionPolicy

Autorelease adds the receiver to the current autorelease pool.

func (EPExecutionPolicy) Init

Init initializes the instance.

type EPExecutionPolicyClass

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

func GetEPExecutionPolicyClass

func GetEPExecutionPolicyClass() EPExecutionPolicyClass

GetEPExecutionPolicyClass returns the class object for EPExecutionPolicy.

func (EPExecutionPolicyClass) Alloc

Alloc allocates memory for a new instance of the class.

func (EPExecutionPolicyClass) Class

func (ec EPExecutionPolicyClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type IEPDeveloperTool

type IEPDeveloperTool interface {
	objectivec.IObject

	AuthorizationStatus() EPDeveloperToolStatus

	RequestDeveloperToolAccessWithCompletionHandler(handler BoolHandler)
}

An interface definition for the EPDeveloperTool class.

Instance Properties

Instance Methods

See: https://developer.apple.com/documentation/ExecutionPolicy/EPDeveloperTool

type IEPExecutionPolicy

type IEPExecutionPolicy interface {
	objectivec.IObject

	AddPolicyExceptionForURLError(url foundation.NSURL) (bool, error)
}

An interface definition for the EPExecutionPolicy class.

Instance Methods

See: https://developer.apple.com/documentation/ExecutionPolicy/EPExecutionPolicy

Jump to

Keyboard shortcuts

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