-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tu6ge
committed
Aug 30, 2024
1 parent
5105877
commit b6aa9f5
Showing
2 changed files
with
38 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use aliyun_oss_client::{types::ObjectQuery, Client, EndPoint}; | ||
|
||
async fn run() -> Result<(), aliyun_oss_client::Error> { | ||
let client = Client::from_env()?; | ||
|
||
let buckes = client.get_buckets(&EndPoint::CN_QINGDAO).await?; | ||
|
||
let objects = buckes[0].get_objects(&ObjectQuery::new(), &client).await?; | ||
|
||
let obj_info = objects[0].get_info(&client).await?; | ||
|
||
Ok(()) | ||
} | ||
|
||
pub fn main() { | ||
// run().unwrap(); | ||
} |