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

Method get_driver_sandbox

crates/openshell-server/src/compute/mod.rs:1491–1508  ·  view source on GitHub ↗
(
        &self,
        sandbox_id: &str,
        sandbox_name: &str,
    )

Source from the content-addressed store, hash-verified

1489 }
1490
1491 async fn get_driver_sandbox(
1492 &self,
1493 sandbox_id: &str,
1494 sandbox_name: &str,
1495 ) -> Result<Option<DriverSandbox>, String> {
1496 match self
1497 .driver
1498 .get_sandbox(Request::new(GetSandboxRequest {
1499 sandbox_id: sandbox_id.to_string(),
1500 sandbox_name: sandbox_name.to_string(),
1501 }))
1502 .await
1503 {
1504 Ok(response) => Ok(response.into_inner().sandbox),
1505 Err(status) if status.code() == Code::NotFound => Ok(None),
1506 Err(status) => Err(status.to_string()),
1507 }
1508 }
1509}
1510
1511/// Connect to an unmanaged remote compute driver that is already listening on

Callers 2

prune_missing_sandboxMethod · 0.80

Calls 2

codeMethod · 0.80
get_sandboxMethod · 0.45

Tested by

no test coverage detected