(ctx context.Context, projectName string, options api.PauseOptions)
| 58 | } |
| 59 | |
| 60 | func (s *composeService) unPause(ctx context.Context, projectName string, options api.PauseOptions) error { |
| 61 | containers, err := s.getContainers(ctx, projectName, oneOffExclude, false, options.Services...) |
| 62 | if err != nil { |
| 63 | return err |
| 64 | } |
| 65 | |
| 66 | if options.Project != nil { |
| 67 | containers = containers.filter(isService(options.Project.ServiceNames()...)) |
| 68 | } |
| 69 | |
| 70 | return forEachContainerConcurrent(ctx, containers, func(ctx context.Context, ctr container.Summary) error { |
| 71 | _, err := s.apiClient().ContainerUnpause(ctx, ctr.ID, client.ContainerUnpauseOptions{}) |
| 72 | if err == nil { |
| 73 | s.events.On(newEvent(getContainerProgressName(ctr), api.Done, "Unpaused")) |
| 74 | } |
| 75 | return err |
| 76 | }) |
| 77 | } |
no test coverage detected