Documentation
¶
Overview ¶
Package compact prunes old artifacts, snapshots, and checkpoints from a cloop project directory to reclaim disk space.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
DryRun bool
KeepSnapshots int // number of most-recent plan snapshots to keep
KeepCheckpoints int // task IDs no longer in plan have their checkpoints removed; this is not a count limit
KeepArtifactsDays int // delete artifacts older than this many days for completed tasks
TruncateStepLog int // keep last N entries in replay.jsonl (0 = skip)
}
Options controls compaction behaviour.
func DefaultOptions ¶
func DefaultOptions() Options
DefaultOptions returns the spec-mandated defaults.
type Summary ¶
type Summary struct {
SnapshotsBytesFreed int64
CheckpointsBytesFreed int64
ArtifactsBytesFreed int64
StepLogBytesFreed int64
SnapshotsDeleted int
CheckpointsDeleted int
ArtifactsDeleted int
StepLogTruncated bool
}
Summary reports bytes freed per category.
func (Summary) TotalBytesFreed ¶
TotalBytesFreed returns total bytes freed across all categories.
Click to show internal directories.
Click to hide internal directories.