config

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0, MIT, MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterFunc

type FilterFunc func(item RuleItem) (bool, error)

type RuleItem

type RuleItem struct {
	proto.Rule `yaml:",inline"`
	Version    proto.VersionRange `yaml:"version" toml:"version"`
}

type RuleSpec

type RuleSpec struct {
	Rule []RuleItem `yaml:"rule" toml:"rule"`
}

func LoadBetaRuleSpec

func LoadBetaRuleSpec() (*RuleSpec, error)

func (*RuleSpec) FilterOn

func (rs *RuleSpec) FilterOn(filter FilterFunc) (proto.RuleSet, error)

func (*RuleSpec) FilterOnVersion

func (rs *RuleSpec) FilterOnVersion(ver string) (proto.RuleSet, error)

Jump to

Keyboard shortcuts

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