pub struct FilesystemStore { /* private fields */ }Expand description
Filesystem local state store.
Implementations§
Source§impl FilesystemStore
impl FilesystemStore
Sourcepub fn staging_dir_for(&self, attempt_id: Uuid) -> PathBuf
pub fn staging_dir_for(&self, attempt_id: Uuid) -> PathBuf
Returns the path used for staged packages.
Sourcepub fn package_workspace_root(&self) -> PathBuf
pub fn package_workspace_root(&self) -> PathBuf
Returns the root used for staged package workspaces.
Sourcepub fn validation_record_path(&self, attempt_id: Uuid) -> PathBuf
pub fn validation_record_path(&self, attempt_id: Uuid) -> PathBuf
Returns the JSON path for a persisted validation record.
Sourcepub fn image_import_record_path(&self, import_id: Uuid) -> PathBuf
pub fn image_import_record_path(&self, import_id: Uuid) -> PathBuf
Returns the JSON path for a persisted image-import record.
Sourcepub fn candidate_release_path(&self, candidate_release_id: Uuid) -> PathBuf
pub fn candidate_release_path(&self, candidate_release_id: Uuid) -> PathBuf
Returns the JSON path for a persisted candidate release record.
Sourcepub fn service_state_path(&self, service_name: &str) -> PathBuf
pub fn service_state_path(&self, service_name: &str) -> PathBuf
Returns the JSON path for a persisted service state record.
Sourcepub fn update_attempt_path(&self, update_id: Uuid) -> PathBuf
pub fn update_attempt_path(&self, update_id: Uuid) -> PathBuf
Returns the JSON path for a persisted update attempt.
Sourcepub fn cleanup_package_workspace(
&self,
) -> Result<PackageCleanupResult, PersistenceError>
pub fn cleanup_package_workspace( &self, ) -> Result<PackageCleanupResult, PersistenceError>
Removes the local package workspace root if it exists.
Trait Implementations§
Source§impl Clone for FilesystemStore
impl Clone for FilesystemStore
Source§fn clone(&self) -> FilesystemStore
fn clone(&self) -> FilesystemStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilesystemStore
impl Debug for FilesystemStore
Source§impl StateStore for FilesystemStore
impl StateStore for FilesystemStore
fn save_validation_record( &self, record: &ValidationRecord, ) -> Result<(), PersistenceError>
fn save_image_import_record( &self, record: &ImageImportRecord, ) -> Result<(), PersistenceError>
fn save_candidate_release( &self, record: &CandidateReleaseRecord, ) -> Result<(), PersistenceError>
fn load_candidate_release( &self, candidate_release_id: Uuid, ) -> Result<Option<CandidateReleaseRecord>, PersistenceError>
fn save_service_state( &self, record: &ServiceStateRecord, ) -> Result<(), PersistenceError>
fn load_service_state( &self, service_name: &str, ) -> Result<Option<ServiceStateRecord>, PersistenceError>
fn list_service_states( &self, ) -> Result<Vec<ServiceStateRecord>, PersistenceError>
fn save_update_attempt( &self, record: &UpdateAttemptRecord, ) -> Result<(), PersistenceError>
fn load_update_attempt( &self, update_id: Uuid, ) -> Result<Option<UpdateAttemptRecord>, PersistenceError>
fn list_update_attempts( &self, ) -> Result<Vec<UpdateAttemptRecord>, PersistenceError>
fn list_audit_events(&self) -> Result<Vec<AuditEvent>, PersistenceError>
fn append_audit_event(&self, event: &AuditEvent) -> Result<(), PersistenceError>
Auto Trait Implementations§
impl Freeze for FilesystemStore
impl RefUnwindSafe for FilesystemStore
impl Send for FilesystemStore
impl Sync for FilesystemStore
impl Unpin for FilesystemStore
impl UnsafeUnpin for FilesystemStore
impl UnwindSafe for FilesystemStore
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