config

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Config

type Config struct {
	CustomExcludeAnnotation string           `yaml:"customExcludeAnnotation"`
	ValidationRules         []ValidationRule `yaml:"validationRules"`
}

type ValidationRule

type ValidationRule struct {
	Name        string             `yaml:"name"`
	Scope       ValidationScope    `yaml:"scope"`
	Validations []validator.Config `yaml:"validations"`
}

type ValidationScope

type ValidationScope string
const (
	AlertScope         ValidationScope = "Alert"
	RecordingRuleScope ValidationScope = "Recording rule"
	AllRulesScope      ValidationScope = "All rules"
)

func (*ValidationScope) UnmarshalYAML

func (t *ValidationScope) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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