type Config struct { Rules []Rule // contains filtered or unexported fields }
func NewConfig(data []byte) (*Config, error)
func ReadConfigFile(path string) (*Config, error)
func (cfg *Config) RulesForAction(action string) ([]*Rule, bool)
type PipelineStep struct { Exec []string }
type Rule struct { Name string Action string Globs []string Pipeline []PipelineStep }