pub struct InMemoryArtifactStore { /* private fields */ }Expand description
In-memory artifact store for testing
Implementations§
Trait Implementations§
Source§impl ArtifactStore for InMemoryArtifactStore
impl ArtifactStore for InMemoryArtifactStore
Source§fn put<'life0, 'async_trait>(
&'life0 self,
request: PutArtifactRequest,
) -> Pin<Box<dyn Future<Output = Result<PutArtifactResponse, ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put<'life0, 'async_trait>(
&'life0 self,
request: PutArtifactRequest,
) -> Pin<Box<dyn Future<Output = Result<PutArtifactResponse, ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Store an artifact Read more
Source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
artifact_id: &'life1 ArtifactId,
) -> Pin<Box<dyn Future<Output = Result<GetArtifactResponse, ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
artifact_id: &'life1 ArtifactId,
) -> Pin<Box<dyn Future<Output = Result<GetArtifactResponse, ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieve an artifact by ID
Source§fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
artifact_id: &'life1 ArtifactId,
) -> Pin<Box<dyn Future<Output = Result<bool, ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
artifact_id: &'life1 ArtifactId,
) -> Pin<Box<dyn Future<Output = Result<bool, ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if an artifact exists
Source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
artifact_id: &'life1 ArtifactId,
) -> Pin<Box<dyn Future<Output = Result<(), ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
artifact_id: &'life1 ArtifactId,
) -> Pin<Box<dyn Future<Output = Result<(), ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete an artifact
Source§fn list<'life0, 'async_trait>(
&'life0 self,
query: ListArtifactsQuery,
) -> Pin<Box<dyn Future<Output = Result<Vec<ArtifactMetadata>, ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
query: ListArtifactsQuery,
) -> Pin<Box<dyn Future<Output = Result<Vec<ArtifactMetadata>, ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List artifacts matching a query
Source§fn get_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
artifact_id: &'life1 ArtifactId,
) -> Pin<Box<dyn Future<Output = Result<ArtifactMetadata, ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
artifact_id: &'life1 ArtifactId,
) -> Pin<Box<dyn Future<Output = Result<ArtifactMetadata, ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get metadata for an artifact without retrieving content
Source§fn get_execution_size<'life0, 'life1, 'async_trait>(
&'life0 self,
execution_id: &'life1 ExecutionId,
) -> Pin<Box<dyn Future<Output = Result<u64, ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_execution_size<'life0, 'life1, 'async_trait>(
&'life0 self,
execution_id: &'life1 ExecutionId,
) -> Pin<Box<dyn Future<Output = Result<u64, ArtifactStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get total storage size for an execution
Auto Trait Implementations§
impl !Freeze for InMemoryArtifactStore
impl !RefUnwindSafe for InMemoryArtifactStore
impl Send for InMemoryArtifactStore
impl Sync for InMemoryArtifactStore
impl Unpin for InMemoryArtifactStore
impl UnsafeUnpin for InMemoryArtifactStore
impl !UnwindSafe for InMemoryArtifactStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more