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

Method export_tar

crates/ostree-ext/src/fixture.rs:873–885  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

871
872 #[context("Exporting tar")]
873 pub fn export_tar(&self) -> Result<&'static Utf8Path> {
874 let cancellable = gio::Cancellable::NONE;
875 let (_, rev) = self.srcrepo.read_commit(self.testref(), cancellable)?;
876 let path = "exampleos-export.tar";
877 let mut outf = std::io::BufWriter::new(self.dir.create(path)?);
878 #[allow(clippy::needless_update)]
879 let options = crate::tar::ExportOptions {
880 ..Default::default()
881 };
882 crate::tar::export_commit(&self.srcrepo, rev.as_str(), &mut outf, Some(options))?;
883 outf.flush()?;
884 Ok(path.into())
885 }
886
887 /// Export the current ref as a container image.
888 /// This defaults to using chunking.

Callers 3

test_tar_import_signedFunction · 0.80
test_tar_import_exportFunction · 0.80

Calls 4

export_commitFunction · 0.85
testrefMethod · 0.80
createMethod · 0.80
intoMethod · 0.45

Tested by 3

test_tar_import_signedFunction · 0.64
test_tar_import_exportFunction · 0.64