pub struct Bootstrap { /* private fields */ }Expand description
RAFS bootstrap/meta builder.
Implementations§
Source§impl Bootstrap
impl Bootstrap
Sourcepub fn build(
&mut self,
ctx: &mut BuildContext,
bootstrap_ctx: &mut BootstrapContext,
) -> Result<()>
pub fn build( &mut self, ctx: &mut BuildContext, bootstrap_ctx: &mut BootstrapContext, ) -> Result<()>
Build the final view of the RAFS filesystem meta from the hierarchy tree.
Sourcepub fn dump(
&mut self,
ctx: &mut BuildContext,
bootstrap_storage: &mut Option<ArtifactStorage>,
bootstrap_ctx: &mut BootstrapContext,
blob_table: &RafsBlobTable,
) -> Result<()>
pub fn dump( &mut self, ctx: &mut BuildContext, bootstrap_storage: &mut Option<ArtifactStorage>, bootstrap_ctx: &mut BootstrapContext, blob_table: &RafsBlobTable, ) -> Result<()>
Dump the RAFS filesystem meta information to meta blob.
Sourcepub fn load_parent_bootstrap(
ctx: &mut BuildContext,
bootstrap_mgr: &mut BootstrapManager,
blob_mgr: &mut BlobManager,
) -> Result<Tree>
pub fn load_parent_bootstrap( ctx: &mut BuildContext, bootstrap_mgr: &mut BootstrapManager, blob_mgr: &mut BlobManager, ) -> Result<Tree>
Load a parent RAFS bootstrap and return the Tree object representing the filesystem.
Auto Trait Implementations§
impl Freeze for Bootstrap
impl !RefUnwindSafe for Bootstrap
impl !Send for Bootstrap
impl !Sync for Bootstrap
impl Unpin for Bootstrap
impl !UnwindSafe for Bootstrap
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