pub struct PreparedImport {
pub manifest_digest: Digest,
pub manifest: ImageManifest,
pub config: ImageConfiguration,
pub previous_state: Option<Box<LayeredImageState>>,
pub previous_manifest_digest: Option<Digest>,
pub previous_imageid: Option<String>,
pub ostree_layers: Vec<ManifestLayerState>,
pub ostree_commit_layer: Option<ManifestLayerState>,
pub layers: Vec<ManifestLayerState>,
pub verify_text: Option<String>,
proxy_img: OpenedImage,
}Expand description
Information about which layers need to be downloaded.
Fields§
§manifest_digest: DigestThe manifest digest that was found
manifest: ImageManifestThe deserialized manifest.
config: ImageConfigurationThe deserialized configuration.
previous_state: Option<Box<LayeredImageState>>The previous manifest
previous_manifest_digest: Option<Digest>The previously stored manifest digest.
previous_imageid: Option<String>The previously stored image ID.
ostree_layers: Vec<ManifestLayerState>The layers containing split objects
ostree_commit_layer: Option<ManifestLayerState>The layer for the ostree commit.
layers: Vec<ManifestLayerState>Any further non-ostree (derived) layers.
verify_text: Option<String>OSTree remote signature verification text, if enabled.
proxy_img: OpenedImageOur open image reference
Implementations§
Source§impl PreparedImport
impl PreparedImport
Sourcepub fn all_layers(&self) -> impl Iterator<Item = &ManifestLayerState>
pub fn all_layers(&self) -> impl Iterator<Item = &ManifestLayerState>
Iterate over all layers; the commit layer, the ostree split object layers, and any non-ostree layers.
Sourcepub fn deprecated_warning(&self) -> Option<&'static str>
pub fn deprecated_warning(&self) -> Option<&'static str>
If this image is using any deprecated features, return a message saying so.
Sourcepub fn layers_with_history(
&self,
) -> impl Iterator<Item = Result<(&ManifestLayerState, &History)>>
pub fn layers_with_history( &self, ) -> impl Iterator<Item = Result<(&ManifestLayerState, &History)>>
Iterate over all layers paired with their history entry. An error will be returned if the history does not cover all entries.
Sourcepub fn layers_to_fetch(
&self,
) -> impl Iterator<Item = Result<(&ManifestLayerState, &str)>>
pub fn layers_to_fetch( &self, ) -> impl Iterator<Item = Result<(&ManifestLayerState, &str)>>
Iterate over all layers that are not present, along with their history description.
Sourcepub(crate) fn format_layer_status(&self) -> Option<String>
pub(crate) fn format_layer_status(&self) -> Option<String>
Common helper to format a string for the status
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreparedImport
impl RefUnwindSafe for PreparedImport
impl Send for PreparedImport
impl Sync for PreparedImport
impl Unpin for PreparedImport
impl UnwindSafe for PreparedImport
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
§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>
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>
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§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more