Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultConcurrentStats = 0 DefaultConcurrentStatsThreshold = 0 DefaultConcurrentScans = 0 DefaultScanSize = 0 )
Functions ¶
func Documentation ¶
func Documentation() string
Documentation will return a description of the format of the yaml configuration file.
Types ¶
type Block ¶
type Block struct {
BlockSize int64 `yaml:"size" cmd:"block size used by this filesystem"`
}
type Prefix ¶
type Prefix struct { Prefix string `yaml:"prefix" cmd:"the prefix to be analyzed"` Database string `yaml:"database" cmd:"the location of the database to use for this prefix"` Separator string `yaml:"separator" cmd:"filename separator to use, defaults to /"` ConcurrentScans int `yaml:"concurrent_scans" cmd:"maximum number of concurrent scan operations"` ConcurrentStats int `yaml:"concurrent_stats" cmd:"maximum number of concurrent stat operations"` ConcurrentStatsThreshold int `yaml:"concurrent_stats_threshold" cmd:"minimum number of files before stats are performed concurrently"` SetMaxThreads int `yaml:"set_max_threads" cmd:"if non-zero used for debug.SetMaxThreads"` ScanSize int `yaml:"scan_size" cmd:"maximum number of items to fetch from the filesystem in a single operation"` Exclusions []string `yaml:"exclusions" cmd:"prefixes and files matching these regular expressions will be ignored when building a dataase"` CountHardlinkAsFiles bool `yaml:"count_hardlinks_as_files" cmd:"if true, hardlinks will be counted as separate files"` Layout layout `yaml:"layout" cmd:"the filesystem layout to use for calculating raw bytes used"` // contains filtered or unexported fields }
func (*Prefix) Calculator ¶
func (p *Prefix) Calculator() diskusage.Calculator
type T ¶
type T struct {
Prefixes []Prefix `yaml:"prefixes" cmd:"the prefixes to be analyzed"`
}
func ParseConfig ¶
ParseConfig will parse a yaml config from the supplied byte slice.
func ReadConfig ¶
ReadConfig will read a yaml config from the specified file.
Click to show internal directories.
Click to hide internal directories.