Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Rules []Rule
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(data []byte) (*Config, error)

func ReadConfigFile

func ReadConfigFile(path string) (*Config, error)

func (*Config) RulesForAction

func (cfg *Config) RulesForAction(action string) ([]*Rule, bool)

type PipelineStep

type PipelineStep struct {
	Exec []string
}

type Rule

type Rule struct {
	Name     string
	Action   string
	Globs    []string
	Pipeline []PipelineStep
}

Source Files