Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotifierTypes = map[string]Notifier{ "shell": &ShellNotifier{}, "log": &LogNotifier{}, }
Functions ¶
func Initialize ¶
func Initialize(nbs []*NotifierBackend) error
Types ¶
type LogNotifier ¶
type LogNotifier struct {
// contains filtered or unexported fields
}
Log notifier dumps events to the specified file destination. Arguments:
"destination": log file path or STDOUT or STDERR (optional, default is STDERR)
func (*LogNotifier) Destruct ¶
func (l *LogNotifier) Destruct() error
func (*LogNotifier) Initialize ¶
func (l *LogNotifier) Initialize(args map[string]string) error
type NotifierBackend ¶
type ShellNotifier ¶
type ShellNotifier struct {
// contains filtered or unexported fields
}
Shell notifier executes commands on fail and pass events. Event message is acessible from the commands with the %q format string. Arguments:
"fail_command": command to run on fail event "pass_command": command to run on pass event
TODO implement proper shell escaping instead of relying on golang's format strings
func (*ShellNotifier) Destruct ¶
func (_ *ShellNotifier) Destruct() error
func (*ShellNotifier) Initialize ¶
func (s *ShellNotifier) Initialize(args map[string]string) error
Click to show internal directories.
Click to hide internal directories.