pub struct ImageInfo {
pub name: String,
pub manifest_digest: Digest,
pub is_container: bool,
pub architecture: String,
pub os: String,
pub created: Option<String>,
pub layer_count: usize,
pub referrer_count: usize,
}Expand description
Summary information about a stored OCI image. FIXME change this to just have a struct of manifest+config JSON plus a few helper methods. We shouldn’t be re-parsing created timestamp here callers should directly access that etc
Fields§
§name: StringThe tag/name of the image
manifest_digest: DigestThe manifest digest
is_container: boolWhether this is a container image (vs artifact)
architecture: StringArchitecture (empty for artifacts)
os: StringOS (empty for artifacts)
created: Option<String>Creation timestamp
layer_count: usizeNumber of layers/blobs
referrer_count: usizeNumber of OCI referrers (signatures, attestations, etc.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImageInfo
impl RefUnwindSafe for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
impl Unpin for ImageInfo
impl UnsafeUnpin for ImageInfo
impl UnwindSafe for ImageInfo
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
Source§impl<S> CanonJsonSerialize for Swhere
S: Serialize,
impl<S> CanonJsonSerialize for Swhere
S: Serialize,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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