Documentation ¶
Index ¶
- type Printer
- func (p *Printer) PrintAlertmanagerConfig(config string, templates map[string]string) error
- func (p *Printer) PrintComparisonResult(results []rules.NamespaceChange, verbose bool) error
- func (p *Printer) PrintRuleGroup(rule rwrulefmt.RuleGroup) error
- func (p *Printer) PrintRuleGroups(rules map[string][]rwrulefmt.RuleGroup) error
- func (p *Printer) PrintRuleSet(rules map[string][]rwrulefmt.RuleGroup, format string, writer io.Writer) error
- func (p *Printer) Printf(format string, a ...interface{})
- func (p *Printer) Println(a string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer is used for printing formatted output from the mimirtool
func (*Printer) PrintAlertmanagerConfig ¶
PrintAlertmanagerConfig prints the current alertmanager config
func (*Printer) PrintComparisonResult ¶
func (p *Printer) PrintComparisonResult(results []rules.NamespaceChange, verbose bool) error
PrintComparisonResult prints the differences between the staged rules namespace and active rules namespace
func (*Printer) PrintRuleGroup ¶
PrintRuleGroup prints the current alertmanager config
func (*Printer) PrintRuleGroups ¶
PrintRuleGroups prints the current alertmanager config
func (*Printer) PrintRuleSet ¶
Click to show internal directories.
Click to hide internal directories.