Skip to main content

Module runtime

Module runtime 

Source
Expand description

Abstract container runtime interface

Defines the Runtime trait that can be implemented for different container runtimes (containerd, CRI-O, etc.)

Structs§

Container
Container handle
ContainerAuthContext
Auth context injected into every container so it can talk back to the host API without needing external credentials.
ContainerId
Container identifier
ContainerInspectDetails
Rich inspect details for a single container, returned by Runtime::inspect_detailed.
HealthDetail
Per-container health detail reported by Runtime::inspect_detailed.
ImageInfo
Summary information about a cached image on the host runtime.
MockRuntime
In-memory mock runtime for testing and development
NetworkAttachmentDetail
Per-network attachment reported by Runtime::inspect_detailed.
PruneResult
Result of a prune operation.
WaitOutcome
Richer wait result returned by Runtime::wait_outcome.

Enums§

ContainerState
Container state
ExecEvent
One streaming event emitted by Runtime::exec_stream.
WaitReason
Reason a container stopped running, as reported by Runtime::wait_outcome.

Traits§

Runtime
Abstract container runtime trait

Functions§

signal_name_from_exit_code
Map a signal-style exit code (128 + N) to a canonical signal name.
validate_signal
Validate a signal name for Runtime::kill_container.

Type Aliases§

ExecEventStream
Boxed async stream of ExecEvents returned by Runtime::exec_stream.