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

Function pushAction

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

Source from the content-addressed store, hash-verified

37}
38
39func pushAction(cmd *cobra.Command, args []string) error {
40 globalOptions, err := helpers.ProcessRootCmdFlags(cmd)
41 if err != nil {
42 return err
43 }
44
45 client, ctx, cancel, err := clientutil.NewClient(cmd.Context(), globalOptions.Namespace, globalOptions.Address)
46 if err != nil {
47 return err
48 }
49 defer cancel()
50 options, err := getComposeOptions(cmd, globalOptions.DebugFull, globalOptions.Experimental)
51 if err != nil {
52 return err
53 }
54 c, err := compose.New(client, globalOptions, options, cmd.OutOrStdout(), cmd.ErrOrStderr())
55 if err != nil {
56 return err
57 }
58
59 po := composer.PushOptions{}
60 return c.Push(ctx, po, args)
61}

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…