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

Function NewStepsGroup

pkg/workflow/step.go:719–732  ·  view source on GitHub ↗
(name string, steps ...Step)

Source from the content-addressed store, hash-verified

717}
718
719func NewStepsGroup(name string, steps ...Step) *StepsGroup {
720 return &StepsGroup{
721 id: uuid.New().String(),
722 name: name,
723 steps: steps,
724 config: &StepConfig{
725 Name: name,
726 Type: StepTypeSteps,
727 MaxRetries: 1,
728 Timeout: 30 * time.Minute,
729 SkipOnError: false,
730 },
731 }
732}
733
734func (s *StepsGroup) ID() string { return s.id }
735func (s *StepsGroup) Name() string { return s.name }

Callers 2

mainFunction · 0.92
testAllStepTypesFunction · 0.92

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected