-
Notifications
You must be signed in to change notification settings - Fork 512
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump to version 0.19.0 Signed-off-by: Xuanwo <[email protected]> * Add upgrade Signed-off-by: Xuanwo <[email protected]> * Fix oss Signed-off-by: Xuanwo <[email protected]> * Fix build Signed-off-by: Xuanwo <[email protected]> * Fix docs Signed-off-by: Xuanwo <[email protected]> * Add docs Signed-off-by: Xuanwo <[email protected]> Signed-off-by: Xuanwo <[email protected]>
- Loading branch information
Showing
14 changed files
with
105 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Use OSS as backend | ||
|
||
This page provides some examples for using Aliyun OSS as backend. | ||
|
||
We can run this example via: | ||
|
||
```shell | ||
cargo run --example oss | ||
``` | ||
|
||
## Example | ||
|
||
### Via Environment Variables | ||
|
||
Available environment variables: | ||
|
||
- `OPENDAL_OSS_ROOT`: root path, default: / | ||
- `OPENDAL_OSS_BUCKET`: bukcet name, required. | ||
- `OPENDAL_OSS_ENDPOINT`: endpoint of oss service | ||
- `OPENDAL_OSS_ACCESS_KEY_ID`: access key id of oss service, could be auto detected. | ||
- `OPENDAL_OSS_ACCESS_KEY_SECRET`: secret access key of oss service, could be auto detected. | ||
|
||
```rust | ||
use anyhow::Result; | ||
use opendal::Operator; | ||
use opendal::Scheme; | ||
|
||
#[tokio::main] | ||
async fn main() -> Result<()> { | ||
// init operator from env vars | ||
let _op = Operator::from_env(Scheme::Oss)?; | ||
} | ||
``` | ||
|
||
### Via Builder | ||
|
||
```rust | ||
{{#include ../../examples/oss.rs:15:}} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ed90d02
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for opendal ready!
✅ Preview
https://opendal-pbk58qleu-databend.vercel.app
https://opendal-git-refstagsv0190.vercel.app
Built with commit ed90d02.
This pull request is being automatically deployed with vercel-action