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

Method create_sandbox

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected