state

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: AGPL-3.0 Imports: 7 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package state resolves SDK-owned application state. It does not sandbox plugin code.

Index

Constants

View Source
const (
	// StateDirectoryEnvironment names the host-selected, absolute application state root.
	StateDirectoryEnvironment = "OMNIVIEW_STATE_DIR"
	// WorkspaceFileEnvironment names the manifest whose profile must own the selected state root.
	WorkspaceFileEnvironment = "OMNIVIEW_WORKSPACE_FILE"
)

Variables

This section is empty.

Functions

func OpenDirectory

func OpenDirectory(root *os.Root, name string, create bool) (*os.Root, error)

OpenDirectory opens a direct owned child without allowing symlink aliases.

func OpenPluginRoot

func OpenPluginRoot(pluginID string) (*os.Root, error)

OpenPluginRoot anchors operations to an installed plugin. Callers must close it.

func RejectSymlink(root *os.Root, name string) error

RejectSymlink refuses aliases between owned state paths. Root operations also enforce containment if an ancestor changes between validation and access.

func ResolveRoot

func ResolveRoot() (string, error)

ResolveRoot consumes the host's resolved root, never choosing a workspace on the host's behalf. Only launches without workspace context may use production.

func ValidateComponent

func ValidateComponent(name string) error

ValidateComponent rejects path syntax for plugin IDs and capability filenames.

Types

This section is empty.

Jump to

Keyboard shortcuts

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