action

package
v0.0.0-...-03a9efe Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

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

Action represents an action that runs along with the Eventing reconciler. It is composed of multiple Steps.

func New

func New(name string, steps Steps) *Action

New returns a new Action instance.

func (*Action) Run

func (a *Action) Run(context *service.ActionContext) (err error)

Run reconciler Action logic for Eventing. It executes the Action steps in order and returns a non-nil error if any step was unsuccessful.

type Step

type Step interface {
	Execute(*service.ActionContext, *zap.SugaredLogger) error
}

Step represents an executable step.

type Steps

type Steps []Step

Steps represents executable steps.

Jump to

Keyboard shortcuts

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