executionpolicy

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package executionpolicy provides a fluent Go API over the macOS ExecutionPolicy framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeveloperTool

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

DeveloperTool wraps raw.EPDeveloperTool with a fluent Go API.

func DeveloperToolFromID

func DeveloperToolFromID(id objc.ID) *DeveloperTool

DeveloperToolFromID adopts an existing object pointer as a DeveloperTool (nil for 0).

func NewDeveloperTool

func NewDeveloperTool() *DeveloperTool

NewDeveloperTool creates a new DeveloperTool.

func (*DeveloperTool) AuthorizationStatus

func (x *DeveloperTool) AuthorizationStatus() raw.EPDeveloperToolStatus

AuthorizationStatus calls the underlying AuthorizationStatus.

func (*DeveloperTool) ID

func (x *DeveloperTool) 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 (*DeveloperTool) RequestDeveloperToolAccessWithCompletionHandler

func (x *DeveloperTool) RequestDeveloperToolAccessWithCompletionHandler(handler func(bool))

RequestDeveloperToolAccessWithCompletionHandler calls the underlying RequestDeveloperToolAccessWithCompletionHandler.

func (*DeveloperTool) Unwrap

func (x *DeveloperTool) Unwrap() *raw.EPDeveloperTool

Unwrap returns the underlying raw.EPDeveloperTool.

type DeveloperToolable

type DeveloperToolable interface {
	Unwrap() *raw.EPDeveloperTool
	RequestDeveloperToolAccessWithCompletionHandler(handler func(bool))
	AuthorizationStatus() raw.EPDeveloperToolStatus
}

DeveloperToolable is the interface implemented by DeveloperTool, for mocking and DI.

type ExecutionPolicy

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

ExecutionPolicy wraps raw.EPExecutionPolicy with a fluent Go API.

func ExecutionPolicyFromID

func ExecutionPolicyFromID(id objc.ID) *ExecutionPolicy

ExecutionPolicyFromID adopts an existing object pointer as a ExecutionPolicy (nil for 0).

func NewExecutionPolicy

func NewExecutionPolicy() *ExecutionPolicy

NewExecutionPolicy creates a new ExecutionPolicy.

func (*ExecutionPolicy) AddPolicyExceptionForURLError

func (x *ExecutionPolicy) AddPolicyExceptionForURLError(url string) (bool, error)

AddPolicyExceptionForURLError calls the underlying AddPolicyExceptionForURLError.

func (*ExecutionPolicy) ID

func (x *ExecutionPolicy) 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 (*ExecutionPolicy) Unwrap

func (x *ExecutionPolicy) Unwrap() *raw.EPExecutionPolicy

Unwrap returns the underlying raw.EPExecutionPolicy.

type ExecutionPolicyable

type ExecutionPolicyable interface {
	Unwrap() *raw.EPExecutionPolicy
	AddPolicyExceptionForURLError(url string) (bool, error)
}

ExecutionPolicyable is the interface implemented by ExecutionPolicy, for mocking and DI.

Jump to

Keyboard shortcuts

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