Expand description
Feature-invariant image-store trait + inventory registration.
The ImageStore trait is the seam between the CRI ImageHandler RPC surface
(generated, always compiled) and concrete image backends (RafsStore today,
future plain-OCI / stargz / squashfs backends). It mirrors the five CRI image
ops the handler dispatches to.
A trait object keeps WorkerService feature-invariant: it holds
Option<Arc<dyn ImageStore>> (always compiled) and the handler dispatches
through it with a single fallback error path. The only #[cfg(feature)] is
on the concrete RafsStore impl + its inventory::submit!, which live in
image/store.rs next to the nydus deps they pull.
Pluggability: a new image backend is a new impl ImageStore + one
inventory::submit!{ ImageBackendRegistration }. Zero changes to
WorkerService. Same pattern as SandboxBackend / BackendRegistration
(runtime/selection.rs).
Structs§
- Image
Backend Registration - Inventory-based registration for image backends (mirrors
BackendRegistrationinruntime/selection.rs).
Traits§
- Image
Store - The image-store operations the CRI
ImageHandlerRPC surface dispatches to.