(name string, body Step, maxIterations int)
| 380 | } |
| 381 | |
| 382 | func NewLoopStep(name string, body Step, maxIterations int) *LoopStep { |
| 383 | return &LoopStep{ |
| 384 | id: uuid.New().String(), |
| 385 | name: name, |
| 386 | body: body, |
| 387 | maxIterations: maxIterations, |
| 388 | config: &StepConfig{ |
| 389 | Name: name, |
| 390 | Type: StepTypeLoop, |
| 391 | MaxRetries: 1, |
| 392 | Timeout: 30 * time.Minute, |
| 393 | SkipOnError: false, |
| 394 | }, |
| 395 | } |
| 396 | } |
| 397 | |
| 398 | func (s *LoopStep) ID() string { return s.id } |
| 399 | func (s *LoopStep) Name() string { return s.name } |
no test coverage detected