config

package
v0.0.0-...-431aac4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2020 License: LGPL-3.0 Imports: 2 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL