-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: bump zenoh version * chore: update branch
- Loading branch information
Showing
7 changed files
with
71 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: fmt | ||
name: fmt | ||
entry: cargo fmt -- --config "unstable_features=true,imports_granularity=Crate,group_imports=StdExternalCrate" | ||
language: system | ||
types: [rust] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -12,27 +12,29 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
|
||
use std::collections::HashMap; | ||
use std::fmt; | ||
use std::{collections::HashMap, fmt}; | ||
|
||
use crate::config::TlsClientConfig; | ||
use aws_config::Region; | ||
use aws_sdk_s3::config::Credentials; | ||
use aws_sdk_s3::operation::create_bucket::CreateBucketOutput; | ||
use aws_sdk_s3::operation::delete_object::DeleteObjectOutput; | ||
use aws_sdk_s3::operation::delete_objects::DeleteObjectsOutput; | ||
use aws_sdk_s3::operation::get_object::GetObjectOutput; | ||
use aws_sdk_s3::operation::head_object::HeadObjectOutput; | ||
use aws_sdk_s3::operation::put_object::PutObjectOutput; | ||
use aws_sdk_s3::primitives::ByteStream; | ||
use aws_sdk_s3::types::{ | ||
BucketLocationConstraint, CreateBucketConfiguration, Delete, Object, ObjectIdentifier, | ||
use aws_sdk_s3::{ | ||
config::Credentials, | ||
operation::{ | ||
create_bucket::CreateBucketOutput, delete_object::DeleteObjectOutput, | ||
delete_objects::DeleteObjectsOutput, get_object::GetObjectOutput, | ||
head_object::HeadObjectOutput, put_object::PutObjectOutput, | ||
}, | ||
primitives::ByteStream, | ||
types::{ | ||
BucketLocationConstraint, CreateBucketConfiguration, Delete, Object, ObjectIdentifier, | ||
}, | ||
Client, | ||
}; | ||
use aws_sdk_s3::Client; | ||
use aws_smithy_runtime::client::http::hyper_014::HyperClientBuilder; | ||
use zenoh::internal::zerror; | ||
use zenoh::internal::Value; | ||
use zenoh::Result as ZResult; | ||
use zenoh::{ | ||
internal::{zerror, Value}, | ||
Result as ZResult, | ||
}; | ||
|
||
use crate::config::TlsClientConfig; | ||
|
||
/// Client to communicate with the S3 storage. | ||
pub(crate) struct S3Client { | ||
|
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 |
---|---|---|
|
@@ -12,18 +12,16 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
|
||
use async_rustls::rustls::{ClientConfig, OwnedTrustAnchor, RootCertStore}; | ||
use std::{fs::File, io::BufReader}; | ||
|
||
use async_rustls::rustls::{ClientConfig, OwnedTrustAnchor, RootCertStore}; | ||
use aws_sdk_s3::config::Credentials; | ||
use hyper::client::HttpConnector; | ||
use hyper_rustls::HttpsConnector; | ||
use rustls_pki_types::CertificateDer; | ||
use serde_json::{Map, Value}; | ||
use std::{fs::File, io::BufReader}; | ||
use webpki::TrustAnchor; | ||
use zenoh::internal::zerror; | ||
use zenoh::key_expr::OwnedKeyExpr; | ||
use zenoh::Result as ZResult; | ||
use zenoh::{internal::zerror, key_expr::OwnedKeyExpr, Result as ZResult}; | ||
use zenoh_backend_traits::config::{PrivacyGetResult, PrivacyTransparentGet, StorageConfig}; | ||
|
||
// Properties used by the Backend | ||
|
@@ -366,8 +364,7 @@ impl TlsClientConfig { | |
} | ||
|
||
pub fn base64_decode(data: &str) -> ZResult<Vec<u8>> { | ||
use base64::engine::general_purpose; | ||
use base64::Engine; | ||
use base64::{engine::general_purpose, Engine}; | ||
Ok(general_purpose::STANDARD | ||
.decode(data) | ||
.map_err(|e| zerror!("Unable to perform base64 decoding: {e:?}"))?) | ||
|
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