pub struct ContainerRunMeta {Show 13 fields
pub name: String,
pub kind: String,
pub synthetic: bool,
pub image: String,
pub command: Vec<String>,
pub args: Vec<String>,
pub work_dir: String,
pub params: Vec<ParamRef>,
pub binary_artifact: Option<ArtifactRef>,
pub input_artifacts: Vec<ArtifactRef>,
pub output_artifacts: Vec<ArtifactRef>,
pub host_paths: Vec<String>,
pub result_path: Option<String>,
}Expand description
Purpose-built introspection of one #[container], derived from the
same Template::build() emit uses (so it never drifts), but
expressed in the runner’s vocabulary instead of Argo’s. Emitted as
JSON by the binary when CARGO_ATHENA_DESCRIBE=<name> is set;
consumed by cargo athena container run to realize the spec under
docker/podman locally. Also the basis for a future
cargo athena container describe.
Fields§
§name: StringArgo template name (<crate>-<fn>).
kind: String"container", "workflow", or "other".
synthetic: boolathena-synthesized template (an if/else wrapper or arm) —
workflow ls hides these unless --include-synthetic.
image: StringResolved container image.
command: Vec<String>The injected bootstrap command + args, verbatim — run as-is so the local execution path is byte-identical to the pod’s.
args: Vec<String>§work_dir: StringMount path of the pod-scoped scratch dir (the emptyDir, e.g.
/athena); bind a host temp dir here to read result_path back.
params: Vec<ParamRef>Input parameters and the env var each is delivered through.
binary_artifact: Option<ArtifactRef>The binary tarball artifact (always present for a container).
input_artifacts: Vec<ArtifactRef>load_artifact! input ports (excludes the binary tarball).
output_artifacts: Vec<ArtifactRef>save_artifact! output ports.
host_paths: Vec<String>host! paths (mounted at the same path in-pod; bind 1:1 locally).
result_path: Option<String>File the body writes its serialized return to
(outputs.parameters.return); read it back from the bind mount.
Trait Implementations§
Source§impl Clone for ContainerRunMeta
impl Clone for ContainerRunMeta
Source§fn clone(&self) -> ContainerRunMeta
fn clone(&self) -> ContainerRunMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more