pub struct CleanupExecutor<'a> { /* private fields */ }Expand description
Executes catalog-side cleanup. Cache-engine payload cleanup is the
responsibility of orbok-cache (Appendix A §12), driven by the same
plan at the service layer.
Implementations§
Source§impl<'a> CleanupExecutor<'a>
impl<'a> CleanupExecutor<'a>
pub fn new(catalog: &'a Catalog) -> Self
Sourcepub fn run_safe(&self, plan: &CleanupPlan) -> OrbokResult<CleanupOutcome>
pub fn run_safe(&self, plan: &CleanupPlan) -> OrbokResult<CleanupOutcome>
Run a safe cleanup action. Rejects any plan that includes the persistent catalog class (RFC-001: “Ordinary cleanup cannot delete persistent source settings”).
Sourcepub fn run_reset_catalog(
&self,
plan: &CleanupPlan,
keep_settings: bool,
) -> OrbokResult<CleanupOutcome>
pub fn run_reset_catalog( &self, plan: &CleanupPlan, keep_settings: bool, ) -> OrbokResult<CleanupOutcome>
Destructive catalog reset (RFC-001 §8.3). Requires a confirmed
ResetCatalog plan. Removes sources, file catalog, chunks,
indexes, caches, jobs, and search history; cascades do most of
the work. Optionally preserves settings (RFC-011/§12.4).
Auto Trait Implementations§
impl<'a> Freeze for CleanupExecutor<'a>
impl<'a> RefUnwindSafe for CleanupExecutor<'a>
impl<'a> Send for CleanupExecutor<'a>
impl<'a> Sync for CleanupExecutor<'a>
impl<'a> Unpin for CleanupExecutor<'a>
impl<'a> UnsafeUnpin for CleanupExecutor<'a>
impl<'a> UnwindSafe for CleanupExecutor<'a>
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