pub struct ImageParser { /* private fields */ }Implementations§
Source§impl ImageParser
impl ImageParser
pub fn new(output: OutputManager) -> Self
pub fn set_large_layer_threshold(&mut self, threshold: u64)
pub async fn parse_tar_file(&mut self, tar_path: &Path) -> Result<ImageInfo>
Sourcepub async fn validate_layer_data(
&self,
tar_path: &Path,
layer: &LayerInfo,
) -> Result<bool>
pub async fn validate_layer_data( &self, tar_path: &Path, layer: &LayerInfo, ) -> Result<bool>
Validate that a layer’s data matches its expected digest
Sourcepub fn debug_layer_mapping(
&self,
manifest_layers: &[String],
parsed_layers: &[LayerInfo],
)
pub fn debug_layer_mapping( &self, manifest_layers: &[String], parsed_layers: &[LayerInfo], )
Debug function to show detailed layer-to-digest mapping analysis
Sourcepub fn print_podman_format_digests(&self, image_info: &ImageInfo)
pub fn print_podman_format_digests(&self, image_info: &ImageInfo)
Print layer digests in the same format as Podman’s inspect command
Auto Trait Implementations§
impl Freeze for ImageParser
impl RefUnwindSafe for ImageParser
impl Send for ImageParser
impl Sync for ImageParser
impl Unpin for ImageParser
impl UnwindSafe for ImageParser
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