(ctx context.Context, projectName string, options api.PauseOptions)
| 27 | ) |
| 28 | |
| 29 | func (s *composeService) Pause(ctx context.Context, projectName string, options api.PauseOptions) error { |
| 30 | return Run(ctx, func(ctx context.Context) error { |
| 31 | return s.pause(ctx, strings.ToLower(projectName), options) |
| 32 | }, "pause", s.events) |
| 33 | } |
| 34 | |
| 35 | func (s *composeService) pause(ctx context.Context, projectName string, options api.PauseOptions) error { |
| 36 | containers, err := s.getContainers(ctx, projectName, oneOffExclude, false, options.Services...) |