Skip to content

Commit

Permalink
feat(services): add pcloud support (apache#3892)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoslo authored Jan 2, 2024
1 parent 5e49661 commit d444c48
Show file tree
Hide file tree
Showing 12 changed files with 1,240 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,9 @@ OPENDAL_UPYUN_PASSWORD=<password>
# chainsafe
OPENDAL_CHAINSAFE_ROOT=/path/to/dir
OPENDAL_CHAINSAFE_BUCKET_ID=<bucket_id>
OPENDAL_CHAINSAFE_API_KEY=<api_key>
OPENDAL_CHAINSAFE_API_KEY=<api_key>
# pcloud
OPENDAL_PCLOUD_ROOT=/path/to/dir
OPENDAL_PCLOUD_ENDPOINT=<endpoint>
OPENDAL_PCLOUD_USERNAME=<username>
OPENDAL_PCLOUD_PASSWORD=<password>
1 change: 1 addition & 0 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ services-b2 = []
services-seafile = []
services-upyun = ["dep:hmac", "dep:sha1"]
services-chainsafe = []
services-pcloud = []
services-cacache = ["dep:cacache"]
services-cloudflare-kv = []
services-cos = [
Expand Down
7 changes: 7 additions & 0 deletions core/src/services/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,3 +338,10 @@ mod chainsafe;
pub use chainsafe::Chainsafe;
#[cfg(feature = "services-chainsafe")]
pub use chainsafe::ChainsafeConfig;

#[cfg(feature = "services-pcloud")]
mod pcloud;
#[cfg(feature = "services-pcloud")]
pub use pcloud::Pcloud;
#[cfg(feature = "services-pcloud")]
pub use pcloud::PcloudConfig;
Loading

0 comments on commit d444c48

Please sign in to comment.