Skip to main content

Module models

Module models 

Source
Expand description

Data models for Docker runtime configuration and communication.

Ports the Python models.py plus configuration types from deployment.py.

Structs§

BashAction
Action to execute in a bash session.
BashObservation
Observation/result from executing a bash action.
CloseSessionRequest
Request to close a bash session.
CloseSessionResponse
Response after closing a bash session.
ContainerSpec
Specification for creating a container (image, resources, mounts, …).
CreateSessionRequest
Request to create a new bash session.
CreateSessionResponse
Response after creating a bash session.
DockerConfig
Top-level Docker configuration (mirrors Python DockerConfig).
ExceptionTransfer
Serialized exception for transfer over HTTP.
IsAliveResponse
Health check response.
PortMapping
A single port mapping.
ReadFileRequest
Request to read a file from the container.
ReadFileResponse
Response with file contents.
ToolResult
Generic result from a Docker tool handler operation.
VolumeMount
A single volume mount specification.
WriteFileRequest
Request to write a file in the container.
WriteFileResponse
Response after writing a file.

Enums§

CheckMode
How to handle non-zero exit codes.
ContainerStatus
Status of a Docker container.
RuntimeType
Whether to interact with a local or remote Docker daemon.