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

Function origin_from_imageref

crates/lib/src/deploy.rs:968–977  ·  view source on GitHub ↗
(imgref: &ImageReference)

Source from the content-addressed store, hash-verified

966
967#[context("Generating origin")]
968fn origin_from_imageref(imgref: &ImageReference) -> Result<glib::KeyFile> {
969 let origin = glib::KeyFile::new();
970 let imgref = OstreeImageReference::from(imgref.clone());
971 origin.set_string(
972 "origin",
973 ostree_container::deploy::ORIGIN_CONTAINER,
974 imgref.to_string().as_str(),
975 );
976 Ok(origin)
977}
978
979/// The source of data for staging a new deployment
980#[derive(Debug)]

Callers 3

stageFunction · 0.85
switch_origin_inplaceFunction · 0.85
test_switch_inplaceFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_switch_inplaceFunction · 0.68