-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add S3/GCP/Azure async stores (untested)
- Loading branch information
Showing
9 changed files
with
77 additions
and
4 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
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
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
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,18 @@ | ||
//! Amazon S3 stores. | ||
use crate::{object_store_impl, storage::StorageError}; | ||
|
||
/// An Amazon S3 store. | ||
#[derive(Debug)] | ||
pub struct AsyncAmazonS3Store { | ||
object_store: object_store::aws::AmazonS3, | ||
} | ||
|
||
impl AsyncAmazonS3Store { | ||
/// Create a new amazon S3 store. | ||
pub fn new(object_store: object_store::aws::AmazonS3) -> Self { | ||
Self { object_store } | ||
} | ||
} | ||
|
||
object_store_impl!(AsyncAmazonS3Store, object_store); |
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,18 @@ | ||
//! Google Cloud stores. | ||
use crate::{object_store_impl, storage::StorageError}; | ||
|
||
/// A Google Cloud Storage store. | ||
#[derive(Debug)] | ||
pub struct AsyncGoogleCloudStore { | ||
object_store: object_store::gcp::GoogleCloudStorage, | ||
} | ||
|
||
impl AsyncGoogleCloudStore { | ||
/// Create a new amazon S3 store. | ||
pub fn new(object_store: object_store::gcp::GoogleCloudStorage) -> Self { | ||
Self { object_store } | ||
} | ||
} | ||
|
||
object_store_impl!(AsyncGoogleCloudStore, object_store); |
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,18 @@ | ||
//! Azure blob storage stores. | ||
use crate::{object_store_impl, storage::StorageError}; | ||
|
||
/// A Microsoft Azure store. | ||
#[derive(Debug)] | ||
pub struct AsyncMicrosoftAzureStore { | ||
object_store: object_store::azure::MicrosoftAzure, | ||
} | ||
|
||
impl AsyncMicrosoftAzureStore { | ||
/// Create a new amazon S3 store. | ||
pub fn new(object_store: object_store::azure::MicrosoftAzure) -> Self { | ||
Self { object_store } | ||
} | ||
} | ||
|
||
object_store_impl!(AsyncMicrosoftAzureStore, object_store); |