Versions in this module Expand all Collapse all v1 v1.1.1 Feb 23, 2020 Changes in this version + var AvailableHooks []HookType = []HookType + type FileHook struct + Directory string + func (_ FileHook) Setup() error + func (h FileHook) InvokeHook(typ HookType, info handler.HookEvent, captureOutput bool) ([]byte, int, error) + type GrpcHook struct + Backoff int + Client pb.HookServiceClient + Endpoint string + MaxRetries int + func (g GrpcHook) InvokeHook(typ HookType, info handler.HookEvent, captureOutput bool) ([]byte, int, error) + func (g GrpcHook) Setup() error + type HookError struct + func NewHookError(err error, statusCode int, body []byte) HookError + func (herr HookError) Body() []byte + func (herr HookError) Error() string + func (herr HookError) StatusCode() int + type HookHandler interface + InvokeHook func(typ HookType, info handler.HookEvent, captureOutput bool) ([]byte, int, error) + Setup func() error + type HookType string + const HookPostCreate + const HookPostFinish + const HookPostReceive + const HookPostTerminate + const HookPreCreate + type HttpHook struct + Backoff int + Endpoint string + MaxRetries int + func (_ HttpHook) Setup() error + func (h HttpHook) InvokeHook(typ HookType, info handler.HookEvent, captureOutput bool) ([]byte, int, error) + type PluginHook struct + Path string + func (h *PluginHook) Setup() error + func (h PluginHook) InvokeHook(typ HookType, info handler.HookEvent, captureOutput bool) ([]byte, int, error) + type PluginHookHandler interface + PostCreate func(info handler.HookEvent) error + PostFinish func(info handler.HookEvent) error + PostReceive func(info handler.HookEvent) error + PostTerminate func(info handler.HookEvent) error + PreCreate func(info handler.HookEvent) error