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

Method current_snapshot_map

crates/openshell-driver-docker/src/lib.rs:1245–1252  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1243 }
1244
1245 async fn current_snapshot_map(&self) -> Result<HashMap<String, DriverSandbox>, Status> {
1246 self.current_snapshots().await.map(|snapshots| {
1247 snapshots
1248 .into_iter()
1249 .map(|sandbox| (sandbox.id.clone(), sandbox))
1250 .collect()
1251 })
1252 }
1253
1254 async fn list_managed_container_summaries(&self) -> Result<Vec<ContainerSummary>, Status> {
1255 let filters = managed_container_label_filters(&self.config.sandbox_namespace, []);

Callers 1

poll_loopMethod · 0.80

Calls 1

current_snapshotsMethod · 0.45

Tested by

no test coverage detected