sandboxcheck

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package sandboxcheck runs conformance checks through the production sandbox runner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseSpec

func BaseSpec(name string) ports.ToolSpec

constructProductionRunner routes every strict conformance invocation through NewRunnerReady. A non-positive wait supplies an already-expired context; the ready constructor still makes its immediate direct-cgroup attempt before returning unavailable.

func Failed

func Failed(r Report) bool

func ProbeSpec

func ProbeSpec(self, probe string, extra ...string) ports.ToolSpec

func WriteReport

func WriteReport(path string, r Report, stdout, stderr io.Writer) error

Types

type CheckResult

type CheckResult struct {
	Name     string `json:"name"`
	Category string `json:"category"`
	Status   Status `json:"status"`
	Detail   string `json:"detail"`
}

func FailResult

func FailResult(name, category, detail string) CheckResult

func PassResult

func PassResult(name, category, detail string) CheckResult

func UnenforcedResult

func UnenforcedResult(name, category, detail string) CheckResult

type Report

type Report struct {
	Mode                 string        `json:"mode"`
	Strict               bool          `json:"strict"`
	CgroupLimitsEnforced bool          `json:"cgroupLimitsEnforced"`
	Checks               []CheckResult `json:"checks"`
}

func Run

func Run(mode string, strict bool, readyWait time.Duration) (Report, error)

type Status

type Status string
const (
	StatusPass       Status = "pass"
	StatusFail       Status = "fail"
	StatusUnenforced Status = "unenforced"
)

Jump to

Keyboard shortcuts

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