Documentation ¶
Index ¶
- func BuildRuleSetFromUserSuppliedSet(rsBytes []byte, rs rulesets.RuleSets) (*rulesets.RuleSet, error)
- func GetLintCommand() *cobra.Command
- func RenderSummary(rs *model.RuleResultSet, args []string, silent bool)
- func RenderTime(timeFlag bool, duration time.Duration, fi os.FileInfo)
- type CategoryGauge
- type Dashboard
- type Snippet
- type StatsChart
- type TabbedView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRuleSetFromUserSuppliedSet ¶
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 GetLintCommand ¶
func RenderSummary ¶
func RenderSummary(rs *model.RuleResultSet, args []string, silent bool)
Types ¶
type CategoryGauge ¶
type CategoryGauge struct {
// contains filtered or unexported fields
}
CategoryGauge represents a percent bar visualizing how well spec did in a particular category
func NewCategoryGauge ¶
func NewCategoryGauge(title string, percent int, cat *model.RuleCategory) CategoryGauge
NewCategoryGauge returns a new gauge widget that is ready to render
type Dashboard ¶
type Dashboard struct { C chan bool // contains filtered or unexported fields }
Dashboard represents the dashboard controlling container
func CreateDashboard ¶
func (*Dashboard) ComposeGauges ¶
func (dash *Dashboard) ComposeGauges()
ComposeGauges prepares health gauges for rendering into the main grid.
func (*Dashboard) GenerateTabbedView ¶
func (dash *Dashboard) GenerateTabbedView()
GenerateTabbedView generates tabs
type Snippet ¶
func NewSnippet ¶
func NewSnippet() *Snippet
type StatsChart ¶
type StatsChart struct {
// contains filtered or unexported fields
}
StatsChart represents a bar chart showing statistics of the specification.
func NewStatsChart ¶
func NewStatsChart(index *model.SpecIndex, info *model.SpecInfo) StatsChart
NewStatsChart returns a new gauge widget that is ready to render
type TabbedView ¶
type TabbedView struct {
// contains filtered or unexported fields
}
TabbedView represents a tabbed view holding various data views