Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidationScopes = []ValidationScope{AlertScope, RecordingRuleScope, AllRulesScope}
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
Click to show internal directories.
Click to hide internal directories.