MCPcopy Index your code
hub / github.com/docker/cli / ImagePull

Method ImagePull

cli/command/image/client_test.go:75–81  ·  view source on GitHub ↗
(_ context.Context, ref string, options client.ImagePullOptions)

Source from the content-addressed store, hash-verified

73}
74
75func (cli *fakeClient) ImagePull(_ context.Context, ref string, options client.ImagePullOptions) (client.ImagePullResponse, error) {
76 if cli.imagePullFunc != nil {
77 return cli.imagePullFunc(ref, options)
78 }
79 // FIXME(thaJeztah): how to mock this?
80 return fakeStreamResult{ReadCloser: http.NoBody}, nil
81}
82
83func (cli *fakeClient) ImagePrune(_ context.Context, opts client.ImagePruneOptions) (client.ImagePruneResult, error) {
84 if cli.imagePruneFunc != nil {

Callers 1

runPullFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected