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§
- Commit
Container Request - Body for the commit-container endpoint.
- Commit
Container Response - Response body for the commit-container endpoint.
- Image
History Entry Dto - One row of an image’s history. Mirror of
zlayer_agent::runtime::ImageHistoryEntry. Lives here so SDK clients can deserialize without depending on the server-side agent crate. - Image
Info Dto - Serializable wrapper for
zlayer_agent::runtime::ImageInfoso we can attachToSchemahere (the underlying type inzlayer-agentcan’t depend onutoipa). - Image
Search Result Dto - One result returned by the search-images endpoint.
- Import
Image Request - Body for the import-image endpoint.
- Import
Image Response - Response body for the import-image endpoint.
- Load
Images Query - Query parameters for the load-images endpoint.
- Prune
Result Dto - Serializable wrapper for
zlayer_agent::runtime::PruneResult. - Pull
Image Query - Query parameters for the pull-image handler.
- 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.
- Save
Images Query - Query parameters for the save-images endpoint. Names are repeatable —
?names=alpine&names=nginx:1.21produces a multi-image archive. - Search
Images Query - Query parameters for the search-images 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).
Enums§
- Pull
Progress Dto - One progress event emitted by the streaming pull endpoint.