Documentation ¶
Index ¶
- func CheckAll(doc *xmlquery.Node, rules []*Rule, r report.Reporter) (results []string, err error)
- type Rule
- func (r *Rule) Check(doc *xmlquery.Node) (valid bool, node *xmlquery.Node, err error)
- func (r *Rule) CheckIfCondition(doc *xmlquery.Node) (suitable bool, err error)
- func (r *Rule) Lookup(doc *xmlquery.Node) (found bool, node *xmlquery.Node, err error)
- func (r *Rule) Validate(doc *xmlquery.Node) (valid bool, node *xmlquery.Node, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Rule ¶
type Rule struct { Name string `yaml: "name"` Targets string `yaml: "targets"` Having string `yaml: "having"` Contain string `yaml: "contain"` Must bool `yaml: "must"` }
Rule object to check
func (*Rule) CheckIfCondition ¶
CheckIfCondition checks if condition in rule for filtering document as suitable or not
Click to show internal directories.
Click to hide internal directories.