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

Method unPause

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

Source from the content-addressed store, hash-verified

58}
59
60func (s *composeService) unPause(ctx context.Context, projectName string, options api.PauseOptions) error {
61 containers, err := s.getContainers(ctx, projectName, oneOffExclude, false, options.Services...)
62 if err != nil {
63 return err
64 }
65
66 if options.Project != nil {
67 containers = containers.filter(isService(options.Project.ServiceNames()...))
68 }
69
70 return forEachContainerConcurrent(ctx, containers, func(ctx context.Context, ctr container.Summary) error {
71 _, err := s.apiClient().ContainerUnpause(ctx, ctr.ID, client.ContainerUnpauseOptions{})
72 if err == nil {
73 s.events.On(newEvent(getContainerProgressName(ctr), api.Done, "Unpaused"))
74 }
75 return err
76 })
77}

Callers 1

UnPauseMethod · 0.95

Calls 9

getContainersMethod · 0.95
apiClientMethod · 0.95
isServiceFunction · 0.85
newEventFunction · 0.85
getContainerProgressNameFunction · 0.85
filterMethod · 0.80
OnMethod · 0.65
ContainerUnpauseMethod · 0.45

Tested by

no test coverage detected