Expand description
Raw container lifecycle API DTOs.
Wire-format types shared between the daemon’s /api/v1/containers
endpoints and SDK clients. Moved out of zlayer-api so SDK crates can
depend on them without pulling in the full server stack.
Structs§
- Container
Change Entry - One row of
GET /api/v1/containers/{id}/changes(Docker compat shape). - Container
Exec Request - Exec request for running a command in a container
- Container
Exec Response - Exec response with command output
- Container
Health Info - Runtime-native health snapshot on
ContainerInfo::health. - Container
Info - Container information returned by the API
- Container
LogQuery - Query parameters for container logs.
- Container
Port Binding - One host binding inside a
ContainerPortResponseentry. - Container
Port Response - Response body for
GET /api/v1/containers/{id}/port(Docker compat shape). - Container
Prune Response - Response body for
POST /api/v1/containers/prune(Docker compat shape). - Container
Resource Limits - Resource limits for a container
- Container
Stats Response - Container resource statistics
- Container
TopQuery - Query parameters for
GET /api/v1/containers/{id}/top— Docker’sps_args=<...>query string. Defaults to the runtime’s own column set when omitted or empty. - Container
TopResponse - Response body for
GET /api/v1/containers/{id}/top(Docker compat shape). - Container
Update Request - Request body for
POST /api/v1/containers/{id}/update. - Container
Update Response - Response body for
POST /api/v1/containers/{id}/update. - Container
Update Restart Policy - Restart policy entry for
ContainerUpdateRequest. - Container
Wait Docker Error - Error envelope nested inside
ContainerWaitDockerResponse. - Container
Wait Docker Response - Docker-shaped wait response returned by
POST /api/v1/containers/{id}/wait. - Container
Wait Response - Wait response with container exit code plus optional classification fields (added in §3.12 of the SDK-fixes spec).
- Create
Container Request - Request to create and start a container
- Exec
Query - Query parameters for the exec endpoint.
- Health
Check Request - Container health check request.
- Kill
Container Request - Request body for killing (sending a signal to) a container. Matches the
Docker-compat
POST /containers/{id}/killshape. - List
Containers Query - Query parameters for listing containers
- Network
Attachment Info - Per-network attachment entry on
ContainerInfo::networks. - Network
Attachment Request - A request to attach a freshly-created container to a user-defined bridge
or overlay network, mirroring the wire-shape used by
POST /api/v1/container-networks/{id_or_name}/connect. - Rename
Container Query - Query parameters for
POST /api/v1/containers/{id}/rename— Docker’sname=<new-name>query string. - Restart
Container Request - Request body for restarting a container. Matches the Docker-compat
POST /containers/{id}/restartshape. - Stats
Query - Query parameters for container stats.
- Stop
Container Request - Request body for stopping a container. Matches the Docker-compat
POST /containers/{id}/stopshape. - Volume
Mount - Volume mount specification.
- Wait
Container Query - Query parameters for
POST /api/v1/containers/{id}/wait— Docker’scondition=query string.
Enums§
- Container
LogFormat - Wire format for
ContainerLogQuery::format. - Volume
Mount Type - Volume mount kind discriminator.