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

Function pulling_image_from_message

crates/openshell-driver-vm/src/driver.rs:5108–5114  ·  view source on GitHub ↗
(message: &str)

Source from the content-addressed store, hash-verified

5106}
5107
5108fn pulling_image_from_message(message: &str) -> Option<String> {
5109 let image = message
5110 .strip_prefix("Pulling image ")
5111 .map(str::trim)
5112 .map(|value| value.trim_matches('"'))?;
5113 (!image.is_empty()).then(|| image.to_string())
5114}
5115
5116fn pulled_label(event: &PlatformEvent) -> String {
5117 event

Callers 1

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected