types

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2026 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHandlerNotFound = errors.New("handler not found")

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Name() string
	Execute(ctx context.Context, hook *v1.Hook, vars interface{}, runner tasks.TaskRunner, event v1.Hook_Condition) error
	ActionType() reflect.Type
}

type HandlerRegistry

type HandlerRegistry struct {
	// contains filtered or unexported fields
}

func DefaultRegistry

func DefaultRegistry() *HandlerRegistry

func (*HandlerRegistry) GetHandler

func (r *HandlerRegistry) GetHandler(hook *v1.Hook) (Handler, error)

func (*HandlerRegistry) RegisterHandler

func (r *HandlerRegistry) RegisterHandler(handler Handler)

RegisterHandler registers a handler with the default registry.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL