Skip to main content

Module images

Module images 

Source
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§

ImageInfoDto
Serializable wrapper for zlayer_agent::runtime::ImageInfo so we can attach ToSchema here (the underlying type in zlayer-agent can’t depend on utoipa).
PruneResultDto
Serializable wrapper for zlayer_agent::runtime::PruneResult.
PullImageRequest
Request body for the pull-image handler. Blocking pull of an OCI image.
PullImageResponse
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.
RemoveImageQuery
Query parameters for the remove-image handler.
TagImageRequest
Request body for the tag-image handler. Matches Docker-compat docker tag semantics: create a new reference (target) pointing at an already-cached image (source).