tonbo-io / fusio

Fusio provides file operations on multiple storages across various async runtimes.
Apache License 2.0
202 stars 8 forks source link

Support Google Cloud Storage #80

Open brancz opened 4 weeks ago

brancz commented 4 weeks ago

Currently, only s3 is supported.

Xuanwo commented 2 weeks ago

The following pseudocode should work:

use opendal::Operator;
use opendal::services::Gcs;
use fusio_opendal::OpendalFs;

async fn main() -> {
    let op = Operator::new(Gcs::default().bucket("test"))?.finish();
    let ofs = OpendalFs::from(op);

    // Now, use ofs as fusio::Fs!
    let f = ofs.open("path", OpenOptions::default()).await?;
    ...
}
ethe commented 2 weeks ago

Yes it is a possible way at the moment, we will support this natively in this month