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

Function digested_pullspec

crates/lib/src/utils.rs:198–201  ·  view source on GitHub ↗
(image: &str, digest: &str)

Source from the content-addressed store, hash-verified

196/// If the image already has a digest, it will be replaced.
197#[allow(dead_code)]
198pub(crate) fn digested_pullspec(image: &str, digest: &str) -> String {
199 let image = image.rsplit_once('@').map(|v| v.0).unwrap_or(image);
200 format!("{image}@{digest}")
201}
202
203#[derive(Debug)]
204pub enum EfiError {

Callers 1

install_containerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected