Documentation
¶
Overview ¶
Package health implements the read-only environment "doctor" probe layer.
It runs a set of independent, non-destructive probes (peermem loaded? IOMMU=pt? ACS off? RDMA port active? etc.) and aggregates their results. This is the data layer only: probes report status, they never decide exit codes and never mutate any system state. The gpu-tools doctor command lives in a separate package and consumes DefaultProbes, Run, and Report.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
Probe is a single independent, non-destructive environment check.
func DefaultProbes ¶
func DefaultProbes(runner execRunner) []Probe
DefaultProbes returns the standard six probes wired to runner. A nil runner falls back to the production os/exec runner.
type Status ¶
type Status string
Status is the outcome of a single probe (or the aggregated report).
const ( // StatusOK means the probe found the expected healthy configuration. StatusOK Status = "ok" // StatusWarn means the probe found a non-fatal problem worth attention. StatusWarn Status = "warn" // StatusFail means the probe found a fatal problem. StatusFail Status = "fail" // StatusSkip means the probe could not run (missing dependency / permission). StatusSkip Status = "skip" )