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
- Container
Auth Context - Auth context injected into every container so it can talk back to the host API without needing external credentials.
- Container
Id - Container identifier
- Container
Inspect Details - Rich inspect details for a single container, returned by
Runtime::inspect_detailed. - Health
Detail - Per-container health detail reported by
Runtime::inspect_detailed. - Image
Info - Summary information about a cached image on the host runtime.
- Mock
Runtime - In-memory mock runtime for testing and development
- Network
Attachment Detail - Per-network attachment reported by
Runtime::inspect_detailed. - Prune
Result - Result of a prune operation.
- Wait
Outcome - Richer wait result returned by
Runtime::wait_outcome.
Enums§
- Container
State - Container state
- Exec
Event - One streaming event emitted by
Runtime::exec_stream. - Wait
Reason - 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§
- Exec
Event Stream - Boxed async stream of
ExecEvents returned byRuntime::exec_stream.