pub trait AttestationSource: Send + Sync {
// Required methods
fn fetch_attestations<'life0, 'life1, 'async_trait>(
&'life0 self,
artifact: &'life1 ArtifactRef,
) -> Pin<Box<dyn Future<Output = Result<Vec<Attestation>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn source_type(&self) -> &'static str;
}
Expand description
Trait for different sources of attestations
Required Methods§
Sourcefn fetch_attestations<'life0, 'life1, 'async_trait>(
&'life0 self,
artifact: &'life1 ArtifactRef,
) -> Pin<Box<dyn Future<Output = Result<Vec<Attestation>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_attestations<'life0, 'life1, 'async_trait>(
&'life0 self,
artifact: &'life1 ArtifactRef,
) -> Pin<Box<dyn Future<Output = Result<Vec<Attestation>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch attestations for a given artifact
Sourcefn source_type(&self) -> &'static str
fn source_type(&self) -> &'static str
Get the source type name for logging