list_bucket done

This commit is contained in:
weisd
2024-07-25 16:57:43 +08:00
parent b53056fe09
commit 449f8633cf
9 changed files with 182 additions and 13 deletions
+1
View File
@@ -426,6 +426,7 @@ pub struct ObjectInfo {
#[async_trait::async_trait]
pub trait StorageAPI {
async fn make_bucket(&self, bucket: &str, opts: &MakeBucketOptions) -> Result<()>;
async fn list_bucket(&self, opts: &BucketOptions) -> Result<Vec<BucketInfo>>;
async fn get_bucket_info(&self, bucket: &str, opts: &BucketOptions) -> Result<BucketInfo>;
async fn get_object_info(&self, bucket: &str, object: &str, opts: &ObjectOptions) -> Result<ObjectInfo>;
async fn get_object_reader(