(progress map[string]interface{}, task *task.Task)
| 324 | } |
| 325 | |
| 326 | func logProcess(progress map[string]interface{}, task *task.Task) { |
| 327 | status, _ := progress["status"].(string) |
| 328 | id, _ := progress["id"].(string) |
| 329 | progressItem, _ := progress["progress"].(string) |
| 330 | progressStr := "" |
| 331 | progressStr = fmt.Sprintf("%s %s %s", status, id, progressItem) |
| 332 | _ = setLog(id, progressStr, task) |
| 333 | } |
| 334 | |
| 335 | func PullImage(imageName string) error { |
| 336 | cli, err := NewDockerClient() |
no test coverage detected