Struct ostree_ext::container::store::PreparedImport
source · [−]pub struct PreparedImport {
pub manifest_digest: String,
pub manifest: ImageManifest,
pub config: ImageConfiguration,
pub previous_manifest_digest: Option<String>,
pub previous_imageid: Option<String>,
pub ostree_layers: Vec<ManifestLayerState>,
pub ostree_commit_layer: ManifestLayerState,
pub layers: Vec<ManifestLayerState>,
}Expand description
Information about which layers need to be downloaded.
Fields
manifest_digest: StringThe manifest digest that was found
manifest: ImageManifestThe deserialized manifest.
config: ImageConfigurationThe deserialized configuration.
previous_manifest_digest: Option<String>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: ManifestLayerStateThe layer for the ostree commit.
layers: Vec<ManifestLayerState>Any further non-ostree (derived) layers.
Implementations
sourceimpl 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 ostree split object layers, the commit layer, and any non-ostree layers.
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PreparedImport
impl Send for PreparedImport
impl Sync for PreparedImport
impl Unpin for PreparedImport
impl UnwindSafe for PreparedImport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more