sigstore_verification/sources/
oci.rs1use crate::api::Attestation;
2use crate::sources::{ArtifactRef, AttestationSource};
3use crate::{AttestationError, Result};
4use async_trait::async_trait;
5
6pub struct OciSource {
9 #[allow(dead_code)]
10 registry_url: String,
11 }
13
14impl OciSource {
15 pub fn new(registry_url: impl Into<String>) -> Self {
16 Self {
17 registry_url: registry_url.into(),
18 }
19 }
20}
21
22#[async_trait]
23impl AttestationSource for OciSource {
24 async fn fetch_attestations(&self, _artifact: &ArtifactRef) -> Result<Vec<Attestation>> {
25 Err(AttestationError::Verification(
31 "OCI source not yet implemented".into(),
32 ))
33 }
34
35 fn source_type(&self) -> &'static str {
36 "OCI"
37 }
38}