Pull pulls an image specified by `rawRef`.
(ctx context.Context, client *containerd.Client, rawRef string, options types.ImagePullOptions)
| 34 | |
| 35 | // Pull pulls an image specified by `rawRef`. |
| 36 | func Pull(ctx context.Context, client *containerd.Client, rawRef string, options types.ImagePullOptions) error { |
| 37 | _, err := EnsureImage(ctx, client, rawRef, options) |
| 38 | if err != nil { |
| 39 | return err |
| 40 | } |
| 41 | |
| 42 | return nil |
| 43 | } |
| 44 | |
| 45 | // EnsureImage pulls an image either from ipfs or from registry. |
| 46 | func EnsureImage(ctx context.Context, client *containerd.Client, rawRef string, options types.ImagePullOptions) (*imgutil.EnsuredImage, error) { |
no test coverage detected
searching dependent graphs…