| tag | a69e09905fa16f11d0846584d4cd6004d8ecb6ae | |
|---|---|---|
| tagger | Xuanwo <github@xuanwo.io> | Sat Feb 04 18:05:38 2023 +0800 |
| object | 50c2608f5e481820038e5f8ad4596ef7cac6ac6e |
Release v0.26.0
| commit | 50c2608f5e481820038e5f8ad4596ef7cac6ac6e | [log] [tgz] |
|---|---|---|
| author | Xuanwo <github@xuanwo.io> | Sat Feb 04 18:05:17 2023 +0800 |
| committer | GitHub <noreply@github.com> | Sat Feb 04 18:05:17 2023 +0800 |
| tree | 41899abcca4f3ea94bc764b2278e5f55d63f8a45 | |
| parent | 75c037801c0228fd02e7589d7a68779f1bf6f9fa [diff] |
Bump to version 0.26.0 (#1274) * Bump to version 0.26.0 Signed-off-by: Xuanwo <github@xuanwo.io> * Update changelog Signed-off-by: Xuanwo <github@xuanwo.io> --------- Signed-off-by: Xuanwo <github@xuanwo.io>
Open Data Access Layer: Access data freely, painlessly, and efficiently
Access data freely
Access data painlessly
LayersAccess data efficiently
read/seek/next implementations based on servicesmetadata callsuse anyhow::Result; use futures::StreamExt; use futures::TryStreamExt; use opendal::ObjectReader; use opendal::Object; use opendal::ObjectMetadata; use opendal::ObjectMode; use opendal::Operator; use opendal::services; #[tokio::main] async fn main() -> Result<()> { // Init Operator let op = Operator::create(services::Fs::default())?.finish(); // Create object handler. let o = op.object("/tmp/test_file"); // Write data info object; o.write("Hello, World!").await?; // Read data from object; let bs = o.read().await?; // Read range from object; let bs = o.range_read(1..=11).await?; // Get object's path let name = o.name(); let path = o.path(); // Fetch more meta about object. let meta = o.metadata().await?; let mode = meta.mode(); let length = meta.content_length(); let content_md5 = meta.content_md5(); let etag = meta.etag(); // Delete object. o.delete().await?; // List dir object. let o = op.object("test_dir/"); let mut os = o.list().await?; while let Some(entry) = os.try_next().await? { let path = entry.path(); let mode = entry.mode().await?; } Ok(()) }
More examples could be found at Documentation.
Check out the CONTRIBUTING.md guide for more details on getting started with contributing to this project.
Submit issues for bug report or asking questions in discussion.