microsandbox_image/lib.rs
1//! OCI image pulling, layer extraction, and caching for microsandbox.
2//!
3//! This crate implements the OCI image lifecycle:
4//! - Registry communication (pull, auth, platform resolution)
5//! - Layer caching with content-addressable dedup
6//! - Layer extraction (async tar pipeline, stat virtualization, whiteouts)
7//! - Binary sidecar index generation for OverlayFs acceleration
8
9mod auth;
10mod config;
11mod digest;
12mod error;
13pub(crate) mod layer;
14mod manifest;
15mod platform;
16mod progress;
17mod pull;
18mod registry;
19mod store;
20
21//--------------------------------------------------------------------------------------------------
22// Re-Exports
23//--------------------------------------------------------------------------------------------------
24
25pub use auth::RegistryAuth;
26pub use config::ImageConfig;
27pub use digest::Digest;
28pub use error::{ImageError, ImageResult};
29pub use oci_client::Reference;
30pub use platform::Platform;
31pub use progress::{PullProgress, PullProgressHandle, PullProgressSender, progress_channel};
32pub use pull::{PullOptions, PullPolicy, PullResult};
33pub use registry::Registry;
34pub use store::{CachedImageMetadata, CachedLayerMetadata, GlobalCache};