Skip to main content

evaluate_batch

Function evaluate_batch 

Source
pub fn evaluate_batch(
    manager: &LifecycleManager,
    bucket: &str,
    objects: &[EvaluateBatchEntry],
) -> Vec<(String, LifecycleAction)>
Expand description

Test-driven scan entry: walks a list of EvaluateBatchEntry tuples and produces (key, action) pairs for every object that should fire an action right now. The actual backend invocation (S3.delete_object / metadata rewrite) is the caller’s job. Used by both unit tests and the E2E test in tests/roundtrip.rs; the future background scanner will reuse the same entry once the bucket-walk is wired through the backend.