MCPcopy
hub / github.com/containerd/containerd / PullImage

Method PullImage

integration/remote/remote_image.go:82–95  ·  view source on GitHub ↗
(image *runtimeapi.ImageSpec, auth *runtimeapi.AuthConfig, podSandboxConfig *runtimeapi.PodSandboxConfig, runtimeHandler string, _ ...grpc.CallOption)

Source from the content-addressed store, hash-verified

80}
81
82func (r *ImageService) PullImage(image *runtimeapi.ImageSpec, auth *runtimeapi.AuthConfig, podSandboxConfig *runtimeapi.PodSandboxConfig, runtimeHandler string, _ ...grpc.CallOption) (string, error) {
83 requestImage := image
84 if image != nil && runtimeHandler != "" {
85 requestImage = &runtimeapi.ImageSpec{
86 Image: image.Image,
87 Annotations: maps.Clone(image.Annotations),
88 UserSpecifiedImage: image.UserSpecifiedImage,
89 RuntimeHandler: runtimeHandler,
90 ImageRef: image.ImageRef,
91 }
92 }
93
94 return r.imageService.PullImage(context.Background(), requestImage, auth, podSandboxConfig)
95}
96
97func (r *ImageService) RemoveImage(image *runtimeapi.ImageSpec, _ ...grpc.CallOption) error {
98 return r.imageService.RemoveImage(context.Background(), image)

Callers

nothing calls this directly

Calls 1

PullImageMethod · 0.65

Tested by

no test coverage detected