Documentation ¶
Index ¶
- type MergeableTriggers
- type Trigger
- type Triggers
- func (triggers *Triggers) GetMatchStatistics() (nMatched, nUnmatched uint)
- func (triggers *Triggers) GetMatchedTriggers() []*Trigger
- func (triggers *Triggers) Len() int
- func (triggers *Triggers) Less(left, right int) bool
- func (triggers *Triggers) Match(line string)
- func (triggers *Triggers) RegisterStrings(registerFunc func(string))
- func (triggers *Triggers) ReplaceStrings(replaceFunc func(string) string)
- func (triggers *Triggers) Swap(left, right int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MergeableTriggers ¶
type MergeableTriggers struct {
// contains filtered or unexported fields
}
func (*MergeableTriggers) ExportTriggers ¶
func (mt *MergeableTriggers) ExportTriggers() *Triggers
func (*MergeableTriggers) Merge ¶
func (mt *MergeableTriggers) Merge(triggers *Triggers)
type Trigger ¶
type Trigger struct { MatchLines []string Service string DoReboot bool `json:",omitempty"` HighImpact bool `json:",omitempty"` // contains filtered or unexported fields }
func (*Trigger) RegisterStrings ¶ added in v0.3.3
func (*Trigger) ReplaceStrings ¶
type Triggers ¶
type Triggers struct { Triggers []*Trigger // contains filtered or unexported fields }
func (*Triggers) GetMatchStatistics ¶
func (*Triggers) GetMatchedTriggers ¶
func (*Triggers) RegisterStrings ¶ added in v0.3.3
func (*Triggers) ReplaceStrings ¶
Click to show internal directories.
Click to hide internal directories.