Versions in this module Expand all Collapse all v0 v0.1.0 Sep 9, 2026 Changes in this version + const OverlaySpecFileName + var ErrIncompleteEnumeration = errors.New("image cache enumeration incomplete") + func FinalizeLayer(layerDir string) error — linux/amd64 + func RemoveAllWritable(path string) error + func SetupBundleRootfs(bundlePath string) error — linux/amd64 + func UnmountAllUnder(dir string) error — linux/amd64 + func WriteSpec(bundlePath string, spec *OverlaySpec) error + type EvictStats struct + Candidates int + EvictedImages int + EvictedLayers int + FreedBytes int64 + OrphanLayers int + RootedImages int + SkippedFresh int + SkippedRooted int + type Image struct + Config v1.Config + Digest v1.Hash + LayerDirs []string + type ImageVolumeOverlay struct + ImageDigest string + Layers []string + Name string + type Option func(*Store) + func WithActorsDir(dir string) Option + func WithAuthenticator(a authn.Authenticator) Option + func WithLocalhostRegistryReplacement(replacement string) Option + func WithMeter(m metric.Meter) Option + func WithMinAge(d time.Duration) Option + func WithPlatform(p v1.Platform) Option + func WithPullTimeout(d time.Duration) Option + type OverlaySpec struct + ExtraDirs []string + ImageDigest string + ImageVolumes []ImageVolumeOverlay + Layers []string + Version int + func ReadSpec(bundlePath string) (*OverlaySpec, error) + type RootSet struct + ImageDigests map[string]bool + LayerHexes map[string]bool + LayerSets map[string]bool + type Store struct + func New(root string, opts ...Option) (*Store, error) + func (s *Store) CacheSize() (int64, error) + func (s *Store) EnsureImage(ctx context.Context, ref string) (_ *Image, err error) + func (s *Store) EvictUnused(ctx context.Context, targetBytes int64, dryRun bool) (EvictStats, error) + func (s *Store) InUse() (RootSet, error) + func (s *Store) RecoverOrphans(ctx context.Context) (EvictStats, error)