Skip to main content

Crate camel_component_container

Crate camel_component_container 

Source
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§

ContainerComponent
Component for creating container endpoints.
ContainerConfig
Configuration for the container component endpoint.
ContainerConsumer
Consumer for receiving Docker container events or logs.
ContainerEndpoint
Endpoint for container operations.
ContainerGlobalConfig
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.
ContainerProducer
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.