pub trait ArtifactStore: Send + Sync {
// Required methods
fn put<'life0, 'life1, 'async_trait>(
&'life0 self,
bytes: Bytes,
media_type: &'life1 str,
metadata: Value,
) -> Pin<Box<dyn Future<Output = Result<ArtifactMeta, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn get<'life0, 'async_trait>(
&'life0 self,
sha256: [u8; 32],
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn presign_get<'life0, 'async_trait>(
&'life0 self,
sha256: [u8; 32],
ttl: Duration,
) -> Pin<Box<dyn Future<Output = Result<Url, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Artifact storage abstraction shared across runtime surfaces.