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

Method publish_prepared_cache_hit

crates/openshell-driver-vm/src/driver.rs:2498–2516  ·  view source on GitHub ↗
(
        &self,
        sandbox_id: &str,
        image_ref: &str,
        image_source: &str,
        image_identity: &str,
    )

Source from the content-addressed store, hash-verified

2496 }
2497
2498 fn publish_prepared_cache_hit(
2499 &self,
2500 sandbox_id: &str,
2501 image_ref: &str,
2502 image_source: &str,
2503 image_identity: &str,
2504 ) {
2505 self.publish_vm_progress(
2506 sandbox_id,
2507 "CacheHit",
2508 format!("Using cached prepared VM image disk for \"{image_ref}\""),
2509 HashMap::from([
2510 ("image_ref".to_string(), image_ref.to_string()),
2511 ("image_source".to_string(), image_source.to_string()),
2512 ("cache_hit".to_string(), "true".to_string()),
2513 ("image_identity".to_string(), image_identity.to_string()),
2514 ]),
2515 );
2516 }
2517
2518 fn publish_prepared_cache_miss(
2519 &self,

Calls 1

publish_vm_progressMethod · 0.80

Tested by

no test coverage detected