@@ -16,17 +16,17 @@ import (
1616type fakeClient struct {
1717 client.Client
1818 imageTagFunc func (string , string ) error
19- imageSaveFunc func (images []string ) (io.ReadCloser , error )
19+ imageSaveFunc func (images []string , options image. SaveOptions ) (io.ReadCloser , error )
2020 imageRemoveFunc func (image string , options image.RemoveOptions ) ([]image.DeleteResponse , error )
2121 imagePushFunc func (ref string , options image.PushOptions ) (io.ReadCloser , error )
2222 infoFunc func () (system.Info , error )
2323 imagePullFunc func (ref string , options image.PullOptions ) (io.ReadCloser , error )
2424 imagesPruneFunc func (pruneFilter filters.Args ) (image.PruneReport , error )
25- imageLoadFunc func (input io.Reader , quiet bool ) (image.LoadResponse , error )
25+ imageLoadFunc func (input io.Reader , options image. LoadOptions ) (image.LoadResponse , error )
2626 imageListFunc func (options image.ListOptions ) ([]image.Summary , error )
2727 imageInspectFunc func (img string ) (image.InspectResponse , []byte , error )
2828 imageImportFunc func (source image.ImportSource , ref string , options image.ImportOptions ) (io.ReadCloser , error )
29- imageHistoryFunc func (img string ) ([]image.HistoryResponseItem , error )
29+ imageHistoryFunc func (img string , options image. HistoryOptions ) ([]image.HistoryResponseItem , error )
3030 imageBuildFunc func (context.Context , io.Reader , types.ImageBuildOptions ) (types.ImageBuildResponse , error )
3131}
3232
@@ -37,9 +37,9 @@ func (cli *fakeClient) ImageTag(_ context.Context, img, ref string) error {
3737 return nil
3838}
3939
40- func (cli * fakeClient ) ImageSave (_ context.Context , images []string ) (io.ReadCloser , error ) {
40+ func (cli * fakeClient ) ImageSave (_ context.Context , images []string , options image. SaveOptions ) (io.ReadCloser , error ) {
4141 if cli .imageSaveFunc != nil {
42- return cli .imageSaveFunc (images )
42+ return cli .imageSaveFunc (images , options )
4343 }
4444 return io .NopCloser (strings .NewReader ("" )), nil
4545}
@@ -81,9 +81,9 @@ func (cli *fakeClient) ImagesPrune(_ context.Context, pruneFilter filters.Args)
8181 return image.PruneReport {}, nil
8282}
8383
84- func (cli * fakeClient ) ImageLoad (_ context.Context , input io.Reader , quiet bool ) (image.LoadResponse , error ) {
84+ func (cli * fakeClient ) ImageLoad (_ context.Context , input io.Reader , options image. LoadOptions ) (image.LoadResponse , error ) {
8585 if cli .imageLoadFunc != nil {
86- return cli .imageLoadFunc (input , quiet )
86+ return cli .imageLoadFunc (input , options )
8787 }
8888 return image.LoadResponse {}, nil
8989}
@@ -111,9 +111,9 @@ func (cli *fakeClient) ImageImport(_ context.Context, source image.ImportSource,
111111 return io .NopCloser (strings .NewReader ("" )), nil
112112}
113113
114- func (cli * fakeClient ) ImageHistory (_ context.Context , img string ) ([]image.HistoryResponseItem , error ) {
114+ func (cli * fakeClient ) ImageHistory (_ context.Context , img string , options image. HistoryOptions ) ([]image.HistoryResponseItem , error ) {
115115 if cli .imageHistoryFunc != nil {
116- return cli .imageHistoryFunc (img )
116+ return cli .imageHistoryFunc (img , options )
117117 }
118118 return []image.HistoryResponseItem {{ID : img , Created : time .Now ().Unix ()}}, nil
119119}
0 commit comments