hostrules

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package hostrules implements the Docker host rules evaluated against a snapshot collected from the local Docker daemon.

Index

Constants

View Source
const (
	// DiskReclaimableAbsolute reports when at least this much space could
	// be reclaimed by docker system prune.
	DiskReclaimableAbsolute int64 = 20 << 30
	// DiskReclaimableRatio reports when this share of Docker's disk usage is
	// reclaimable and the reclaimable amount is at least DiskRatioMinimum.
	DiskReclaimableRatio = 0.5
	// DiskRatioMinimum avoids reporting small hosts with little data.
	DiskRatioMinimum int64 = 5 << 30
)

Disk usage thresholds for SST-HOST-009.

Variables

This section is empty.

Functions

func Registry

func Registry() *engine.Registry[*docker.Snapshot]

Registry returns a validated registry of all host rules.

Types

type Rule

type Rule = engine.Rule[*docker.Snapshot]

Rule is a Docker host rule.

func All

func All() []Rule

All returns every built-in host rule.

Jump to

Keyboard shortcuts

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