Skip to main content

opal/
engine.rs

1use crate::pipeline::VolumeMount;
2use std::path::Path;
3
4pub struct EngineCommandContext<'a> {
5    pub workdir: &'a Path,
6    pub container_root: &'a Path,
7    pub container_script: &'a Path,
8    pub container_name: &'a str,
9    pub image: &'a str,
10    pub image_platform: Option<&'a str>,
11    pub image_user: Option<&'a str>,
12    pub image_entrypoint: &'a [String],
13    pub mounts: &'a [VolumeMount],
14    pub env_vars: &'a [(String, String)],
15    pub network: Option<&'a str>,
16    pub preserve_runtime_objects: bool,
17    pub arch: Option<&'a str>,
18    pub privileged: bool,
19    pub cap_add: &'a [String],
20    pub cap_drop: &'a [String],
21    pub cpus: Option<&'a str>,
22    pub memory: Option<&'a str>,
23    pub dns: Option<&'a str>,
24}