Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Notify ¶ added in v1.5.0
func Notify(result HookResult)
Notify is the global method to notify hook result
func Register ¶ added in v1.16.0
func Register(scheme string, creator NotifierCreator)
Register a Notifier to the registry
Types ¶
type HookResult ¶ added in v1.15.0
type HookResult interface {
ID() uint64
Name() string
Logs(filter string) string
StatusLabel() string
Err() error
}
HookResult is the result of a hook execution
type Notifier ¶
type Notifier interface {
Notify(result HookResult) error
}
Notifier is able to send a notification.
func NewNotifier ¶ added in v1.16.0
NewNotifier create new Notifier
Click to show internal directories.
Click to hide internal directories.