-
Notifications
You must be signed in to change notification settings - Fork 485
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
service: Add Qiniu (kodo) Support #2640
Comments
hey @Xuanwo, I want to try this |
Have fun! |
Hi, I wrote a small program to test the compatibility with Kodo, it works without any problem. use opendal::services::S3;
use opendal::Operator;
use opendal::Result;
#[tokio::main]
async fn main() -> Result<()> {
let mut builder = S3::default();
builder.bucket("test");
builder.endpoint("http://s3.cn-east-1.qiniucs.com");
builder.access_key_id("key");
builder.secret_access_key("key");
let op: Operator = Operator::new(builder)?.finish();
write_data(op.clone()).await?;
read_data(op.clone()).await?;
Ok(())
}
async fn write_data(op: Operator) -> Result<()> {
op.write("test", "Hello, World!").await?;
Ok(())
}
async fn read_data(op: Operator) -> Result<()> {
let bs = op.read("test").await?;
println!("data: {}", String::from_utf8_lossy(&bs));
Ok(())
} |
yep, you are right, kodo is compatible with s3 service, but maybe openDAL want a service implemented by kodo native api? such as oss is s3 service compatible too, but we still develop the oss service |
Hi, @nooberfsh, as mentioned by @A-Stupid-Sun. It is possible to visit qiniu with opendal s3 service. However, OpenDAL's VISION is to access data freely. This means that in addition to the existing s3 support, we aim to be able to access the storage service through its native API so that we can utilize more features. |
By the way, are you interested in implementing native Qiniu (kodo) support in OpenDAL? @nooberfsh |
I can give it a try. |
Great, thanks a lot in advance! |
https://www.qiniu.com/products/kodo
The text was updated successfully, but these errors were encountered: