pub struct FilesystemArtifactStore { /* private fields */ }Expand description
Filesystem-based artifact store
Stores artifacts on local disk with optional compression. Uses zstd for compression by default.
Implementations§
Source§impl FilesystemArtifactStore
impl FilesystemArtifactStore
Sourcepub fn with_compression_level(self, level: i32) -> Self
pub fn with_compression_level(self, level: i32) -> Self
Set compression level (1-22, higher = better compression but slower)
Sourcepub fn without_compression(self) -> Self
pub fn without_compression(self) -> Self
Disable compression
Trait Implementations§
Source§impl ArtifactStore for FilesystemArtifactStore
impl ArtifactStore for FilesystemArtifactStore
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 FilesystemArtifactStore
impl RefUnwindSafe for FilesystemArtifactStore
impl Send for FilesystemArtifactStore
impl Sync for FilesystemArtifactStore
impl Unpin for FilesystemArtifactStore
impl UnsafeUnpin for FilesystemArtifactStore
impl UnwindSafe for FilesystemArtifactStore
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