Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FlagSet *pflag.FlagSet
View Source
var Fs afero.Fs
Fs is the "filesystem" in which configuration and rules are found. This can be provided through a ZIP file appended to the binary.
Functions ¶
Types ¶
type CollectConfig ¶ added in v1.2.0
type FileSize ¶ added in v1.2.0
type FileSize int64
func (*FileSize) UnmarshalText ¶ added in v1.2.0
type GlobalConfig ¶ added in v1.2.0
type GlobalConfig struct { MaxFileSize FileSize `yaml:"max-file-size"` Paths StringSlice `yaml:"paths"` ProcIgnoreNames StringSlice `yaml:"proc-ignore-names"` ReportTargets StringSlice `yaml:"report"` EvidenceCollection CollectConfig `yaml:"evidence-collector"` Hostname string `yaml:"hostname"` HighPriority bool `yaml:"high-priority"` UI UIConfig `yaml:"ui"` RulesetMarker string `yaml:"ruleset-marker"` SystemScanners map[string]ScannerConfig `yaml:"system"` FileScanners map[string]ScannerConfig `yaml:"file"` ProcScanners map[string]ScannerConfig `yaml:"proc"` }
var Global GlobalConfig
type ScannerConfig ¶ added in v1.2.0
type ScannerConfig struct { Disabled bool `yaml:"disabled"` Config yaml.Node `yaml:"config"` }
type StringSlice ¶ added in v1.2.0
type StringSlice []string
StringSlice is a simpler version of the type backing pflag.StringSlice etc. whose Set method has "append" semantics.
func (*StringSlice) Set ¶ added in v1.2.0
func (s *StringSlice) Set(val string) (err error)
func (*StringSlice) String ¶ added in v1.2.0
func (s *StringSlice) String() string
func (StringSlice) Type ¶ added in v1.2.0
func (s StringSlice) Type() string
func (*StringSlice) UnmarshalText ¶ added in v1.2.0
func (s *StringSlice) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.