Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Version string `yaml:"version"` Features map[string]Feature `yaml:"features"` }
func LoadYAMLDir ¶
type DisableRule ¶ added in v0.1.0
type DisableRule struct { Field string `yaml:"field"` Fields []string `yaml:"fields"` Values MatchValues `yaml:"values"` }
type EnableRule ¶ added in v0.1.0
type EnableRule struct { Field string `yaml:"field"` Fields []string `yaml:"fields"` Values MatchValues `yaml:"values"` Weight int `yaml:"weight"` }
type MatchValues ¶ added in v0.1.0
type MatchValues struct {
Eq []string `json:"eq"`
}
type Rules ¶ added in v0.1.0
type Rules struct { Enable []EnableRule `yaml:"enable"` Disable []DisableRule `yaml:"disable"` SetVars []SetVarRule `yaml:"set_vars"` }
type SetVarRule ¶ added in v0.1.0
type SetVarRule struct { Field string `yaml:"field"` Fields []string `yaml:"fields"` Values MatchValues `yaml:"values"` Weight int `yaml:"weight"` Set map[string]interface{} `json:"set"` }
Click to show internal directories.
Click to hide internal directories.