internal

package
v0.0.0-...-c6c47f8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg []*Config) (rule.Set, error)

New initiates a rule from the config.

Types

type Config

type Config struct {
	Schema string
	Path   StringSlice
}

Config contains the configuration for the rule.

type StringSlice

type StringSlice []string

StringSlice can unmarshal individual strings or array from YAML.

func (*StringSlice) UnmarshalYAML

func (s *StringSlice) UnmarshalYAML(n *yaml.Node) error

Jump to

Keyboard shortcuts

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