Expand description
Path resolution for Starla
Directory resolution priority:
Config directory (for config.toml):
$CONFIGURATION_DIRECTORY(systemd)- Container:
/config $XDG_CONFIG_HOME/starla- Root:
/etc/starla, non-root:~/.config/starla
State directory (for keys, probe_id, known_hosts):
- CLI
--state-dir(via override) $STATE_DIRECTORY(systemd)- Container:
/state $XDG_STATE_HOME/starla- Root:
/var/lib/starla, non-root:~/.local/state/starla
Runtime directory (for ephemeral databases, caches):
$RUNTIME_DIRECTORY(systemd)- Container:
/run/starla $XDG_RUNTIME_DIR/starla- Root:
/run/starla, non-root:/tmp/starla-<uid>
Functionsยง
- config_
dir - Get the configuration directory path
- config_
file - Get the default config file path
- ensure_
config_ dir - Ensure the config directory exists
- ensure_
dir - Ensure a directory exists, creating it if necessary
- ensure_
state_ dir - Ensure the state directory exists
- known_
hosts_ path - Get the known SSH host keys path
- probe_
id_ path - Get the probe ID file path
- probe_
key_ path - Get the default probe key path
- probe_
pubkey_ path - Get the default probe public key path
- read_
probe_ id - Read the probe ID from the state directory
- runtime_
dir - Get the runtime directory path (for ephemeral data: databases, caches)
- set_
runtime_ dir - Set the runtime directory override (from
--runtime-dirCLI arg). Must be called before anyruntime_dir()calls. Subsequent calls are ignored. - set_
state_ dir - Set the state directory override (from
--state-dirCLI arg). Must be called before anystate_dir()calls. Subsequent calls are ignored. - state_
dir - Get the state directory path (for databases, keys, etc.)
- status_
socket_ path - Get the status socket path (for tray app communication)
- write_
probe_ id - Write the probe ID to the state directory