(task *task.Task, imageName string, options image.PullOptions)
| 194 | } |
| 195 | |
| 196 | func (c Client) PullImageWithProcessAndOptions(task *task.Task, imageName string, options image.PullOptions) error { |
| 197 | out, err := c.cli.ImagePull(context.Background(), imageName, options) |
| 198 | if err != nil { |
| 199 | return err |
| 200 | } |
| 201 | defer out.Close() |
| 202 | return handlePullImageProcess(out, task) |
| 203 | } |
| 204 | |
| 205 | func handlePullImageProcess(out io.Reader, task *task.Task) error { |
| 206 | decoder := json.NewDecoder(out) |
no test coverage detected