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

Function pulled_label

crates/openshell-driver-vm/src/driver.rs:5116–5125  ·  view source on GitHub ↗
(event: &PlatformEvent)

Source from the content-addressed store, hash-verified

5114}
5115
5116fn pulled_label(event: &PlatformEvent) -> String {
5117 event
5118 .metadata
5119 .get("image_size_bytes")
5120 .and_then(|value| value.parse::<u64>().ok())
5121 .map_or_else(
5122 || "Image pulled".to_string(),
5123 |bytes| format!("Image pulled ({})", format_bytes(bytes)),
5124 )
5125}
5126
5127fn pulling_layer_detail(metadata: &HashMap<String, String>) -> Option<String> {
5128 let index = metadata.get("layer_index")?;

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected