Versions in this module Expand all Collapse all v0 v0.2.1 Mar 1, 2026 v0.2.0 Feb 22, 2026 Changes in this version + var AllPermissions = []Permission + type FSScope struct + Read []string + Write []string + type HTTPScope struct + Allow []string + Deny []string + type Permission string + const PermClipboard + const PermDialog + const PermFS + const PermHTTP + const PermMenu + const PermNotification + const PermProcess + const PermShell + const PermShortcuts + const PermStore + const PermTray + const PermUpdater + type PermissionError struct + Allowed []string + Attempted string + ConfigKey string + Method string + Namespace string + func (e *PermissionError) Error() string + type Policy struct + func DevPolicy() *Policy + func NewPolicy(perms []string, projectDir string, appName string, devMode bool) *Policy + func (p *Policy) AllowDir(dir string) + func (p *Policy) Check(perm Permission) error + func (p *Policy) CheckFSRead(path string) error + func (p *Policy) CheckFSWrite(path string) error + func (p *Policy) CheckHTTP(rawURL string) error + func (p *Policy) CheckPath(path string) error + func (p *Policy) CheckProcess(cmd string, args []string) error + func (p *Policy) HasPermission(perm Permission) bool + func (p *Policy) SetFSScope(scope FSScope) + func (p *Policy) SetHTTPScope(scope HTTPScope) + func (p *Policy) SetProcessScope(scope ProcessScope) + type ProcessRule struct + Args []string + Cmd string + type ProcessScope struct + Exec []ProcessRule