Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
Matcher describes the matching of a given string on a certain stream (stdout or stderr)
type MatcherSet ¶ added in v1.0.0
type MatcherSet struct {
// contains filtered or unexported fields
}
MatcherSet encapsulates a set of matchers when all of them match, `done` will be closed.
func NewMatcherSet ¶ added in v1.0.0
func NewMatcherSet(matchers []Matcher, verbose bool) MatcherSet
func (*MatcherSet) Match ¶ added in v1.0.0
func (m *MatcherSet) Match(str string, stderr bool) bool
Match returns whether all matchers either: * currently match the string and stream type (stdout/stderr) * have matched previously and closes the `done` channel if so.
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker allows to track stdout and stderr of running commands and wait for certain messages to appear
func NewTracker ¶
func (*Tracker) Match ¶
Match creates a MatcherSet, registers it and returns a channel that will be closed when all matchers have matched
Source Files
¶
- tracker.go
Click to show internal directories.
Click to hide internal directories.