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

Function rmiAction

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

Source from the content-addressed store, hash-verified

66}
67
68func rmiAction(cmd *cobra.Command, args []string) error {
69 options, err := removeOptions(cmd)
70 if err != nil {
71 return err
72 }
73
74 client, ctx, cancel, err := clientutil.NewClient(cmd.Context(), options.GOptions.Namespace, options.GOptions.Address)
75 if err != nil {
76 return err
77 }
78 defer cancel()
79
80 return image.Remove(ctx, client, args, options)
81}
82
83func rmiShellComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
84 // show image names

Callers

nothing calls this directly

Calls 3

NewClientFunction · 0.92
RemoveFunction · 0.92
removeOptionsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…