doctor

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package doctor implements environment and configuration health checks for cloop.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level int

Level indicates the severity of a diagnostic result.

const (
	Pass Level = iota
	Warn
	Fail
)

func (Level) String

func (l Level) String() string

type Report

type Report struct {
	Results []Result
}

Report contains all diagnostic results.

func Run

func Run(ctx context.Context, workdir string, cfg *config.Config, testProviders bool) *Report

Run executes all diagnostic checks and returns a report.

func (*Report) Counts

func (r *Report) Counts() (pass, warn, fail int)

Counts returns pass, warn, fail counts.

type Result

type Result struct {
	Name    string
	Level   Level
	Message string
	Fix     string // optional hint for fixing the issue
}

Result is a single diagnostic check result.

Jump to

Keyboard shortcuts

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