(imgref: &ImageReference)
| 966 | |
| 967 | #[context("Generating origin")] |
| 968 | fn 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)] |
no outgoing calls