MCPcopy Index your code
hub / github.com/containerd/containerd / NewImageService

Function NewImageService

integration/remote/remote_image.go:54–61  ·  view source on GitHub ↗

NewImageService creates a legacy-style CRI image client backed by the upstream Kubernetes CRI client.

(endpoint string, connectionTimeout time.Duration)

Source from the content-addressed store, hash-verified

52// NewImageService creates a legacy-style CRI image client backed by the
53// upstream Kubernetes CRI client.
54func NewImageService(endpoint string, connectionTimeout time.Duration) (*ImageService, error) {
55 imageService, err := upstreamcri.NewRemoteImageService(context.Background(), endpoint, connectionTimeout, nil, false)
56 if err != nil {
57 return nil, err
58 }
59
60 return &ImageService{imageService: imageService}, nil
61}
62
63func (r *ImageService) Close(ctx context.Context) error {
64 if r == nil {

Callers 2

criImageServiceMethod · 0.92
ConnectDaemonsFunction · 0.92

Calls

no outgoing calls

Tested by 2

criImageServiceMethod · 0.74
ConnectDaemonsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…