Documentation
¶
Overview ¶
Package gc cleans up orphaned Docker resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GC ¶
type GC struct {
// contains filtered or unexported fields
}
GC cleans up orphaned containers, volumes, images, and build dirs.
func (*GC) Run ¶
Run starts the GC loop. Blocks until ctx is cancelled. Recovers from panics to keep the loop alive.
func (*GC) SetSnapshotCleaner ¶
func (g *GC) SetSnapshotCleaner(cleaner SnapshotCleaner, maxPerService int, maxAge time.Duration)
SetSnapshotCleaner configures snapshot retention cleanup. When set, the GC loop will periodically remove snapshots exceeding the per-service count or age limits.
Click to show internal directories.
Click to hide internal directories.