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

Function write_digest_file

crates/ostree-ext/src/cli.rs:926–932  ·  view source on GitHub ↗
(digestfile: Option<Utf8PathBuf>, digest: &str)

Source from the content-addressed store, hash-verified

924}
925
926fn write_digest_file(digestfile: Option<Utf8PathBuf>, digest: &str) -> Result<()> {
927 if let Some(digestfile) = digestfile.as_deref() {
928 let rootfs = Dir::open_ambient_dir("/", cap_std::ambient_authority())?;
929 rootfs.write(digestfile.as_str().trim_start_matches('/'), digest)?;
930 }
931 Ok(())
932}
933
934/// Output the container image history
935async fn container_history(repo: &ostree::Repo, imgref: &ImageReference) -> Result<()> {

Callers 1

container_storeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected