AttestationSource

Trait AttestationSource 

Source
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§

Source

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

Source

fn source_type(&self) -> &'static str

Get the source type name for logging

Implementors§