hook

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: GPL-3.0 Imports: 11 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 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

type HookErrorRetry added in v1.5.0

type HookErrorRetry struct {
	Err     error
	Backoff RetryBackoffPolicy
}

HookErrorRetry requests that the calling operation retry after a specified backoff duration

func (HookErrorRetry) Error added in v1.5.0

func (e HookErrorRetry) Error() string

type RetryBackoffPolicy added in v1.5.0

type RetryBackoffPolicy = func(attempt int) time.Duration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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