MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / logProcess

Function logProcess

agent/utils/docker/docker.go:326–333  ·  view source on GitHub ↗
(progress map[string]interface{}, task *task.Task)

Source from the content-addressed store, hash-verified

324}
325
326func 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
335func PullImage(imageName string) error {
336 cli, err := NewDockerClient()

Calls 1

setLogFunction · 0.85

Tested by

no test coverage detected