MCPcopy Create free account
hub / github.com/containerd/nerdctl / unpauseAction

Function unpauseAction

cmd/nerdctl/compose/compose_pause.go:74–96  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

72}
73
74func unpauseAction(cmd *cobra.Command, args []string) error {
75 globalOptions, err := helpers.ProcessRootCmdFlags(cmd)
76 if err != nil {
77 return err
78 }
79
80 client, ctx, cancel, err := clientutil.NewClient(cmd.Context(), globalOptions.Namespace, globalOptions.Address)
81 if err != nil {
82 return err
83 }
84 defer cancel()
85
86 options, err := getComposeOptions(cmd, globalOptions.DebugFull, globalOptions.Experimental)
87 if err != nil {
88 return err
89 }
90 c, err := compose.New(client, globalOptions, options, cmd.OutOrStdout(), cmd.ErrOrStderr())
91 if err != nil {
92 return err
93 }
94
95 return c.Unpause(ctx, args, cmd.OutOrStdout())
96}

Callers

nothing calls this directly

Calls 5

ProcessRootCmdFlagsFunction · 0.92
NewClientFunction · 0.92
NewFunction · 0.92
getComposeOptionsFunction · 0.85
UnpauseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…