Skip to main content

Module volumes

Module volumes 

Source
Expand description

Volume management API DTOs.

Wire-format types shared between the daemon’s /api/v1/volumes endpoints and SDK clients. Moved out of zlayer-api so SDK crates can depend on them without pulling in the full server stack.

Structs§

CreateVolumeRequest
Request body for POST /api/v1/volumes.
DeleteVolumeQuery
Query parameters for the delete endpoint.
VolumeInfo
Full volume response shape used by the list, inspect, and create endpoints.
VolumeSummary
Legacy response shape kept for backwards compatibility with older SDK consumers that deserialize strictly. New consumers should use VolumeInfo. list_volumes now returns VolumeInfo which is a strict superset of the fields in VolumeSummary.