MCPcopy Create free account
hub / github.com/astercloud/aster / ConditionStep

Struct ConditionStep

pkg/workflow/step.go:276–284  ·  view source on GitHub ↗

===== ConditionStep =====

Source from the content-addressed store, hash-verified

274// ===== ConditionStep =====
275
276type ConditionStep struct {
277 id string
278 name string
279 description string
280 condition func(*StepInput) bool
281 ifTrue Step
282 ifFalse Step
283 config *StepConfig
284}
285
286func NewConditionStep(name string, condition func(*StepInput) bool, ifTrue, ifFalse Step) *ConditionStep {
287 return &ConditionStep{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected