Expand description
OCI image pulling, layer extraction, and caching for microsandbox.
This crate implements the OCI image lifecycle:
- Registry communication (pull, auth, platform resolution)
- Layer caching with content-addressable dedup
- Layer extraction (async tar pipeline, stat virtualization, whiteouts)
- Binary sidecar index generation for OverlayFs acceleration
Structs§
- Cached
Image Metadata - Cached metadata for a pulled image reference.
- Cached
Layer Metadata - Cached metadata for a single layer descriptor.
- Digest
- OCI content-addressable digest (e.g.,
sha256:e3b0c44298fc1c14...). - Global
Cache - On-disk global cache for OCI layers.
- Image
Config - Runtime configuration parsed from an OCI image config blob.
- Platform
- Target platform for OCI image resolution.
- Pull
Options - Options for
Registry::pull(). - Pull
Progress Handle - Receiver for progress events.
- Pull
Progress Sender - Emits progress events. Uses
try_send— never blocks downloads. - Pull
Result - Result of a successful image pull.
- Reference
- Reference provides a general type to represent any way of referencing images within an OCI registry.
- Registry
- OCI registry client with platform resolution, caching, and progress reporting.
Enums§
- Image
Error - Errors that can occur during image operations.
- Pull
Policy - Controls when the registry is contacted for manifest freshness.
- Pull
Progress - Progress events emitted during image pull and layer extraction.
- Registry
Auth - Authentication credentials for OCI registry access.
Functions§
- progress_
channel - Create a progress channel pair.
Type Aliases§
- Image
Result - Result type for image operations.