Expand description
Image management API DTOs.
Wire-format types shared between the daemon’s /api/v1/images and
/api/v1/system/prune endpoints and SDK clients. Moved out of
zlayer-api so SDK crates can depend on them without pulling in the
full server stack.
Structs§
- Image
Info Dto - Serializable wrapper for
zlayer_agent::runtime::ImageInfoso we can attachToSchemahere (the underlying type inzlayer-agentcan’t depend onutoipa). - Prune
Result Dto - Serializable wrapper for
zlayer_agent::runtime::PruneResult. - Pull
Image Request - Request body for the pull-image handler. Blocking pull of an OCI image.
- Pull
Image Response - Response body for the pull-image handler. Reports the pulled reference
and, when the backend exposes it via
list_images, the resolved digest and on-disk size. - Remove
Image Query - Query parameters for the remove-image handler.
- TagImage
Request - Request body for the tag-image handler. Matches Docker-compat
docker tagsemantics: create a new reference (target) pointing at an already-cached image (source).