| 2 | |
| 3 | #[async_trait] |
| 4 | pub trait DataStoreDriver { |
| 5 | async fn list_objects(&self, file_path: Option<&str>) -> Result<Vec<String>, String>; |
| 6 | async fn fetch_object( |
| 7 | &self, |
| 8 | file_name: &str, |
| 9 | file_path: Option<&str>, |
| 10 | ) -> Result<String, String>; |
| 11 | async fn upload_object( |
| 12 | &self, |
| 13 | file_name: &str, |
| 14 | contents: &str, |
| 15 | file_path: Option<&str>, |
| 16 | ) -> Result<usize, String>; |
| 17 | async fn fetch_compressed_object( |
| 18 | &self, |
| 19 | file_name: &str, |
| 20 | file_path: Option<&str>, |
| 21 | ) -> Result<(Vec<u8>, usize), String>; |
| 22 | async fn upload_compressed_object( |
| 23 | &self, |
| 24 | file_name: &str, |
| 25 | contents: &Vec<u8>, |
| 26 | file_path: Option<&str>, |
| 27 | ) -> Result<usize, String>; |
| 28 | } |
nothing calls this directly
no outgoing calls
no test coverage detected