This commit is contained in:
weisd
2024-07-17 14:15:22 +08:00
parent e8685c977f
commit 73ee65e3a7
8 changed files with 160 additions and 11 deletions
+5 -1
View File
@@ -26,7 +26,7 @@ pub trait DiskAPI: Debug + Send + Sync + 'static {
file_info: &FileInfo,
dst_volume: &str,
dst_path: &str,
) -> Result<()>;
) -> Result<RenameDataResp>;
async fn make_volumes(&self, volume: Vec<&str>) -> Result<()>;
async fn make_volume(&self, volume: &str) -> Result<()>;
@@ -45,6 +45,10 @@ pub trait DiskAPI: Debug + Send + Sync + 'static {
async fn read_multiple(&self, req: ReadMultipleReq) -> Result<Vec<ReadMultipleResp>>;
}
pub struct RenameDataResp {
pub old_data_dir: String,
}
#[derive(Debug, Clone, Default)]
pub struct DeleteOptions {
pub recursive: bool,