Expand description
Camel Container Component
This component provides integration with Docker containers, allowing Camel routes to manage container lifecycle (create, start, stop, remove) and consume container events.
Structs§
- Container
Component - Component for creating container endpoints.
- Container
Config - Configuration for the container component endpoint.
- Container
Consumer - Consumer for receiving Docker container events or logs.
- Container
Endpoint - Endpoint for container operations.
- Container
Global Config - Global configuration for Container component. Plain Rust, no serde, with Default impl and builder methods. These are the fallback defaults when URI params are not set.
- Container
Producer - Producer for executing container operations.
Constants§
- HEADER_
ACTION - Header key for specifying the container action (e.g., “list”, “run”, “start”, “stop”, “remove”).
- HEADER_
ACTION_ RESULT - Header key for the result status of a container operation (e.g., “success”).
- HEADER_
CONTAINER_ ID - Header key for specifying or receiving the container ID.
- HEADER_
CONTAINER_ NAME - Header key for specifying the container name for “run” operations.
- HEADER_
IMAGE - Header key for specifying the container image to use for “run” operations.
- HEADER_
LOG_ STREAM - Header key for the log stream type (stdout or stderr).
- HEADER_
LOG_ TIMESTAMP - Header key for the log timestamp.
Functions§
- cleanup_
tracked_ containers - Cleans up all tracked containers. Call this on application shutdown.