executor

package
v0.0.0-...-7c6824c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IfExecutor

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

func NewIfExecutor

func NewIfExecutor() *IfExecutor

NewIfExecutor creates a new IfExecutor

func (*IfExecutor) Description

func (e *IfExecutor) Description() string

func (*IfExecutor) Execute

func (e *IfExecutor) Execute(ctx context.Context, task *types.Task, otherTasks []*types.Task) (interface{}, error)

func (*IfExecutor) ID

func (e *IfExecutor) ID() string

func (*IfExecutor) InputRules

func (e *IfExecutor) InputRules() map[string]interface{}

func (*IfExecutor) Name

func (e *IfExecutor) Name() string

func (*IfExecutor) New

func (e *IfExecutor) New() types.Executor

func (*IfExecutor) OutputRules

func (e *IfExecutor) OutputRules() map[string]interface{}

func (*IfExecutor) Validate

func (e *IfExecutor) Validate(ctx context.Context, task *types.Task, otherTasks []*types.Task) error

type Input

type Input struct {
	If struct {
		Condition string `json:"condition" validate:"required,javascript"`
		Trigger   string `json:"trigger" validate:"required,alphanum"`
	} `json:"if" validate:"required"`
	Else struct {
		Trigger string `json:"trigger" validate:"required,alphanum"`
	} `json:"else" validate:"required"`
}

type Output

type Output struct {
	Next string `json:"next" validate:"required,alphanum"`
}

Jump to

Keyboard shortcuts

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