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

Method Pause

pkg/compose/pause.go:29–33  ·  view source on GitHub ↗
(ctx context.Context, projectName string, options api.PauseOptions)

Source from the content-addressed store, hash-verified

27)
28
29func (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
35func (s *composeService) pause(ctx context.Context, projectName string, options api.PauseOptions) error {
36 containers, err := s.getContainers(ctx, projectName, oneOffExclude, false, options.Services...)

Callers

nothing calls this directly

Calls 2

pauseMethod · 0.95
RunFunction · 0.85

Tested by

no test coverage detected