(_ context.Context, ref string, options client.ImagePushOptions)
| 58 | } |
| 59 | |
| 60 | func (cli *fakeClient) ImagePush(_ context.Context, ref string, options client.ImagePushOptions) (client.ImagePushResponse, error) { |
| 61 | if cli.imagePushFunc != nil { |
| 62 | return cli.imagePushFunc(ref, options) |
| 63 | } |
| 64 | // FIXME(thaJeztah): how to mock this? |
| 65 | return fakeStreamResult{ReadCloser: http.NoBody}, nil |
| 66 | } |
| 67 | |
| 68 | func (cli *fakeClient) Info(_ context.Context, _ client.InfoOptions) (client.SystemInfoResult, error) { |
| 69 | if cli.infoFunc != nil { |