pub struct ContainerConfig {
pub runtime: String,
pub default_image: String,
pub extra_flags: Vec<String>,
pub auto_remove: bool,
}Expand description
Configuration for the CLI-based container command executor.
This is the fallback executor that shells out to docker run for each
execution. For production use, prefer [DockerExecutor] (behind the
docker feature) which uses persistent containers.
§Example
use adk_code::ContainerConfig;
let config = ContainerConfig::default();
assert_eq!(config.runtime, "docker");Fields§
§runtime: StringContainer runtime binary (e.g., "docker", "podman").
default_image: StringDefault container image when not overridden per-request.
extra_flags: Vec<String>Extra flags passed to the container runtime run command.
auto_remove: boolWhether to automatically remove the container after execution.
Trait Implementations§
Source§impl Clone for ContainerConfig
impl Clone for ContainerConfig
Source§fn clone(&self) -> ContainerConfig
fn clone(&self) -> ContainerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContainerConfig
impl Debug for ContainerConfig
Auto Trait Implementations§
impl Freeze for ContainerConfig
impl RefUnwindSafe for ContainerConfig
impl Send for ContainerConfig
impl Sync for ContainerConfig
impl Unpin for ContainerConfig
impl UnsafeUnpin for ContainerConfig
impl UnwindSafe for ContainerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more