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

Method new_podman

crates/openshell-server/src/compute/mod.rs:426–452  ·  view source on GitHub ↗
(
        config: PodmanComputeConfig,
        store: Arc<Store>,
        sandbox_index: SandboxIndex,
        sandbox_watch_bus: SandboxWatchBus,
        tracing_log_bus: TracingLogBus,
        super

Source from the content-addressed store, hash-verified

424 }
425
426 pub async fn new_podman(
427 config: PodmanComputeConfig,
428 store: Arc<Store>,
429 sandbox_index: SandboxIndex,
430 sandbox_watch_bus: SandboxWatchBus,
431 tracing_log_bus: TracingLogBus,
432 supervisor_sessions: Arc<SupervisorSessionRegistry>,
433 ) -> Result<Self, ComputeError> {
434 let driver = PodmanComputeDriver::new(config)
435 .await
436 .map_err(|err| ComputeError::Message(err.to_string()))?;
437 let driver: SharedComputeDriver = Arc::new(PodmanDriverService::new(driver));
438 Self::from_driver(
439 ComputeDriverKind::Podman.as_str().to_string(),
440 driver,
441 None,
442 None,
443 None,
444 store,
445 sandbox_index,
446 sandbox_watch_bus,
447 tracing_log_bus,
448 supervisor_sessions,
449 Vec::new(),
450 )
451 .await
452 }
453
454 #[must_use]
455 pub fn default_image(&self) -> &str {

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected