Skip to main content

Module containers

Module containers 

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

ContainerChangeEntry
One row of GET /api/v1/containers/{id}/changes (Docker compat shape).
ContainerExecRequest
Exec request for running a command in a container
ContainerExecResponse
Exec response with command output
ContainerHealthInfo
Runtime-native health snapshot on ContainerInfo::health.
ContainerInfo
Container information returned by the API
ContainerLogQuery
Query parameters for container logs.
ContainerPortBinding
One host binding inside a ContainerPortResponse entry.
ContainerPortResponse
Response body for GET /api/v1/containers/{id}/port (Docker compat shape).
ContainerPruneResponse
Response body for POST /api/v1/containers/prune (Docker compat shape).
ContainerResourceLimits
Resource limits for a container
ContainerStatsResponse
Container resource statistics
ContainerTopQuery
Query parameters for GET /api/v1/containers/{id}/top — Docker’s ps_args=<...> query string. Defaults to the runtime’s own column set when omitted or empty.
ContainerTopResponse
Response body for GET /api/v1/containers/{id}/top (Docker compat shape).
ContainerUpdateRequest
Request body for POST /api/v1/containers/{id}/update.
ContainerUpdateResponse
Response body for POST /api/v1/containers/{id}/update.
ContainerUpdateRestartPolicy
Restart policy entry for ContainerUpdateRequest.
ContainerWaitDockerError
Error envelope nested inside ContainerWaitDockerResponse.
ContainerWaitDockerResponse
Docker-shaped wait response returned by POST /api/v1/containers/{id}/wait.
ContainerWaitResponse
Wait response with container exit code plus optional classification fields (added in §3.12 of the SDK-fixes spec).
CreateContainerRequest
Request to create and start a container
ExecQuery
Query parameters for the exec endpoint.
HealthCheckRequest
Container health check request.
KillContainerRequest
Request body for killing (sending a signal to) a container. Matches the Docker-compat POST /containers/{id}/kill shape.
ListContainersQuery
Query parameters for listing containers
NetworkAttachmentInfo
Per-network attachment entry on ContainerInfo::networks.
NetworkAttachmentRequest
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.
RenameContainerQuery
Query parameters for POST /api/v1/containers/{id}/rename — Docker’s name=<new-name> query string.
RestartContainerRequest
Request body for restarting a container. Matches the Docker-compat POST /containers/{id}/restart shape.
StatsQuery
Query parameters for container stats.
StopContainerRequest
Request body for stopping a container. Matches the Docker-compat POST /containers/{id}/stop shape.
VolumeMount
Volume mount specification.
WaitContainerQuery
Query parameters for POST /api/v1/containers/{id}/wait — Docker’s condition= query string.

Enums§

ContainerLogFormat
Wire format for ContainerLogQuery::format.
VolumeMountType
Volume mount kind discriminator.