Documentation ¶
Index ¶
- Variables
- func BuildResults(rulesetFlag string, specBytes []byte, ...) (*model.RuleResultSet, *motor.RuleSetExecutionResult, error)
- func BuildRuleSetFromUserSuppliedSet(rsBytes []byte, rs rulesets.RuleSets) (*rulesets.RuleSet, error)
- func CheckFailureSeverity(failSeverityFlag string, errors int, warnings int, informs int) error
- func Execute(version, commit, date string)
- func GetDashboardCommand() *cobra.Command
- func GetGenerateRulesetCommand() *cobra.Command
- func GetHTMLReportCommand() *cobra.Command
- func GetLintCommand() *cobra.Command
- func GetSpectralReportCommand() *cobra.Command
- func GetVacuumReportCommand() *cobra.Command
- func LoadCustomFunctions(functionsFlag string) (map[string]model.RuleFunction, error)
- func PrintBanner()
- func RenderSummary(rs *model.RuleResultSet, silent bool)
- func RenderTime(timeFlag bool, duration time.Duration, fi os.FileInfo)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string Commit string Date string )
Functions ¶
func BuildResults ¶ added in v0.0.4
func BuildResults( rulesetFlag string, specBytes []byte, customFunctions map[string]model.RuleFunction, base string) (*model.RuleResultSet, *motor.RuleSetExecutionResult, error)
func BuildRuleSetFromUserSuppliedSet ¶ added in v0.0.5
func BuildRuleSetFromUserSuppliedSet(rsBytes []byte, rs rulesets.RuleSets) (*rulesets.RuleSet, error)
BuildRuleSetFromUserSuppliedSet creates a ready to run ruleset, augmented or provided by a user configured ruleset. This ruleset could be lifted directly from a Spectral configuration.
func CheckFailureSeverity ¶ added in v0.0.16
func GetDashboardCommand ¶
func GetGenerateRulesetCommand ¶ added in v0.0.5
func GetHTMLReportCommand ¶ added in v0.0.2
GetHTMLReportCommand returns a cobra command for generating an HTML Report.
func GetLintCommand ¶ added in v0.0.5
func GetVacuumReportCommand ¶ added in v0.0.4
func LoadCustomFunctions ¶ added in v0.0.11
func LoadCustomFunctions(functionsFlag string) (map[string]model.RuleFunction, error)
LoadCustomFunctions will scan for (and load) custom functions defined as vacuum plugins.
func PrintBanner ¶ added in v0.0.5
func PrintBanner()
func RenderSummary ¶ added in v0.0.5
func RenderSummary(rs *model.RuleResultSet, silent bool)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.