doctor

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL