Documentation ¶
Index ¶
- Variables
- func GetFileNameText(title string) string
- type EvaluationSummary
- type ExtraMessage
- type FailedRule
- type InvalidK8sInfo
- type InvalidYamlInfo
- type JSONSchemaValidatorResults
- type OccurrenceDetails
- type Printer
- func (p *Printer) GetEvaluationSummaryText(summary EvaluationSummary, k8sVersion string) string
- func (p *Printer) GetSummaryTableText(summary Summary) string
- func (p *Printer) GetTextInColor(text string, color *color.Color) string
- func (p *Printer) GetTitleText(title string) string
- func (p *Printer) GetWarningsText(warnings []Warning, quiet bool) string
- func (p *Printer) GetYamlValidationErrorsText(yamlValidationErrors []error) string
- func (p *Printer) GetYamlValidationSummaryText(passedFiles int, allFiles int) string
- func (p *Printer) PrintError(messageText string, messageColor string)
- func (p *Printer) PrintMessage(messageText string, messageColor string)
- func (p *Printer) PrintPromptMessage(promptMessage string)
- func (p *Printer) PrintYamlSchemaResults(errorsResult []jsonschema.Detailed, error error)
- func (p *Printer) SetTheme(theme *Theme)
- type Summary
- type SummaryItem
- type Theme
- type Warning
Constants ¶
This section is empty.
Variables ¶
View Source
var StdErr = color.Error
View Source
var StdOut = color.Output
Functions ¶
func GetFileNameText ¶ added in v1.5.13
Types ¶
type EvaluationSummary ¶
type ExtraMessage ¶
type FailedRule ¶
type InvalidK8sInfo ¶
type InvalidYamlInfo ¶
type InvalidYamlInfo struct {
ValidationErrors []error
}
type JSONSchemaValidatorResults ¶
type JSONSchemaValidatorResults = gojsonschema.Result
type OccurrenceDetails ¶
type Printer ¶
type Printer struct {
Theme *Theme
}
func CreateNewPrinter ¶
func CreateNewPrinter() *Printer
func (*Printer) GetEvaluationSummaryText ¶ added in v1.5.0
func (p *Printer) GetEvaluationSummaryText(summary EvaluationSummary, k8sVersion string) string
func (*Printer) GetSummaryTableText ¶ added in v1.5.0
func (*Printer) GetTextInColor ¶ added in v1.5.0
func (*Printer) GetTitleText ¶ added in v1.5.13
func (*Printer) GetWarningsText ¶ added in v1.5.0
func (*Printer) GetYamlValidationErrorsText ¶ added in v1.5.0
func (*Printer) GetYamlValidationSummaryText ¶ added in v1.5.0
func (*Printer) PrintError ¶ added in v1.8.45
func (*Printer) PrintMessage ¶
func (*Printer) PrintPromptMessage ¶
func (*Printer) PrintYamlSchemaResults ¶
type Summary ¶
type Summary struct { PlainRows []SummaryItem SkipRow SummaryItem ErrorRow SummaryItem SuccessRow SummaryItem }
type SummaryItem ¶
type Theme ¶
type Theme struct { Name string Colors struct { Green *color.Color Yellow *color.Color RedBold *color.Color Error *color.Color Highlight *color.Color Cyan *color.Color CyanBold *color.Color } ColorsAttributes struct { Cyan color.Attribute Green color.Attribute Red color.Attribute } Spacing struct { Default string } Emoji struct { Error string Suggestion string Skip string } }
func CreateSimpleTheme ¶
func CreateSimpleTheme() *Theme
type Warning ¶
type Warning struct { Title string FailedRules []FailedRule SkippedRules []FailedRule InvalidYamlInfo InvalidYamlInfo InvalidK8sInfo InvalidK8sInfo ExtraMessages []ExtraMessage }
Click to show internal directories.
Click to hide internal directories.