(
&self,
request: tonic::Request<GetSandboxRequest>,
)
| 114 | } |
| 115 | |
| 116 | async fn get_sandbox( |
| 117 | &self, |
| 118 | request: tonic::Request<GetSandboxRequest>, |
| 119 | ) -> Result<Response<SandboxResponse>, Status> { |
| 120 | let name = request.into_inner().name; |
| 121 | // Return a minimal sandbox with metadata for CAS operations |
| 122 | Ok(Response::new(SandboxResponse { |
| 123 | sandbox: Some(Sandbox { |
| 124 | metadata: Some(openshell_core::proto::datamodel::v1::ObjectMeta { |
| 125 | id: format!("sb-{name}"), |
| 126 | name, |
| 127 | created_at_ms: 0, |
| 128 | labels: HashMap::new(), |
| 129 | resource_version: 1, |
| 130 | }), |
| 131 | spec: None, |
| 132 | status: None, |
| 133 | }), |
| 134 | })) |
| 135 | } |
| 136 | |
| 137 | async fn list_sandboxes( |
| 138 | &self, |
nothing calls this directly
no outgoing calls
no test coverage detected