(
&self,
request: Request<CreateSandboxRequest>,
)
| 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, |
nothing calls this directly
no outgoing calls
no test coverage detected