MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / required_engine_from_driver

Function required_engine_from_driver

e2e/rust/src/harness/container.rs:201–207  ·  view source on GitHub ↗
(driver: Option<&str>)

Source from the content-addressed store, hash-verified

199}
200
201fn required_engine_from_driver(driver: Option<&str>) -> Option<String> {
202 match normalized_env(driver).as_deref() {
203 Some("docker") => Some("docker".to_string()),
204 Some("podman") => Some("podman".to_string()),
205 _ => None,
206 }
207}
208
209trait ContainerEngineProbe {
210 fn command_exists(&self, command: &str) -> bool;

Callers 1

resolve_container_engineFunction · 0.85

Calls 1

normalized_envFunction · 0.85

Tested by

no test coverage detected