Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(path string, dryRun bool) core.DeleteResult
Delete performs the actual file/directory deletion. Returns a DeleteResult recording what happened.
func IsBlacklisted ¶
IsBlacklisted checks if a path is in the system blacklist. Returns true if the path should NOT be deleted.
Types ¶
type Cleaner ¶
type Cleaner interface {
Clean(items []core.CleanableItem) []core.DeleteResult
}
Cleaner is the interface for cleanup implementations
type GenericCleaner ¶
GenericCleaner iterates items and deletes them one by one
func NewGenericCleaner ¶
func NewGenericCleaner(dryRun, execute bool) *GenericCleaner
NewGenericCleaner creates a new cleaner
func (*GenericCleaner) Clean ¶
func (g *GenericCleaner) Clean(items []core.CleanableItem) []core.DeleteResult
Clean processes all items and returns deletion results
Click to show internal directories.
Click to hide internal directories.