Skip to main content

scan_managed_services

Function scan_managed_services 

Source
pub fn scan_managed_services() -> Result<Vec<String>>
Expand description

Scan the user’s quadlet directory for ryra-managed services. A .container file is considered ryra-managed iff it carries a # Service-Source: registry/<name> comment within its first 16 lines (added at install time). Returns the deduplicated set of service names found.

This makes the on-disk quadlet directory the source of truth for “which services are installed” — preferences.toml was historically authoritative, but could drift (e.g. if config was wiped while services kept running). Callers that want richer metadata (URL, exposure) still need preferences.toml; for “is X installed” the quadlet scan is reliable.