-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add custom_queries to command PresignGet (#262) * fmt * s3: Bump hmac to 0.12, sha2 to 0.10 and minidom to 0.14 (#265) * cargo: Bump `hmac` to `0.12 * cargo: Update `sha2` to `0.10` * cargo: bump `minidom` to `0.14` * removed use of `NewMac` trait Co-authored-by: Drazen Urch <[email protected]> * Fix merge * awscreds 0.29.0 * aws-region 0.24 * awsregion 0.24.1 * awscreds 0.29.1 * s3 0.31.0 Co-authored-by: Incomplete <[email protected]> Co-authored-by: Luca Quartesan <[email protected]>
- Loading branch information
1 parent
1b37a48
commit 32a5a69
Showing
21 changed files
with
448 additions
and
263 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug)] | ||
pub enum CredentialsError { | ||
#[error("Not an AWS instance")] | ||
NotEc2, | ||
#[error("Config not found")] | ||
ConfigNotFound, | ||
#[error("Missing aws_access_key_id section in config")] | ||
ConfigMissingAccessKeyId, | ||
#[error("Missing aws_access_key_id section in config")] | ||
ConfigMissingSecretKey, | ||
#[error("Neither {0}, nor {1} exists in the environment")] | ||
MissingEnvVar(String, String), | ||
#[cfg(feature = "http-credentials")] | ||
#[error("attohttpc: {0}")] | ||
Atto(#[from] attohttpc::Error), | ||
#[error("ini: {0}")] | ||
Ini(#[from] ini::Error), | ||
#[error("serde_xml: {0}")] | ||
SerdeXml(#[from] serde_xml_rs::Error), | ||
#[error("url parse: {0}")] | ||
UrlParse(#[from] url::ParseError), | ||
#[error("io: {0}")] | ||
Io(#[from] std::io::Error), | ||
#[error("env var: {0}")] | ||
Env(#[from] std::env::VarError), | ||
#[error("Invalid home dir")] | ||
HomeDir, | ||
} |
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ extern crate serde_derive; | |
|
||
mod credentials; | ||
pub use credentials::*; | ||
pub mod error; |
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,4 @@ | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug)] | ||
pub enum RegionError {} |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
|
||
mod region; | ||
pub use region::*; | ||
pub mod error; |
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
Oops, something went wrong.