Skip to main content

Module doctor

Module doctor 

Source
Expand description

decdn node doctor — read-only diagnosis of node config, on-disk state, disk-vs-budget, and network reachability. Runs pre-boot and against a live daemon; mutates nothing.

Structs§

DoctorFailed
Sentinel error returned by run when the report contains failing checks (or warnings under --strict). main recognizes it to set a nonzero exit without printing an Error: line — the report is already on stdout.
Finding
A single diagnostic outcome. Every Warn/Fail carries a one-line remediation; detail holds a grep-friendly key=value tail.
Report
The collected findings of one doctor run.

Enums§

Severity
Diagnostic severity. Only Fail (and Warn under --strict) drives a nonzero exit.

Functions§

run
Run every diagnostic group, render the report, and map severity to exit.