pub struct TarUtils;Expand description
Tar processing utilities for layer extraction and offset calculation
Implementations§
Source§impl TarUtils
impl TarUtils
Sourcepub fn extract_layer_data(tar_path: &Path, layer_path: &str) -> Result<Vec<u8>>
pub fn extract_layer_data(tar_path: &Path, layer_path: &str) -> Result<Vec<u8>>
Extract layer data from tar archive
Sourcepub fn find_layer_offset(tar_path: &Path, layer_path: &str) -> Result<u64>
pub fn find_layer_offset(tar_path: &Path, layer_path: &str) -> Result<u64>
Find the offset of a layer within the tar archive
Sourcepub fn list_tar_entries(tar_path: &Path) -> Result<Vec<(String, u64)>>
pub fn list_tar_entries(tar_path: &Path) -> Result<Vec<(String, u64)>>
Get a list of all entries in the tar archive with their sizes
Sourcepub fn validate_tar_archive(tar_path: &Path) -> Result<()>
pub fn validate_tar_archive(tar_path: &Path) -> Result<()>
Validate that a tar archive is readable and properly formatted
Auto Trait Implementations§
impl Freeze for TarUtils
impl RefUnwindSafe for TarUtils
impl Send for TarUtils
impl Sync for TarUtils
impl Unpin for TarUtils
impl UnwindSafe for TarUtils
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