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

Method create_sandbox

crates/openshell-server/src/test_support.rs:247–261  ·  view source on GitHub ↗
(
        &self,
        request: Request<CreateSandboxRequest>,
    )

Source from the content-addressed store, hash-verified

245 }
246
247 async fn create_sandbox(
248 &self,
249 request: Request<CreateSandboxRequest>,
250 ) -> Result<Response<CreateSandboxResponse>, Status> {
251 let sandbox = request.into_inner().sandbox;
252 self.with_state(|state| {
253 if let Some(sandbox) = sandbox.as_ref() {
254 state.sandboxes.insert(sandbox.id.clone(), sandbox.clone());
255 }
256 state
257 .calls
258 .push(FakeComputeDriverCall::CreateSandbox { sandbox });
259 });
260 Ok(Response::new(CreateSandboxResponse {}))
261 }
262
263 async fn stop_sandbox(
264 &self,

Callers

nothing calls this directly

Calls 2

with_stateMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected