prune

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	All     bool // remove every tpd-managed resource regardless of liveness
	Volumes bool // scope to volumes only
	Images  bool // scope to images only
	Force   bool // skip confirmation prompt
}

type Result

type Result struct {
	VolumesRemoved []string
	ImagesRemoved  []string
}

func Run

func Run(ctx context.Context, opts Options) (Result, error)

Run prunes tpd-managed Docker resources (volumes and derived images).

Default (no flags): remove only catalog-unused resources — a volume is used if some resolvable profile declares it (tpd-mise if any profile exists, tpd-cache-<name> for any profile declaring caches.<name>); a tpd/packages:<hash> image is used if some resolvable profile's (base-image-id, merged-packages) hash matches. --all removes every tpd-managed resource regardless of liveness. --volumes / --images scope to one resource type; without either, both are pruned.

Jump to

Keyboard shortcuts

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