MCPcopy Create free account
hub / github.com/bootc-dev/bootc / image_digest

Function image_digest

crates/tests-integration/src/runvm.rs:34–38  ·  view source on GitHub ↗
(sh: &Shell, cimage: &str)

Source from the content-addressed store, hash-verified

32}
33
34fn image_digest(sh: &Shell, cimage: &str) -> Result<String> {
35 let key = "{{ .Digest }}";
36 let r = cmd!(sh, "podman inspect --type image --format {key} {cimage}").read()?;
37 Ok(r)
38}
39
40fn builder_from_image(sh: &Shell, cimage: &str) -> Result<String> {
41 let mut inspect: serde_json::Value =

Callers 1

run_bibFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected