(_ context.Context, ref string, options client.ImagePullOptions)
| 73 | } |
| 74 | |
| 75 | func (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 | |
| 83 | func (cli *fakeClient) ImagePrune(_ context.Context, opts client.ImagePruneOptions) (client.ImagePruneResult, error) { |
| 84 | if cli.imagePruneFunc != nil { |