(ctx context.Context, projectName string, options api.RestartOptions)
| 29 | ) |
| 30 | |
| 31 | func (s *composeService) Restart(ctx context.Context, projectName string, options api.RestartOptions) error { |
| 32 | return Run(ctx, func(ctx context.Context) error { |
| 33 | return s.restart(ctx, strings.ToLower(projectName), options) |
| 34 | }, "restart", s.events) |
| 35 | } |
| 36 | |
| 37 | func (s *composeService) restart(ctx context.Context, projectName string, options api.RestartOptions) error { //nolint:gocyclo |
| 38 | containers, err := s.getContainers(ctx, projectName, oneOffExclude, true) |