Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanupResult ¶
func CleanDirectory ¶
func CleanDirectory(dir string, policy Policy) CleanupResult
CleanDirectory removes files older than policy.MaxAge from dir.
func EnforceSize ¶
func EnforceSize(dir string, policy Policy) CleanupResult
EnforceSize removes oldest files until total size is under policy.MaxSizeMB.
Click to show internal directories.
Click to hide internal directories.