Documentation
¶
Overview ¶
Package cleaner orchestrates the quarantine-and-report pipeline.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, items []types.Item, scanResult *types.ScanResult, cfg *config.Config, progress types.ProgressFn) (*types.CleanResult, error)
Run is the top-level clean entry point: it picks quarantine or direct delete based on cfg, and writes a JSON report when scanResult is provided. cfg may be nil to imply "use quarantine" — the CLI and the TUI both rely on this default for first-run, config-not-yet-loaded cases. progress is an optional callback for per-file progress during quarantine moves; nil disables progress reporting.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.