Documentation
¶
Overview ¶
Package doctor provides a diagnostic command that validates configuration, checks environment health, and reports runtime details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdDoctor ¶
NewCmdDoctor creates the doctor command.
func PrintReport ¶
func PrintReport(w io.Writer, report *DoctorReport)
PrintReport writes a human-readable report to the given writer.
Types ¶
type CheckFunc ¶
CheckFunc is an alias for the registry's CheckFunc type.
func DefaultChecks ¶
func DefaultChecks() []CheckFunc
DefaultChecks returns the standard set of diagnostic checks.
type CheckResult ¶
type CheckResult = setup.CheckResult
CheckResult is an alias for the registry's CheckResult type.
type CheckStatus ¶
type CheckStatus = string
CheckStatus is the outcome of a diagnostic check.
const ( CheckPass CheckStatus = "pass" CheckWarn CheckStatus = "warn" CheckFail CheckStatus = "fail" CheckSkip CheckStatus = "skip" )
type DoctorReport ¶
type DoctorReport struct {
Tool string `json:"tool"`
Version string `json:"version"`
Checks []CheckResult `json:"checks"`
}
DoctorReport contains all check results.
Click to show internal directories.
Click to hide internal directories.