Documentation
¶
Index ¶
- Variables
- func Validate(acters []acter.Acter, verbs []string) []string
- type Cfg
- func (cfg *Cfg) AddPathVerbs(acters []acter.Acter, path string, rule string, verbs []string) error
- func (cfg *Cfg) AddSigVerbs(acters []acter.Acter, rule string, verbs []string) error
- func (cfg *Cfg) Compact(path string, rule string) error
- func (cfg *Cfg) DelPathVerbs(path string) error
- func (cfg *Cfg) DelSigVerbs(sig string) error
- func (cfg *Cfg) Get(key string) []*Loadout
- func (cfg *Cfg) Load() error
- func (cfg *Cfg) NewVerbs(path string, rules ...string) []string
- func (cfg *Cfg) Path() string
- func (cfg *Cfg) SetPathVerbs(acters []acter.Acter, path string, rule string, verbs []string) error
- func (cfg *Cfg) SetSigVerbs(acters []acter.Acter, rule string, verbs []string) error
- type Clean
- type Loadout
- type Quarantine
- type Skips
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidChars means invalid characters. ErrInvalidChars = errors.New("act: invalid char input") // ErrUnknownVerb means unknown verb. ErrUnknownVerb = errors.New("act: verb not configured") // ErrNoActs means no acts. ErrNoActs = errors.New("act: none configured for") // ErrStarSkipNotAllowed means skip not permitted for *. ErrStarSkipNotAllowed = errors.New("act: skip not permitted for rule wildcard") )
Functions ¶
Types ¶
type Cfg ¶
type Cfg struct {
Default []string
Signatures map[string][]string
Paths map[string]map[string][]string
Skips *Skips
Quarantine *Quarantine
Clean Clean
// contains filtered or unexported fields
}
Cfg represents acts cfg. path stores the toml filepath. Default stores the default acts initially applicable to all detections.
func (*Cfg) AddPathVerbs ¶
AddPathVerbs adds given path's verbs.
func (*Cfg) AddSigVerbs ¶
AddSigVerbs adds a given sig's verbs.
func (*Cfg) DelPathVerbs ¶
DelPathVerbs deletes given path's verbs.
func (*Cfg) DelSigVerbs ¶
DelSigVerbs deletes sig's verbs.
func (*Cfg) NewVerbs ¶
NewVerbs returns verbs based on given path and rules. Switch is for probability, for instance a filepath:rule is more likely than dir:rule.
func (*Cfg) SetPathVerbs ¶
SetPathVerbs sets given path's verbs.
Click to show internal directories.
Click to hide internal directories.