Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandExecutor ¶
type CommandExecutor interface {
ExecuteCommands(map[string]commands.Commander, conf.MonitorDir)
}
type CommandManager ¶
type CommandManager interface {
ExecuteCommandsForMonitors()
}
func NewDefaultCommandManager ¶
func NewDefaultCommandManager() CommandManager
type CommandProducer ¶
type CommandProducer interface {
CreateCommandList(monitorDir *conf.MonitorDir) map[string]commands.Commander
}
type ConfigCommandProducer ¶
type ConfigCommandProducer struct{}
func (*ConfigCommandProducer) CreateCommandList ¶
func (self *ConfigCommandProducer) CreateCommandList(monitorDir *conf.MonitorDir) map[string]commands.Commander
builds a command list based on the monitor dirs in the yaml config
type DefaultCommandManager ¶
type DefaultCommandManager struct { Producer CommandProducer Executor CommandExecutor }
func (DefaultCommandManager) ExecuteCommandsForMonitors ¶
func (self DefaultCommandManager) ExecuteCommandsForMonitors()
type SequentialCommandExecutor ¶
type SequentialCommandExecutor struct{}
func (*SequentialCommandExecutor) ExecuteCommands ¶
func (self *SequentialCommandExecutor) ExecuteCommands(commandList map[string]commands.Commander, monitorDir conf.MonitorDir)
Click to show internal directories.
Click to hide internal directories.