Skip to main content

BlobStoreService

Trait BlobStoreService 

Source
pub trait BlobStoreService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn stat_blob<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StatBlobRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<StatBlobResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_blob<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetBlobRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetBlobResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn put_blob<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PutBlobRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<PutBlobResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with BlobStoreServiceServer.

Required Methods§

Source

fn stat_blob<'life0, 'async_trait>( &'life0 self, request: Request<StatBlobRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<StatBlobResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stat checks if a [BlobMeta] for a given blob exists.

Source

fn get_blob<'life0, 'async_trait>( &'life0 self, request: Request<GetBlobRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetBlobResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get retrieves a [BlobMeta] for a given blob digest.

Source

fn put_blob<'life0, 'async_trait>( &'life0 self, request: Request<PutBlobRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<PutBlobResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Put persists a [BlobMeta] for the given blob digest.

Implementors§

Source§

impl<T> BlobStoreService for GRPCBlobStoreWrapper<T>
where T: BlobStore + 'static,