Documentation ¶
Overview ¶
Package snapshotgc implements garbage collection of contents that are no longer referenced through snapshots.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stats ¶
type Stats struct { // Keep int64 fields first to ensure they get aligned to at least 64-bit // boundaries which is required for atomic access on ARM and x86-32. // Also results in a smaller struct size UnusedBytes, InUseBytes, SystemBytes, TooRecentBytes, UndeletedBytes int64 UnusedCount, InUseCount, SystemCount, TooRecentCount, UndeletedCount uint32 }
Stats contains statistics about a GC run.
func Run ¶
func Run(ctx context.Context, rep repo.DirectRepositoryWriter, gcDelete bool, safety maintenance.SafetyParameters, maintenanceStartTime time.Time) (Stats, error)
Run performs garbage collection on all the snapshots in the repository.
Click to show internal directories.
Click to hide internal directories.