Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrTypeUndefined = iota ErrTypeUnexpectedBlock ErrTypeUnexpectedSymbol ErrTypeUnexpectedFunction ErrTypeUnexpectedEOF )
View Source
const (
WrnTypeOutsideBlockVar = iota
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrReport ¶
type ErrReport struct { Line int `json:"line"` // Possible error type values. // * `0` - Undefined error // * `1` - Unexpected block // * `2` - Unexpected symbol // * `3` - Unexpected function // * `4` - Unexpected EOF Type int `json:"type"` Message string `json:"message"` // Var is defined only for template exec errors Var string `json:"var,omitempty"` }
type RegexpInfo ¶
type RegexpInfo struct {
// contains filtered or unexported fields
}
type Validator ¶
type Validator interface { ValidateDeclareTicketRuleTemplate(s string) (bool, *ErrReport, []WrnReport, error) ValidateScenarioTemplate(s string) (bool, *ErrReport, []WrnReport, error) ValidateEventFilterRuleTemplate(s string) (bool, *ErrReport, []WrnReport, error) }
func NewValidator ¶
func NewValidator(timezoneConfigProvider config.TimezoneConfigProvider) Validator
Click to show internal directories.
Click to hide internal directories.