Skip to content

Commit

Permalink
Service: adding ocios support
Browse files Browse the repository at this point in the history
currently support get, list

Signed-off-by: Wei Zhang <[email protected]>
  • Loading branch information
zwpaper committed Feb 17, 2024
1 parent a64e9a5 commit 9167084
Show file tree
Hide file tree
Showing 10 changed files with 1,021 additions and 4 deletions.
103 changes: 100 additions & 3 deletions core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ default = [
"services-ipmfs",
"services-memory",
"services-obs",
"services-ocios",
"services-oss",
"services-s3",
"services-webdav",
Expand Down Expand Up @@ -176,6 +177,11 @@ services-obs = [
"reqsign?/services-huaweicloud",
"reqsign?/reqwest_request",
]
services-ocios = [
"dep:reqsign",
"reqsign?/services-oracle",
"reqsign?/reqwest_request",
]
services-onedrive = []
services-oss = [
"dep:reqsign",
Expand Down Expand Up @@ -279,7 +285,7 @@ sha1 = { version = "0.10.6", optional = true }
sha2 = { version = "0.10", optional = true }

# For http based services.
reqsign = { version = "0.14.7", default-features = false, optional = true }
reqsign = { git = "https://github.com/xuanwo/reqsign.git", default-features = false, optional = true }

# for services-atomic-server
atomic_lib = { version = "0.34.5", optional = true }
Expand Down
5 changes: 5 additions & 0 deletions core/src/services/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ pub use onedrive::Onedrive;
#[cfg(feature = "services-onedrive")]
pub use onedrive::OnedriveConfig;

#[cfg(feature = "services-ocios")]
mod ocios;
#[cfg(feature = "services-ocios")]
pub use ocios::OciOs;

#[cfg(feature = "services-gdrive")]
mod gdrive;
#[cfg(feature = "services-gdrive")]
Expand Down
Loading

0 comments on commit 9167084

Please sign in to comment.