aboutsummaryrefslogblamecommitdiff
path: root/src/storage/garage.rs
blob: 8276f70aab296f2f3fb907d7298ad8550c98a8eb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                      
                             
                          






                                      
 

                                        

                         
 
 

                        

 


                                                                                               

                         
                                                                                   

                         
 
                                                                                 
                         
 
     
                                                                             


                         
                                                                                     
                         
 
     
                                                                                              
                         
 
     
                                                                                   

                         
                                                                             

                         
 
 
use crate::storage::*;

#[derive(Clone, Debug, Hash)]
pub struct GarageBuilder {
    pub region: String,
    pub s3_endpoint: String,
    pub k2v_endpoint: String,
    pub aws_access_key_id: String,
    pub aws_secret_access_key: String,
    pub bucket: String,
}

impl IBuilder for GarageBuilder {
    fn build(&self) -> Box<dyn IStore> {
        unimplemented!();
    }
}

pub struct GarageStore {
    dummy: String,
}

#[async_trait]
impl IStore for GarageStore {
    async fn row_fetch<'a>(&self, select: &Selector<'a>) -> Result<Vec<RowVal>, StorageError> {
        unimplemented!();
    }
    async fn row_rm<'a>(&self, select: &Selector<'a>) -> Result<(), StorageError> {
        unimplemented!();
    }

    async fn row_insert(&self, values: Vec<RowVal>) -> Result<(), StorageError> {
        unimplemented!();

    }
    async fn row_poll(&self, value: RowRef) -> Result<RowVal, StorageError> {
        unimplemented!();
    }

    async fn blob_fetch(&self, blob_ref: &BlobRef) -> Result<BlobVal, StorageError> {
        unimplemented!();

    }
    async fn blob_copy(&self, src: &BlobRef, dst: &BlobRef) -> Result<BlobVal, StorageError> {
        unimplemented!();

    }
    async fn blob_list(&self, prefix: &str) -> Result<Vec<BlobRef>, StorageError> {
        unimplemented!();
    }
    async fn blob_rm(&self, blob_ref: &BlobRef) -> Result<(), StorageError> {
        unimplemented!();
    }
}