2 releases

0.0.4 Jul 1, 2024
0.0.3 Jun 24, 2024
0.0.2 Jun 22, 2024
0.0.1 Jun 18, 2024
0.0.0 Jun 10, 2024

#1863 in Web programming

Download history 179/week @ 2024-06-07 134/week @ 2024-06-14 299/week @ 2024-06-21 178/week @ 2024-06-28 20/week @ 2024-07-05 1/week @ 2024-07-12 1/week @ 2024-07-19 1/week @ 2024-07-26

278 downloads per month

MIT/Apache

43KB
863 lines

AliOss  

ci Latest Version downloads

Usage

let oss_client = crate::Client::from_env()?;
let buckets = oss_client.list_buckets().await?;
println!("buckets: {:?}", buckets);

env config

ALI_OSS_ACCESS_KEY_ID=xxx
ALI_OSS_ACCESS_KEY_SECRET=xxx
ALI_OSS_BUCKET=xxx
ALI_OSS_LOCATION=oss-cn-hangzhou
ALI_OSS_PATH=/
ALI_OSS_INTERNAL=false

Methods:

  • list_buckets()

  • put_bucket()

  • get_bucket_info()

  • get_bucket_location()

  • get_bucket_stat()

  • delete_bucket()

  • list_objects(prefix, delimiter)

  • put_object(object_name, byptes)

  • put_object_stream(object_name, stream)

  • get_object(object_name)

  • delete_object(object_name)

  • copy_object(dest_object_name, source_object_name)

  • append_object(object_name, byptes, position)

  • head_object(object_name)

  • get_object_meta(object_name)

  • is_object_exist(object_name)

  • sign_object(object_name, duration_time)

  • put_symlink(symlink_object_name, target_object_name)

  • get_symlink(symlink_object_name)

Dependencies

~10–21MB
~408K SLoC