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

Method new_remote_driver

crates/openshell-server/src/compute/mod.rs:401–424  ·  view source on GitHub ↗
(
        endpoint: AcquiredRemoteDriverEndpoint,
        store: Arc<Store>,
        sandbox_index: SandboxIndex,
        sandbox_watch_bus: SandboxWatchBus,
        tracing_log_bus: TracingLogBus,
  

Source from the content-addressed store, hash-verified

399 }
400
401 pub(crate) async fn new_remote_driver(
402 endpoint: AcquiredRemoteDriverEndpoint,
403 store: Arc<Store>,
404 sandbox_index: SandboxIndex,
405 sandbox_watch_bus: SandboxWatchBus,
406 tracing_log_bus: TracingLogBus,
407 supervisor_sessions: Arc<SupervisorSessionRegistry>,
408 ) -> Result<Self, ComputeError> {
409 let driver: SharedComputeDriver = Arc::new(RemoteComputeDriver::new(endpoint.channel));
410 Self::from_driver(
411 endpoint.name,
412 driver,
413 None,
414 None,
415 endpoint.driver_process,
416 store,
417 sandbox_index,
418 sandbox_watch_bus,
419 tracing_log_bus,
420 supervisor_sessions,
421 Vec::new(),
422 )
423 .await
424 }
425
426 pub async fn new_podman(
427 config: PodmanComputeConfig,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected