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

Method current_snapshots

crates/openshell-driver-vm/src/driver.rs:1138–1146  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1136 }
1137
1138 pub async fn current_snapshots(&self) -> Vec<Sandbox> {
1139 let registry = self.registry.lock().await;
1140 let mut snapshots = registry
1141 .values()
1142 .map(|record| record.snapshot.clone())
1143 .collect::<Vec<_>>();
1144 snapshots.sort_by(|left, right| left.name.cmp(&right.name));
1145 snapshots
1146 }
1147
1148 async fn restore_persisted_sandboxes(&self) {
1149 let state_root = sandboxes_root_dir(&self.config.state_dir);

Callers 2

list_sandboxesMethod · 0.45
watch_sandboxesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected