preflight

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package preflight checks whether this machine can host Boxpool sandboxes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MajorAtLeast

func MajorAtLeast(version string, min int) bool

MajorAtLeast reports whether a version string like "14.2.1" has a major version of at least min.

func StateDir

func StateDir() (string, error)

StateDir returns the directory Boxpool keeps its state in: BOXPOOL_HOME when set, otherwise /var/lib/boxpool on Linux and ~/Library/Application Support/boxpool on macOS.

Types

type Check

type Check struct {
	Name     string
	OK       bool
	Warn     bool
	Required bool // Required checks must pass even when a fallback backend exists.
	Detail   string
}

Check is the result of one preflight check.

type Report

type Report struct {
	OS      string
	Arch    string
	Backend string
	Warning string
	Checks  []Check
}

Report is the outcome of all checks plus the backend Boxpool would use. Warning is set when that backend is a fallback with weaker isolation; everything that picks it or creates sandboxes on it must show it.

func Run

func Run() Report

Run performs the checks for the current OS.

func (Report) Ready

func (r Report) Ready() bool

Ready reports whether a usable backend was found and its prerequisites pass.

Jump to

Keyboard shortcuts

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