-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Merge branch 'release/4.19.1'
- Loading branch information
Showing
41 changed files
with
378 additions
and
338 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
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
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,38 @@ | ||
mod delete; | ||
mod get; | ||
mod set; | ||
|
||
use clap::Subcommand; | ||
use cosmian_kms_client::KmsClient; | ||
pub use delete::DeleteAttributesAction; | ||
pub use get::GetAttributesAction; | ||
pub use set::{SetAttributesAction, SetOrDeleteAttributes, VendorAttributeCli}; | ||
|
||
use crate::error::result::CliResult; | ||
|
||
/// Get/Set/Delete the KMIP object attributes. | ||
#[derive(Subcommand)] | ||
pub enum AttributesCommands { | ||
Get(GetAttributesAction), | ||
Set(SetAttributesAction), | ||
Delete(DeleteAttributesAction), | ||
} | ||
|
||
impl AttributesCommands { | ||
/// Process the Attributes commands action. | ||
/// | ||
/// # Arguments | ||
/// | ||
/// * `kms_rest_client` - The KMS client instance used to communicate with the KMS server. | ||
/// | ||
/// # Errors | ||
/// | ||
/// Returns an error if the version query fails or if there is an issue writing to the console. | ||
pub async fn process(&self, client_connector: &KmsClient) -> CliResult<()> { | ||
match self { | ||
Self::Get(action) => action.process(client_connector).await, | ||
Self::Set(action) => action.process(client_connector).await, | ||
Self::Delete(action) => action.process(client_connector).await, | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
pub mod access; | ||
pub mod attributes; | ||
pub mod certificates; | ||
pub mod console; | ||
#[cfg(not(feature = "fips"))] | ||
|
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.