pub struct ImageArchive {
pub manifest: Manifest,
pub config: Config,
pub layer_map: HashMap<String, Rc<RefCell<FileTree>>>,
}Fields§
§manifest: Manifest§config: Config§layer_map: HashMap<String, Rc<RefCell<FileTree>>>Implementations§
Source§impl ImageArchive
impl ImageArchive
pub fn new_from_url(img_url: &str) -> Result<Self>
pub fn new_from_file<P: AsRef<Path>>(tar_file: P) -> Result<Self>
pub fn new_from_reader<R: Read>(obj: R) -> Result<Self>
pub fn merged_tree(&self) -> Rc<RefCell<FileTree>>
Trait Implementations§
Source§impl Debug for ImageArchive
impl Debug for ImageArchive
Source§impl Default for ImageArchive
impl Default for ImageArchive
Source§fn default() -> ImageArchive
fn default() -> ImageArchive
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ImageArchive
impl !RefUnwindSafe for ImageArchive
impl !Send for ImageArchive
impl !Sync for ImageArchive
impl Unpin for ImageArchive
impl !UnwindSafe for ImageArchive
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more