Documentation
¶
Index ¶
Constants ¶
View Source
const ( EQ = "EQ" NE = "NE" GT = "GT" LT = "LT" GE = "GE" LE = "LE" REGEXP = "REGEXP" IN = "IN" NOTIN = "NOTIN" )
accepted condition operators
View Source
const ( SKIP = "skip" CHECK = "check" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assert ¶
type Assert struct {
Value string `json:"value"`
Operator string `json:"operator"`
Expected string `json:"expected"`
ListSeparator string `json:"list_separator"`
Message string `json:"message"`
}
Assert describes a challenge to a value an expected value is compared through an operator the intent of this condition can be explained through a contextual message for clearer error surfacing
type Condition ¶
type Condition struct {
Type string `json:"type"`
If []*Assert `json:"if"`
Then map[string]string `json:"then"`
Message string `json:"message"`
}
Condition defines a condition to be evaluated before or after a step's action
type ErrConditionNotMet ¶
type ErrConditionNotMet string
ErrConditionNotMet is the typed error returned by Condition when its evaluation fails
func (ErrConditionNotMet) Error ¶
func (e ErrConditionNotMet) Error() string
Error implements standard error
Click to show internal directories.
Click to hide internal directories.