doctor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package doctor runs a preflight check over the environment edvabe needs to `serve` and prints an aligned pass/fail table. It is the `edvabe doctor` subcommand's backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, w io.Writer, opts Options) error

Run executes each check in order, prints an aligned table to w, and returns a non-nil error if any check failed. The error message is a short summary — the detailed per-check output has already been written to w.

Types

type Options

type Options struct {
	// Port is the TCP port `edvabe serve` will bind. Defaults to 3000.
	Port int
	// BaseImage is the tag that `edvabe build-image` produces. Defaults
	// to sandbox.DefaultImage.
	BaseImage string
	// EnvdSourceImage is the scratch image `edvabe build-image` produces
	// alongside BaseImage. Defaults to upstream.EnvdSourceTag.
	EnvdSourceImage string
	// CodeInterpreterImage is the code-interpreter image tag. Defaults
	// to upstream.CodeInterpreterTag. Its absence is informational, not
	// a hard failure.
	CodeInterpreterImage string
	// PausePolicy, when non-zero, is surfaced as an info line so users
	// can see the limits that `edvabe serve` will apply.
	PausePolicy sandbox.PausePolicy
}

Options configure a doctor Run.

Jump to

Keyboard shortcuts

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