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§

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
ContainerResourceLimits
Resource limits for a container
ContainerStatsResponse
Container resource statistics
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.
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.

Enums§

VolumeMountType
Volume mount kind discriminator.