Method
ImageLoad
(_ context.Context, input io.Reader, options ...client.ImageLoadOption)
Source from the content-addressed store, hash-verified
| 88 | } |
| 89 | |
| 90 | func (cli *fakeClient) ImageLoad(_ context.Context, input io.Reader, options ...client.ImageLoadOption) (client.ImageLoadResult, error) { |
| 91 | if cli.imageLoadFunc != nil { |
| 92 | return cli.imageLoadFunc(input, options...) |
| 93 | } |
| 94 | return http.NoBody, nil |
| 95 | } |
| 96 | |
| 97 | func (cli *fakeClient) ImageList(_ context.Context, options client.ImageListOptions) (client.ImageListResult, error) { |
| 98 | if cli.imageListFunc != nil { |
Tested by
no test coverage detected