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

Function pushAction

cmd/nerdctl/image/image_push.go:131–145  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

129}
130
131func pushAction(cmd *cobra.Command, args []string) error {
132 options, err := pushOptions(cmd)
133 if err != nil {
134 return err
135 }
136 rawRef := args[0]
137
138 client, ctx, cancel, err := clientutil.NewClient(cmd.Context(), options.GOptions.Namespace, options.GOptions.Address)
139 if err != nil {
140 return err
141 }
142 defer cancel()
143
144 return image.Push(ctx, client, rawRef, options)
145}
146
147func pushShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
148 // show image names

Callers

nothing calls this directly

Calls 3

NewClientFunction · 0.92
PushFunction · 0.92
pushOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…