Skip to main content

dk_runner/executor/
container.rs

1use std::collections::HashMap;
2use std::path::Path;
3use std::time::Duration;
4use super::{Executor, StepOutput, StepStatus};
5
6pub struct ContainerExecutor;
7
8impl ContainerExecutor {
9    #[allow(clippy::new_without_default)]
10    pub fn new() -> Self { Self }
11}
12
13#[async_trait::async_trait]
14impl Executor for ContainerExecutor {
15    async fn run_command(
16        &self, _command: &str, _work_dir: &Path, _timeout: Duration, _env: &HashMap<String, String>,
17    ) -> StepOutput {
18        StepOutput {
19            status: StepStatus::Skip, stdout: String::new(),
20            stderr: "container executor not yet implemented".to_string(),
21            duration: Duration::ZERO,
22        }
23    }
24}