MCPcopy
hub / github.com/docker/compose / Scale

Method Scale

pkg/compose/scale.go:27–35  ·  pkg/compose/scale.go::composeService.Scale
(ctx context.Context, project *types.Project, options api.ScaleOptions)

Source from the content-addressed store, hash-verified

25)
26
27func (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}

Callers

nothing calls this directly

Calls 5

createMethod · 0.95
startMethod · 0.95
SpanWrapFuncFunction · 0.92
ProjectOptionsFunction · 0.92
RunFunction · 0.85

Tested by

no test coverage detected