NewImageService creates a legacy-style CRI image client backed by the upstream Kubernetes CRI client.
(endpoint string, connectionTimeout time.Duration)
| 52 | // NewImageService creates a legacy-style CRI image client backed by the |
| 53 | // upstream Kubernetes CRI client. |
| 54 | func 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 | |
| 63 | func (r *ImageService) Close(ctx context.Context) error { |
| 64 | if r == nil { |
no outgoing calls
searching dependent graphs…