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

Method remove_sandbox

crates/openshell-server/src/sandbox_index.rs:47–51  ·  view source on GitHub ↗
(&self, sandbox_id: &str)

Source from the content-addressed store, hash-verified

45 }
46
47 pub fn remove_sandbox(&self, sandbox_id: &str) {
48 let mut inner = self.inner.write().expect("sandbox index lock poisoned");
49 inner.sandbox_name_to_id.retain(|_, v| v != sandbox_id);
50 inner.agent_pod_to_id.retain(|_, v| v != sandbox_id);
51 }
52
53 #[must_use]
54 pub fn sandbox_id_for_sandbox_name(&self, name: &str) -> Option<String> {

Callers 2

create_sandboxMethod · 0.80
apply_deleted_lockedMethod · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected