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

Function parse_registry_reference

crates/openshell-driver-vm/src/driver.rs:3253–3259  ·  view source on GitHub ↗
(image_ref: &str)

Source from the content-addressed store, hash-verified

3251
3252#[allow(clippy::result_large_err)]
3253fn parse_registry_reference(image_ref: &str) -> Result<Reference, Status> {
3254 Reference::try_from(image_ref).map_err(|err| {
3255 Status::failed_precondition(format!(
3256 "invalid vm sandbox image reference '{image_ref}': {err}"
3257 ))
3258 })
3259}
3260
3261/// Try to connect to a local container engine (Docker or Podman).
3262///

Calls

no outgoing calls

Tested by

no test coverage detected