Struct DirectoryRepo
pub struct DirectoryRepo { /* private fields */ }Expand description
A local filesystem-backed content addressed image store.
The on-disk structure follows CNCF Distribution-style layout without the global prefix:
blobs/sha256/<2-char prefix>/<hex digest>/datarepositories/for registry metadata managed byDirectoryOciStore
Implementations§
Trait Implementations§
§impl LyquidImageRepo for DirectoryRepo
impl LyquidImageRepo for DirectoryRepo
fn retrieve<'life0, 'async_trait>(
&'life0 self,
image_digest: B256,
) -> Pin<Box<dyn Future<Output = Result<LazyLyquidPack, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put<'life0, 'async_trait>(
&'life0 self,
image: LyquidPack,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn contains<'life0, 'async_trait>(
&'life0 self,
image_digest: B256,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for DirectoryRepo
impl RefUnwindSafe for DirectoryRepo
impl Send for DirectoryRepo
impl Sync for DirectoryRepo
impl Unpin for DirectoryRepo
impl UnsafeUnpin for DirectoryRepo
impl UnwindSafe for DirectoryRepo
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