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

Function runPause

cmd/compose/pause.go:47–58  ·  view source on GitHub ↗
(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts pauseOptions, services []string)

Source from the content-addressed store, hash-verified

45}
46
47func runPause(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts pauseOptions, services []string) error {
48 project, name, err := opts.projectOrName(ctx, dockerCli, services...)
49 if err != nil {
50 return err
51 }
52 return withBackend(dockerCli, backendOptions, func(backend api.Compose) error {
53 return backend.Pause(ctx, name, api.PauseOptions{
54 Services: services,
55 Project: project,
56 })
57 })
58}
59
60type unpauseOptions struct {
61 *ProjectOptions

Callers 1

pauseCommandFunction · 0.85

Calls 3

withBackendFunction · 0.85
projectOrNameMethod · 0.80
PauseMethod · 0.65

Tested by

no test coverage detected