Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support tencent cos #260

Merged
merged 8 commits into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ REQSIGN_GOOGLE_TEST=false
REQSIGN_GOOGLE_CREDENTIAL=<base64_of_credential_content>
REQSIGN_GOOGLE_CLOUD_STORAGE_SCOPE=<scope>
REQSIGN_GOOGLE_CLOUD_STORAGE_URL=<url_to_bucket>

## Tencent COS Test
REQSIGN_TENCENT_COS_TEST=on
REQSIGN_TENCENT_COS_ACCESS_KEY=<ak>
REQSIGN_TENCENT_COS_SECRET_KEY=<sk>
REQSIGN_TENCENT_COS_URL=http://<bucket>.url
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ mod huaweicloud;
pub use huaweicloud::obs::Builder as HuaweicloudObsBuilder;
pub use huaweicloud::obs::Signer as HuaweicloudObsSigner;

mod tencent;
pub use tencent::cos::Builder as TencentCosBuilder;
pub use tencent::cos::Signer as TencentCosSigner;

mod dirs;
mod hash;
mod request;
Expand Down
Loading