hook

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHaltingError added in v1.3.0

func IsHaltingError(err error) bool

IsHaltingError returns true if the error is a fatal error or a request to cancel the operation

func TasksTriggeredByEvent added in v1.3.0

func TasksTriggeredByEvent(config *v1.Config, repoID string, planID string, parentOp *v1.Operation, events []v1.Hook_Condition, vars interface{}) ([]tasks.Task, error)

Types

type Hook

type Hook v1.Hook

type HookErrorFatal added in v0.17.0

type HookErrorFatal struct {
	Err error
}

HookErrorFatal stops evaluation of subsequent hooks and will propagate to the hook flow's caller

func (HookErrorFatal) Error added in v0.17.0

func (e HookErrorFatal) Error() string

func (HookErrorFatal) Unwrap added in v0.17.0

func (e HookErrorFatal) Unwrap() error

type HookErrorRequestCancel added in v0.17.0

type HookErrorRequestCancel struct {
	Err error
}

HookErrorCancel requests that the calling operation cancel itself. It must be handled explicitly caller. Subsequent hooks will be skipped.

func (HookErrorRequestCancel) Error added in v0.17.0

func (e HookErrorRequestCancel) Error() string

func (HookErrorRequestCancel) Unwrap added in v0.17.0

func (e HookErrorRequestCancel) Unwrap() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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