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 rulefmt.RuleGroup) error
- func (p *Printer) PrintRuleGroups(rules map[string][]rulefmt.RuleGroup) 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 cortextool
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
Click to show internal directories.
Click to hide internal directories.