pub struct TarBuilder {
pub explicit_uidgid: bool,
pub layer_idx: u16,
pub version: RafsVersion,
/* private fields */
}Expand description
Helper for TarballBuilder/StargzBuilder to build the filesystem tree.
Fields§
§explicit_uidgid: bool§layer_idx: u16§version: RafsVersionImplementations§
Source§impl TarBuilder
impl TarBuilder
Sourcepub fn new(explicit_uidgid: bool, layer_idx: u16, version: RafsVersion) -> Self
pub fn new(explicit_uidgid: bool, layer_idx: u16, version: RafsVersion) -> Self
Create a new instance of TarBuilder.
Sourcepub fn insert_into_tree(&mut self, tree: &mut Tree, node: Node) -> Result<()>
pub fn insert_into_tree(&mut self, tree: &mut Tree, node: Node) -> Result<()>
Insert a node into the tree, creating any missing intermediate directories.
Sourcepub fn create_directory(&mut self, target_paths: &[OsString]) -> Result<Node>
pub fn create_directory(&mut self, target_paths: &[OsString]) -> Result<Node>
Create a new node for a directory.
Sourcepub fn is_stargz_special_files(&self, path: &Path) -> bool
pub fn is_stargz_special_files(&self, path: &Path) -> bool
Check whether the path is a eStargz special file.
Auto Trait Implementations§
impl Freeze for TarBuilder
impl RefUnwindSafe for TarBuilder
impl Send for TarBuilder
impl Sync for TarBuilder
impl Unpin for TarBuilder
impl UnwindSafe for TarBuilder
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