imgledger

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package imgledger records the container image refs lerd itself pulled. Podman has no way to label an image in place, so the ledger is lerd's provenance marker: cleanup reclaims lerd's own catalog leftovers while leaving an image the user pulled independently that happens to share a catalog repo untouched.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() map[string]bool

Load returns the set of refs lerd has recorded pulling. A missing or unreadable ledger yields an empty set, so cleanup reaps nothing it can't prove is lerd's.

func Record

func Record(ref string)

Record notes that lerd has pulled ref. Best-effort: a write failure only keeps cleanup conservative (an unrecorded image is never reaped as lerd's), so the pull path ignores the outcome.

Types

This section is empty.

Jump to

Keyboard shortcuts

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