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

Function pullAction

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

Source from the content-addressed store, hash-verified

136}
137
138func pullAction(cmd *cobra.Command, args []string) error {
139 options, err := processPullCommandFlags(cmd)
140 if err != nil {
141 return err
142 }
143
144 client, ctx, cancel, err := clientutil.NewClient(cmd.Context(), options.GOptions.Namespace, options.GOptions.Address)
145 if err != nil {
146 return err
147 }
148 defer cancel()
149
150 return image.Pull(ctx, client, args[0], options)
151}

Callers

nothing calls this directly

Calls 3

NewClientFunction · 0.92
PullFunction · 0.92
processPullCommandFlagsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…