Documentation
¶
Overview ¶
Package daemonruntime owns the web daemon's private runtime directory and process identity checks. It does not launch or control terminal sessions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var PathEnv = []string{"UAM_SESSION_DIR", "UAM_CONFIG_DIR", "UAM_CACHE_DIR", "XDG_CONFIG_HOME", "XDG_CACHE_HOME"}
PathEnv lists the environment variables uam reads directories from. A relative value means "relative to where uam web was started".
Functions ¶
func DefaultDir ¶
func DefaultDir() string
DefaultDir preserves UAM_SESSION_DIR and the existing per-user location so upgrades can find and safely stop an already-running web daemon. The temp directory survives logout, unlike XDG_RUNTIME_DIR on some hosts.
func ProcStartTime ¶
ProcStartTime returns a kernel process identity, or zero if unavailable.
func WorkDir ¶ added in v0.14.0
func WorkDir() string
WorkDir is the directory the web daemon and its provider runtimes run in: the user's home, which outlives any checkout the service was started from, else the root directory.
func WorkEnv ¶ added in v0.14.0
WorkEnv is this process's environment with the path variables in PathEnv made absolute against the current directory, for a daemon started in WorkDir: relative settings keep their meaning there, and the daemon's children (the Copilot CLI) never inherit a directory that may later be deleted, such as a removed worktree.
Types ¶
This section is empty.