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

Method PullImageWithProcessAndOptions

agent/utils/docker/docker.go:196–203  ·  view source on GitHub ↗
(task *task.Task, imageName string, options image.PullOptions)

Source from the content-addressed store, hash-verified

194}
195
196func (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
205func handlePullImageProcess(out io.Reader, task *task.Task) error {
206 decoder := json.NewDecoder(out)

Callers 3

PullImageWithProcessMethod · 0.95
ImagePullMethod · 0.80
pullImagesFunction · 0.80

Implementers 1

terminalAIClientagent/utils/terminal/ai/client.go

Calls 3

handlePullImageProcessFunction · 0.85
ImagePullMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected