Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrActionNotAvailable = errors.New("action no longer available")
View Source
var ErrNoProcess = errors.New("no process to kill")
Functions ¶
func IsBadActionError ¶
func IsMissingHookError ¶
func NewBadActionError ¶
func NewMissingHookError ¶
Types ¶
type HookLogger ¶
type HookLogger struct {
// contains filtered or unexported fields
}
HookLogger streams the output from a hook to message receivers.
func NewHookLogger ¶
func NewHookLogger(outReader io.ReadCloser, receivers ...MessageReceiver) *HookLogger
NewHookLogger creates a new hook logger.
func (*HookLogger) AddReceiver ¶
func (l *HookLogger) AddReceiver(receiver MessageReceiver)
AddReceiver adds an additional receiver to get messages
type MessageReceiver ¶
MessageReceiver instances are fed messages written to stdout/stderr when running hooks/actions.
Click to show internal directories.
Click to hide internal directories.