Documentation
¶
Overview ¶
Package doctor is the report a tool's `doctor` command prints: one line per check, ok, warn or fail, as text for people or versioned JSON for agents. A warning is something that still works in a reduced way; only a failure makes Write return ErrProblems.
Index ¶
Constants ¶
View Source
const ( OK = "ok" Warn = "warn" Fail = "fail" )
View Source
const SchemaVersion = 1
SchemaVersion versions the JSON shape, for agents that parse it.
Variables ¶
View Source
var ErrProblems = errors.New("doctor found problems")
ErrProblems is returned by Write when a check failed.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct {
Name string `json:"name"`
Status string `json:"status"`
Detail string `json:"detail"`
}
Check is one line of the report.
Click to show internal directories.
Click to hide internal directories.