wiper

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CfgFile string

Functions

func InitConfig

func InitConfig()

func RefreshInstanceFromViper added in v1.1.0

func RefreshInstanceFromViper() error

Types

type Wiper

type Wiper struct {
	WipeOut            []string `json:"wipe_out,omitempty" mapstructure:"wipe_out" yaml:"wipe_out"`
	WipeOutPattern     []string `json:"wipe_out_pattern,omitempty"  mapstructure:"wipe_out_pattern"  yaml:"wipe_out_pattern"`
	WipeOutDirs        []string `json:"wipe_out_dirs,omitempty" mapstructure:"wipe_out_dirs" yaml:"wipe_out_dirs"`
	WipeOutPatternDirs []string `json:"wipe_out_pattern_dirs,omitempty" mapstructure:"wipe_out_pattern_dirs" yaml:"wipe_out_pattern_dirs"`
	ExcludeFile        []string `json:"exclude_file,omitempty" mapstructure:"exclude_file" yaml:"exclude_file"`
	ExcludeDir         []string `json:"exclude_dir,omitempty" mapstructure:"exclude_dir" yaml:"exclude_dir"`
	BaseDir            string   `json:"base_dir,omitempty" mapstructure:"base_dir" yaml:"base_dir"`
	UseTrash           bool     `json:"use_trash,omitempty" mapstructure:"use_trash" yaml:"use_trash"`
	InspectedFiles     int      `json:"-"`
	WipedFiles         int      `json:"-"`
	InspectedDirs      int      `json:"-"`
	WipedDirs          int      `json:"-"`
	// contains filtered or unexported fields
}

func GetInstance

func GetInstance() *Wiper

func (*Wiper) WipeFiles

func (w *Wiper) WipeFiles(wg *sync.WaitGroup, dir string, errChan chan error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL