snapshotgc

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

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