Method
ImageBuild
(ctx context.Context, buildContext io.Reader, options client.ImageBuildOptions)
Source from the content-addressed store, hash-verified
| 125 | } |
| 126 | |
| 127 | func (cli *fakeClient) ImageBuild(ctx context.Context, buildContext io.Reader, options client.ImageBuildOptions) (client.ImageBuildResult, error) { |
| 128 | if cli.imageBuildFunc != nil { |
| 129 | return cli.imageBuildFunc(ctx, buildContext, options) |
| 130 | } |
| 131 | return client.ImageBuildResult{Body: io.NopCloser(strings.NewReader(""))}, nil |
| 132 | } |
Tested by
no test coverage detected