diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-02 12:18:43 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-02 12:18:43 +0100 |
commit | 3b363b2a7803564231e001c215ab427c99c9435b (patch) | |
tree | 01322398a509142babfb60415315da4e0d4c6527 /src/login | |
parent | 553ea25f1854706b60ce6f087545968533ef6140 (diff) | |
download | aerogramme-3b363b2a7803564231e001c215ab427c99c9435b.tar.gz aerogramme-3b363b2a7803564231e001c215ab427c99c9435b.zip |
implement equality+cmp for builders based on url
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/mod.rs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/login/mod.rs b/src/login/mod.rs index afade28..f4bf4d2 100644 --- a/src/login/mod.rs +++ b/src/login/mod.rs @@ -39,7 +39,7 @@ pub type ArcLoginProvider = Arc<dyn LoginProvider + Send + Sync>; #[derive(Clone, Debug)] pub struct Credentials { /// The storage credentials are used to authenticate access to the underlying storage (S3, K2V) - pub storage: Engine, + pub storage: Builders, /// The cryptographic keys are used to encrypt and decrypt data stored in S3 and K2V pub keys: CryptoKeys, } @@ -109,14 +109,11 @@ impl Region { impl Credentials { - pub fn k2v_client(&self) -> Result<RowStore> { - self.storage.row.row_store() + pub fn row_client(&self) -> Result<RowStore> { + Ok(self.storage.row_store()?) } - pub fn s3_client(&self) -> Result<S3Client> { - self.storage.s3_client() - } - pub fn bucket(&self) -> &str { - self.storage.bucket.as_str() + pub fn blob_client(&self) -> Result<BlobStore> { + Ok(self.storage.blob_store()?) } } |