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§

CommitContainerRequest
Body for the commit-container endpoint.
CommitContainerResponse
Response body for the commit-container endpoint.
ImageHistoryEntryDto
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.
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).
ImageSearchResultDto
One result returned by the search-images endpoint.
ImportImageRequest
Body for the import-image endpoint.
ImportImageResponse
Response body for the import-image endpoint.
LoadImagesQuery
Query parameters for the load-images endpoint.
PruneResultDto
Serializable wrapper for zlayer_agent::runtime::PruneResult.
PullImageQuery
Query parameters for the pull-image handler.
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.
SaveImagesQuery
Query parameters for the save-images endpoint. Names are repeatable — ?names=alpine&names=nginx:1.21 produces a multi-image archive.
SearchImagesQuery
Query parameters for the search-images 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).

Enums§

PullProgressDto
One progress event emitted by the streaming pull endpoint.