Skip to main content

create_image_substrate_router

Function create_image_substrate_router 

Source
pub fn create_image_substrate_router(
    store: Arc<RafsStore>,
    policy: ImageSubstratePolicy,
) -> Router
Expand description

Build a read-only router exposing RAFS bootstraps and layer/config blobs.

Routes:

  • GET|HEAD /nydus/v1/bootstraps/:image_id
  • GET|HEAD /nydus/v1/blobs/:algorithm/:hex
  • GET|HEAD /v2/*path for registry-compatible blob paths ending in /blobs/<algorithm>:<hex>