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

Function sandbox_record

crates/openshell-server/src/compute/mod.rs:2381–2394  ·  view source on GitHub ↗
(id: &str, name: &str, phase: SandboxPhase)

Source from the content-addressed store, hash-verified

2379 }
2380
2381 fn sandbox_record(id: &str, name: &str, phase: SandboxPhase) -> Sandbox {
2382 let mut sandbox = Sandbox {
2383 metadata: Some(openshell_core::proto::datamodel::v1::ObjectMeta {
2384 id: id.to_string(),
2385 name: name.to_string(),
2386 created_at_ms: 1_000_000,
2387 labels: HashMap::new(),
2388 resource_version: 0,
2389 }),
2390 ..Default::default()
2391 };
2392 sandbox.set_phase(phase as i32);
2393 sandbox
2394 }
2395
2396 fn ssh_session_record(id: &str, sandbox_id: &str) -> SshSession {
2397 SshSession {

Calls 1

set_phaseMethod · 0.80

Tested by

no test coverage detected