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

Method get_sandbox

crates/openshell-cli/tests/provider_commands_integration.rs:116–135  ·  view source on GitHub ↗
(
        &self,
        request: tonic::Request<GetSandboxRequest>,
    )

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected