Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
EnabledCategories map[string]bool `json:"enabled_categories"`
ActivePreset string `json:"active_preset"`
OldInstallerMonths int `json:"old_installer_months"`
LargeFileMinSizeMB int `json:"large_file_min_size_mb"`
LargeFileMonths int `json:"large_file_months"`
Exclusions []string `json:"exclusions"`
AutoRiskOverrides map[string]string `json:"auto_risk_overrides"`
// QuarantineEnabled controls whether cleanups move files to quarantine (true, default)
// or permanently delete them without recovery (false).
QuarantineEnabled bool `json:"quarantine_enabled"`
// QuarantineAutoCleanupDays: 0 = disabled. When > 0, a Windows scheduled task runs
// `broominal quarantine-cleanup --force --max-age-days N` daily at 03:00.
QuarantineAutoCleanupDays int `json:"quarantine_auto_cleanup_days"`
Language string `json:"language"`
}
Config holds user-configurable cleanup rules.
func (*Config) ApplyPreset ¶
func (*Config) IsCategoryEnabled ¶
IsCategoryEnabled treats a nil map as "all enabled" so a default-constructed Config works in tests and first-run code paths without explicit init.
func (*Config) IsExcluded ¶
IsExcluded matches any single path component against the user's exclusion list. The component-wise check is what makes rules like "node_modules" or "dist" work without users having to spell out full directory paths.
func (*Config) RiskOverrideFor ¶
RiskOverrideFor returns an override risk for a path, or empty string.
Click to show internal directories.
Click to hide internal directories.