(ctx context.Context, serv *types.ServiceConfig, containers []containerType.Summary, timeout *time.Duration, listener api.ContainerEventListener)
| 324 | } |
| 325 | |
| 326 | func (s *composeService) stopContainers(ctx context.Context, serv *types.ServiceConfig, containers []containerType.Summary, timeout *time.Duration, listener api.ContainerEventListener) error { |
| 327 | eg, ctx := errgroup.WithContext(ctx) |
| 328 | for _, ctr := range containers { |
| 329 | eg.Go(func() error { |
| 330 | return s.stopContainer(ctx, serv, ctr, timeout, listener) |
| 331 | }) |
| 332 | } |
| 333 | return eg.Wait() |
| 334 | } |
| 335 | |
| 336 | func (s *composeService) removeContainers(ctx context.Context, containers []containerType.Summary, service *types.ServiceConfig, timeout *time.Duration, volumes bool) error { |
| 337 | eg, ctx := errgroup.WithContext(ctx) |
no test coverage detected