Versions in this module Expand all Collapse all v1 v1.0.0 Mar 19, 2024 Changes in this version + type FileInfo struct + Path string + type FileShredder struct + func NewFileShredder(opts ...Option) (*FileShredder, error) + func (f *FileShredder) Close() error + func (f *FileShredder) MillRunOnce(opts ...MillRunOnceOption) error + func (f *FileShredder) Run(ctx context.Context) error + type IsNotDeleteFunc func(info *FileInfo) bool + type MillRunOnceOption func(*MillRunOnceOptions) + func IsNotDelete(fn IsNotDeleteFunc) MillRunOnceOption + type MillRunOnceOptions struct + IsNotDelete IsNotDeleteFunc + func NewMillRunOnceOptions() MillRunOnceOptions + type Option func(*Options) + func GlobPath(path string) Option + func Interval(d time.Duration) Option + func MaxAge(age time.Duration) Option + func MaxCount(count int64) Option + func MaxSize(size int64) Option + type Options struct + GlobPath string + Interval time.Duration + MaxAge time.Duration + MaxCount int64 + MaxSize int64