Documentation
¶
Overview ¶
Package spec checks the descriptions of collectors that gohai.Collectors returns against the rules of a collector. gohai collector validate prints the rules and the problems.
Index ¶
Constants ¶
const ( RuleName = "name" RuleCategory = "category" RuleFacts = "facts" RuleDependency = "dependency" )
The rules that Problems checks, by the name a problem reports.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct {
Rule string `json:"rule"`
Requires string `json:"requires"`
Fix string `json:"fix"`
}
Check is one rule: what a collector must do, and how to fix it.
type Problem ¶
type Problem struct {
Collector string `json:"collector"`
Rule string `json:"rule"`
Message string `json:"message"`
Fix string `json:"fix"`
}
Problem is a rule that a collector breaks.
func Problems ¶
func Problems( specs []gohai.CollectorSpec, ) []Problem
Problems are the rules that the collectors of specs break.