| 116 | } |
| 117 | |
| 118 | func (cli *fakeClient) ImageHistory(_ context.Context, img string, options ...client.ImageHistoryOption) (client.ImageHistoryResult, error) { |
| 119 | if cli.imageHistoryFunc != nil { |
| 120 | return cli.imageHistoryFunc(img, options...) |
| 121 | } |
| 122 | return client.ImageHistoryResult{ |
| 123 | Items: []image.HistoryResponseItem{{ID: img, Created: time.Now().Unix()}}, |
| 124 | }, nil |
| 125 | } |
| 126 | |
| 127 | func (cli *fakeClient) ImageBuild(ctx context.Context, buildContext io.Reader, options client.ImageBuildOptions) (client.ImageBuildResult, error) { |
| 128 | if cli.imageBuildFunc != nil { |