-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dep): update oci-distribution to oci-client
oci-client is the succeeder of oci-distribution crate. Signed-off-by: Xynnn007 <[email protected]>
- Loading branch information
Showing
9 changed files
with
39 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ | |
//! In case you want to mock sigstore interactions inside of your own code, you | ||
//! can implement the [`CosignCapabilities`] trait inside of your test suite. | ||
|
||
use std::collections::HashMap; | ||
use std::collections::BTreeMap; | ||
|
||
use async_trait::async_trait; | ||
use tracing::warn; | ||
|
@@ -146,7 +146,7 @@ pub trait CosignCapabilities { | |
/// - `signature_layers`: [`SignatureLayer`] objects containing signature information | ||
async fn push_signature( | ||
&mut self, | ||
annotations: Option<HashMap<String, String>>, | ||
annotations: Option<BTreeMap<String, String>>, | ||
auth: &Auth, | ||
target_reference: &OciReference, | ||
signature_layers: Vec<SignatureLayer>, | ||
|
@@ -356,7 +356,7 @@ TNMea7Ix/stJ5TfcLLeABLE4BNJOsQ4vnBHJ | |
let email = "[email protected]".to_string(); | ||
let issuer = "an issuer".to_string(); | ||
|
||
let mut annotations: HashMap<String, String> = HashMap::new(); | ||
let mut annotations: BTreeMap<String, String> = BTreeMap::new(); | ||
annotations.insert("key1".into(), "value1".into()); | ||
annotations.insert("key2".into(), "value2".into()); | ||
|
||
|
@@ -369,7 +369,7 @@ TNMea7Ix/stJ5TfcLLeABLE4BNJOsQ4vnBHJ | |
cert_signature.subject = cert_subj; | ||
sl.certificate_signature = Some(cert_signature); | ||
|
||
let mut extra: HashMap<String, serde_json::Value> = annotations | ||
let mut extra: BTreeMap<String, serde_json::Value> = annotations | ||
.iter() | ||
.map(|(k, v)| (k.clone(), json!(v))) | ||
.collect(); | ||
|
@@ -421,7 +421,7 @@ TNMea7Ix/stJ5TfcLLeABLE4BNJOsQ4vnBHJ | |
cert_signature.subject = cert_subj; | ||
sl.certificate_signature = Some(cert_signature); | ||
|
||
let mut extra: HashMap<String, serde_json::Value> = HashMap::new(); | ||
let mut extra: BTreeMap<String, serde_json::Value> = BTreeMap::new(); | ||
extra.insert("something extra".into(), json!("value extra")); | ||
|
||
let mut simple_signing = sl.simple_signing; | ||
|
@@ -469,7 +469,7 @@ TNMea7Ix/stJ5TfcLLeABLE4BNJOsQ4vnBHJ | |
cert_signature.subject = cert_subj; | ||
sl.certificate_signature = Some(cert_signature); | ||
|
||
let mut extra: HashMap<String, serde_json::Value> = HashMap::new(); | ||
let mut extra: BTreeMap<String, serde_json::Value> = BTreeMap::new(); | ||
extra.insert("something extra".into(), json!("value extra")); | ||
|
||
let mut simple_signing = sl.simple_signing; | ||
|
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