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

Function extract_image_size

crates/openshell-driver-kubernetes/src/driver.rs:1021–1027  ·  view source on GitHub ↗
(message: &str)

Source from the content-addressed store, hash-verified

1019}
1020
1021fn extract_image_size(message: &str) -> Option<u64> {
1022 let size_prefix = "Image size: ";
1023 let start = message.find(size_prefix)? + size_prefix.len();
1024 let rest = &message[start..];
1025 let end = rest.find(' ')?;
1026 rest[..end].parse().ok()
1027}
1028
1029/// Path where the supervisor binary is mounted inside the agent container.
1030const SUPERVISOR_MOUNT_PATH: &str = openshell_core::driver_utils::SUPERVISOR_CONTAINER_DIR;

Callers 1

pulled_image_labelFunction · 0.85

Calls 2

lenMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected