pub struct OciInspectReply {
pub manifest: String,
pub config: String,
pub referrers: Vec<String>,
pub composefs_erofs: Option<String>,
pub composefs_boot_erofs: Option<String>,
}Expand description
Reply with the manifest, config and referrers of a single OCI image.
Fields§
§manifest: StringThe raw manifest JSON as stored, as a UTF-8 string.
config: StringThe raw config JSON as stored, as a UTF-8 string.
referrers: Vec<String>Digests of the OCI referrers (signatures, attestations, etc.).
composefs_erofs: Option<String>Hex fs-verity ID of the linked composefs EROFS image, if any.
composefs_boot_erofs: Option<String>Hex fs-verity ID of the linked bootable composefs EROFS image, if any.
Present when the image was pulled with bootable support; bootc and
other GC-aware callers use this to keep the derived boot EROFS object
alive alongside the primary image.
Implementations§
Source§impl OciInspectReply
impl OciInspectReply
Sourcepub fn from_image<ObjectID: FsVerityHashValue>(
repo: &Repository<ObjectID>,
img: &OciImage<ObjectID>,
) -> Result<Self>
pub fn from_image<ObjectID: FsVerityHashValue>( repo: &Repository<ObjectID>, img: &OciImage<ObjectID>, ) -> Result<Self>
Build an inspect reply from a resolved image, reading its manifest, config and referrers from the repository.
Trait Implementations§
Source§impl Clone for OciInspectReply
impl Clone for OciInspectReply
Source§fn clone(&self) -> OciInspectReply
fn clone(&self) -> OciInspectReply
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OciInspectReply
impl Debug for OciInspectReply
Source§impl<'de> Deserialize<'de> for OciInspectReply
impl<'de> Deserialize<'de> for OciInspectReply
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for OciInspectReply
impl Serialize for OciInspectReply
Auto Trait Implementations§
impl Freeze for OciInspectReply
impl RefUnwindSafe for OciInspectReply
impl Send for OciInspectReply
impl Sync for OciInspectReply
impl Unpin for OciInspectReply
impl UnsafeUnpin for OciInspectReply
impl UnwindSafe for OciInspectReply
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<S> CanonJsonSerialize for Swhere
S: Serialize,
impl<S> CanonJsonSerialize for Swhere
S: Serialize,
§fn to_canon_json_writer<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
fn to_canon_json_writer<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
Serialize the given data structure as JSON into the I/O stream.
§fn to_canon_json_vec(&self) -> Result<Vec<u8>, Error>
fn to_canon_json_vec(&self) -> Result<Vec<u8>, Error>
Serialize the given data structure as a JSON byte vector.
§fn to_canon_json_string(&self) -> Result<String, Error>
fn to_canon_json_string(&self) -> Result<String, Error>
Serialize the given data structure as a String.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more