Documentation
¶
Index ¶
- type AlertValidation
- type Linter
- func (linter *Linter) AddCustomAlertValidations(validations ...AlertValidation)
- func (linter *Linter) AddCustomRecordRuleValidations(validations ...RecordRuleValidation)
- func (linter *Linter) LintAlert(alert *promv1.Rule) []Problem
- func (linter *Linter) LintAlerts(alerts []promv1.Rule) []Problem
- func (linter *Linter) LintRecordingRule(recordingRule *operatorrules.RecordingRule) []Problem
- func (linter *Linter) LintRecordingRules(recordingRules []operatorrules.RecordingRule) []Problem
- type Problem
- type RecordRuleValidation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertValidation ¶
type Linter ¶
type Linter struct {
// contains filtered or unexported fields
}
func (*Linter) AddCustomAlertValidations ¶
func (linter *Linter) AddCustomAlertValidations(validations ...AlertValidation)
func (*Linter) AddCustomRecordRuleValidations ¶
func (linter *Linter) AddCustomRecordRuleValidations(validations ...RecordRuleValidation)
func (*Linter) LintRecordingRule ¶
func (linter *Linter) LintRecordingRule(recordingRule *operatorrules.RecordingRule) []Problem
func (*Linter) LintRecordingRules ¶
func (linter *Linter) LintRecordingRules(recordingRules []operatorrules.RecordingRule) []Problem
type RecordRuleValidation ¶
type RecordRuleValidation = func(rr *operatorrules.RecordingRule) []Problem
Click to show internal directories.
Click to hide internal directories.