Documentation ¶ Index ¶ type Options type Report func Diagnose(ctx context.Context, opts Options) Report func (r Report) ErrorCount() int func (r Report) HasErrors() bool func (r Report) Render() string func (r Report) WarningCount() int type Result type Status Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Options ¶ type Options struct { ConfigFile string RepoRoot string HomeDir string LookPath func(string) (string, error) RunCommand func(context.Context, string, ...string) (string, error) PingDatabase func(context.Context, string) error } type Report ¶ type Report struct { Results []Result } func Diagnose ¶ func Diagnose(ctx context.Context, opts Options) Report func (Report) ErrorCount ¶ func (r Report) ErrorCount() int func (Report) HasErrors ¶ func (r Report) HasErrors() bool func (Report) Render ¶ func (r Report) Render() string func (Report) WarningCount ¶ func (r Report) WarningCount() int type Result ¶ type Result struct { Name string Status Status Summary string Detail string Fix string } type Status ¶ type Status string const ( StatusOK Status = "ok" StatusWarning Status = "warning" StatusError Status = "error" ) Source Files ¶ View all Source files doctor.go Click to show internal directories. Click to hide internal directories.