condition

package
v0.0.0-...-21d01d2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrConditionMissing is the error when a condition is not provided
	ErrConditionMissing = errors.New("condition must be provided")

	// ErrConditionGroupMissing is the error when a condition group is not provided
	ErrConditionGroupMissing = errors.New("conditions group must be provided")

	// ErrPureConditionMissing is the error when a pure condition is not provided
	ErrPureConditionMissing = errors.New("pure condition must be provided")
)

Functions

func Check

func Check(st cache.Cache, c *workflow.Condition) (bool, error)

Check checks the given condition.

func CheckGroup

func CheckGroup(st cache.Cache, cg *workflow.ConditionGroup) (bool, error)

CheckGroup checks the given conditions group. Returns true if all conditions are met.

func CheckPure

func CheckPure(st cache.Cache, c *workflow.ConditionPure) (bool, error)

CheckPure checks the given pure condition. Returns true if the given condition is met.

func GetActualValue

func GetActualValue(st cache.Cache, val interface{}) interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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