This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new c5e5be13 feat(core): remove `scan` from raw API (#2262)
c5e5be13 is described below
commit c5e5be13f1eb1887055a38fc48e96f0d5d25495b
Author: Suyan <[email protected]>
AuthorDate: Tue May 16 20:57:31 2023 +0800
feat(core): remove `scan` from raw API (#2262)
remove scan from raw api
Signed-off-by: suyanhanx <[email protected]>
---
core/src/raw/operation.rs | 6 ------
core/src/types/scheme.rs | 2 +-
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/core/src/raw/operation.rs b/core/src/raw/operation.rs
index 0600ce26..a7b81c62 100644
--- a/core/src/raw/operation.rs
+++ b/core/src/raw/operation.rs
@@ -41,8 +41,6 @@ pub enum Operation {
Delete,
/// Operation for [`crate::raw::Accessor::list`]
List,
- /// Operation for [`crate::raw::Accessor::scan`]
- Scan,
/// Operation for [`crate::raw::Accessor::batch`]
Batch,
/// Operation for [`crate::raw::Accessor::presign`]
@@ -63,8 +61,6 @@ pub enum Operation {
BlockingDelete,
/// Operation for [`crate::raw::Accessor::blocking_list`]
BlockingList,
- /// Operation for [`crate::raw::Accessor::blocking_scan`]
- BlockingScan,
}
impl Operation {
@@ -92,7 +88,6 @@ impl From<Operation> for &'static str {
Operation::Stat => "stat",
Operation::Delete => "delete",
Operation::List => "list",
- Operation::Scan => "scan",
Operation::Presign => "presign",
Operation::Batch => "batch",
Operation::BlockingCreateDir => "blocking_create_dir",
@@ -103,7 +98,6 @@ impl From<Operation> for &'static str {
Operation::BlockingStat => "blocking_stat",
Operation::BlockingDelete => "blocking_delete",
Operation::BlockingList => "blocking_list",
- Operation::BlockingScan => "blocking_scan",
}
}
}
diff --git a/core/src/types/scheme.rs b/core/src/types/scheme.rs
index 8fac5113..27c4fefa 100644
--- a/core/src/types/scheme.rs
+++ b/core/src/types/scheme.rs
@@ -79,7 +79,7 @@ pub enum Scheme {
Sled,
/// [Supabase][crate::services::Supabase]: Supabase storage service
Supabase,
- /// [Vercel Artifacts][crate::services::vercel_artifacts]: Vercel
Artifacts service, as known as Vercel Remote Caching.
+ /// [Vercel Artifacts][crate::services::VercelArtifacts]: Vercel Artifacts
service, as known as Vercel Remote Caching.
VercelArtifacts,
/// [wasabi][crate::services::Wasabi]: Wasabi service
Wasabi,