diskcheck

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package diskcheck provides disk space checks for deploy/build/create paths.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(path string, warnPct, blockPct float64) error

Check verifies disk space at the given path. Returns nil if below blockThreshold, error if at or above. Logs a warning if above warnThreshold but below blockThreshold.

func CheckAll

func CheckAll(paths []string, warnPct, blockPct float64) error

CheckAll verifies disk space at multiple paths, returning the first error. This should be used when operations affect multiple filesystems (e.g., both the ah data dir and Docker's storage root).

Types

This section is empty.

Jump to

Keyboard shortcuts

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