Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExitCondition ¶
type FileMonitorCondition ¶
type FileMonitorCondition struct { File string `json:"file"` Regex *regexp.Regexp `json:"regex"` Status string `json:"status"` }
func (*FileMonitorCondition) Handle ¶
func (monitor *FileMonitorCondition) Handle(results chan<- error, stop <-chan bool, logger *log.Logger)
handleFile handler for actual files
func (*FileMonitorCondition) UnmarshalJSON ¶
func (monitor *FileMonitorCondition) UnmarshalJSON(b []byte) error
type OutputCondition ¶
type OutputCondition struct { Source string `json:"source"` Regex *regexp.Regexp `json:"regex"` Status string `json:"status"` }
func (*OutputCondition) Handle ¶
func (monitor *OutputCondition) Handle(logLine string, results chan<- error, stop <-chan bool, logger *log.Logger)
Handle will handle the output condition. This handler is different than the ones for the other conditions in/ that it expects a different process to manage the streams.
func (*OutputCondition) UnmarshalJSON ¶
func (monitor *OutputCondition) UnmarshalJSON(b []byte) error
type StateConditions ¶
type StateConditions struct { Exit *ExitCondition `json:"exit"` Timeout *TimeoutCondition `json:"timeout"` FileMonitors []FileMonitorCondition `json:"filemonitor"` Outputs []OutputCondition `json:"output"` }
StateCondition holds information about a specific state condition, and also functions to use that state condition
func (*StateConditions) Count ¶
func (state *StateConditions) Count() int
Count returns the total number of state conditions we have
Click to show internal directories.
Click to hide internal directories.