Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
lib/container: Expose oci_spec::image::ImageManifest publicly
Browse files Browse the repository at this point in the history
Previously we had our own internal definitions for these things,
which I didn't want to make public API.

Now that a crate exists for this and we're using it internally,
let's take the next step and expose it as part of our API.

This will allow clients (e.g. rpm-ostree) to render things more nicely.
  • Loading branch information
cgwalters committed Oct 29, 2021
1 parent b3c5295 commit 98b700e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/container/unencapsulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! This code only operates on container images that were created via
//! [`encapsulate`].
//!
//!
//! # External depenendency on container-image-proxy
//!
//! This code requires <https://github.com/cgwalters/container-image-proxy>
Expand Down Expand Up @@ -190,7 +190,7 @@ pub async fn unencapsulate_from_manifest(
return Err(anyhow!("containers-policy.json specifies a default of `insecureAcceptAnything`; refusing usage"));
}
let options = options.unwrap_or_default();
let layer = require_one_layer_blob(&manifest)?;
let layer = require_one_layer_blob(manifest)?;
event!(
Level::DEBUG,
"target blob digest:{} size: {}",
Expand Down

0 comments on commit 98b700e

Please sign in to comment.