(ctx context.Context, project *types.Project, options api.ScaleOptions)
| 25 | ) |
| 26 | |
| 27 | func (s *composeService) Scale(ctx context.Context, project *types.Project, options api.ScaleOptions) error { |
| 28 | return Run(ctx, tracing.SpanWrapFunc("project/scale", tracing.ProjectOptions(ctx, project), func(ctx context.Context) error { |
| 29 | err := s.create(ctx, project, api.CreateOptions{Services: options.Services}) |
| 30 | if err != nil { |
| 31 | return err |
| 32 | } |
| 33 | return s.start(ctx, project.Name, api.StartOptions{Project: project, Services: options.Services}, nil) |
| 34 | }), "scale", s.events) |
| 35 | } |
nothing calls this directly
no test coverage detected