pub struct Image(pub OciDir);
Tuple Fields§
§0: OciDir
Implementations§
Source§impl Image
impl Image
pub fn new(oci_dir: &Path) -> Result<Self, WireFormatError>
pub fn open(oci_dir: &Path) -> Result<Self, WireFormatError>
pub fn blob_path(&self) -> PathBuf
pub fn put_blob<C: Compression + Any>( &self, buf: &[u8], image_manifest: &mut ImageManifest, media_type: impl PuzzleFSMediaType, ) -> Result<(Descriptor, [u8; 32], bool), WireFormatError>
pub fn open_compressed_blob<C: Compression>( &self, digest: &Digest, verity: Option<&[u8]>, ) -> Result<Box<dyn Decompressor>>
pub fn get_pfs_rootfs_verity( &self, tag: &str, ) -> Result<[u8; 32], WireFormatError>
pub fn get_pfs_rootfs( &self, tag: &str, verity: Option<&[u8]>, ) -> Result<File, WireFormatError>
pub fn get_image_manifest_fd(&self, tag: &str) -> Result<File, WireFormatError>
pub fn open_rootfs_blob( &self, tag: &str, verity: Option<&[u8]>, ) -> Result<RootfsReader, WireFormatError>
pub fn fill_from_chunk( &self, chunk: BlobRef, addl_offset: u64, buf: &mut [u8], verity_data: &Option<BTreeMap<[u8; 32], [u8; 32]>>, ) -> Result<usize, WireFormatError>
pub fn get_index(&self) -> Result<ImageIndex, WireFormatError>
pub fn get_empty_manifest(&self) -> Result<ImageManifest, WireFormatError>
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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