Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckResult ¶
type CheckResult struct {
Name string `json:"name"`
Status string `json:"status"`
Message string `json:"message"`
Details string `json:"details,omitempty"`
}
CheckResult holds the outcome of a single health check.
type TestableCmd ¶
type TestableCmd struct {
// contains filtered or unexported fields
}
TestableCmd wraps the doctor command with a parent that carries root persistent flags (--json, --jq, --yes, --no-color, --host) so tests can exercise --json without spinning up a full root command.
func NewTestableCmd ¶
func NewTestableCmd(f *cmdutil.Factory) *TestableCmd
NewTestableCmd creates a TestableCmd for use in tests.
func (*TestableCmd) Execute ¶
func (tc *TestableCmd) Execute(args []string) error
Execute runs the doctor command with the given args via a minimal parent that exposes root persistent flags.
Click to show internal directories.
Click to hide internal directories.