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

Method create_sandbox

crates/openshell-driver-kubernetes/src/grpc.rs:94–107  ·  view source on GitHub ↗
(
        &self,
        request: Request<CreateSandboxRequest>,
    )

Source from the content-addressed store, hash-verified

92 }
93
94 async fn create_sandbox(
95 &self,
96 request: Request<CreateSandboxRequest>,
97 ) -> Result<Response<CreateSandboxResponse>, Status> {
98 let sandbox = request
99 .into_inner()
100 .sandbox
101 .ok_or_else(|| Status::invalid_argument("sandbox is required"))?;
102 self.driver
103 .create_sandbox(&sandbox)
104 .await
105 .map_err(|e| Status::from(openshell_core::ComputeDriverError::from(e)))?;
106 Ok(Response::new(CreateSandboxResponse {}))
107 }
108
109 async fn stop_sandbox(
110 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected