Skip to main content

Crate sysknife_core

Crate sysknife_core 

Source
Expand description

Shared defaults, low-level constants, and configuration loading for the SysKnife workspace.

Re-exports§

pub use distro::detect;
pub use distro::detect_distro;
pub use distro::parse_os_release;
pub use distro::DistroFamily;
pub use distro::DistroId;

Modules§

action_family
Canonical mapping of action names to the distro family they require.
config
~/.config/sysknife/config.toml — optional user configuration file.
distro
Distro detection — Phase 2a.

Enums§

AuditStoreChoice
Which audit store a CLI-side reader (sysknife audit verify, MCP doctor) should open.

Constants§

PRODUCTION_DATABASE_PATH
Production SQLite path written by the systemd unit (sysknife-daemon.service).
PRODUCTION_LISTEN_URI
Production socket URI written by the systemd unit (sysknife-daemon.service).

Functions§

choose_audit_store
Pure selection rule behind resolve_audit_store, split out so the precedence is testable without touching the filesystem or the environment.
default_database_path
Resolve the daemon SQLite database path for the current process.
default_listen_uri
Resolve the daemon listen URI for the current process.
resolve_audit_store
Resolve the audit store for this process against the real environment and filesystem.