Skip to main content

OciDistributionStore

Trait OciDistributionStore 

pub trait OciDistributionStore: Send + Sync {
    // Required methods
    fn get_blob<'life0, 'life1, 'async_trait>(
        &'life0 self,
        digest: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<StoredBlob, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_manifest<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        repository: &'life1 str,
        reference: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<StoredManifest, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn put_manifest<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        repository: &'life1 str,
        reference: &'life2 str,
        manifest_bytes: &'life3 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<StoredManifest, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn start_blob_upload<'life0, 'life1, 'async_trait>(
        &'life0 self,
        repository: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<OciBlobUploadSession, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn append_blob_upload<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        repository: &'life1 str,
        upload_id: &'life2 str,
        chunk: &'life3 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<OciBlobUploadSession, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn finalize_blob_upload<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        repository: &'life1 str,
        upload_id: &'life2 str,
        digest: &'life3 str,
        final_chunk: Option<&'life4 [u8]>,
    ) -> Pin<Box<dyn Future<Output = Result<B256, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
}

Required Methods§

fn get_blob<'life0, 'life1, 'async_trait>( &'life0 self, digest: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<StoredBlob, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

fn get_manifest<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, repository: &'life1 str, reference: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<StoredManifest, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

fn put_manifest<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, repository: &'life1 str, reference: &'life2 str, manifest_bytes: &'life3 [u8], ) -> Pin<Box<dyn Future<Output = Result<StoredManifest, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

fn start_blob_upload<'life0, 'life1, 'async_trait>( &'life0 self, repository: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<OciBlobUploadSession, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

fn append_blob_upload<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, repository: &'life1 str, upload_id: &'life2 str, chunk: &'life3 [u8], ) -> Pin<Box<dyn Future<Output = Result<OciBlobUploadSession, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

fn finalize_blob_upload<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, repository: &'life1 str, upload_id: &'life2 str, digest: &'life3 str, final_chunk: Option<&'life4 [u8]>, ) -> Pin<Box<dyn Future<Output = Result<B256, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Implementors§