@@ -16,17 +16,17 @@ import (
16
16
type fakeClient struct {
17
17
client.Client
18
18
imageTagFunc func (string , string ) error
19
- imageSaveFunc func (images []string ) (io.ReadCloser , error )
19
+ imageSaveFunc func (images []string , options image. SaveOptions ) (io.ReadCloser , error )
20
20
imageRemoveFunc func (image string , options image.RemoveOptions ) ([]image.DeleteResponse , error )
21
21
imagePushFunc func (ref string , options image.PushOptions ) (io.ReadCloser , error )
22
22
infoFunc func () (system.Info , error )
23
23
imagePullFunc func (ref string , options image.PullOptions ) (io.ReadCloser , error )
24
24
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 )
26
26
imageListFunc func (options image.ListOptions ) ([]image.Summary , error )
27
27
imageInspectFunc func (img string ) (image.InspectResponse , []byte , error )
28
28
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 )
30
30
imageBuildFunc func (context.Context , io.Reader , types.ImageBuildOptions ) (types.ImageBuildResponse , error )
31
31
}
32
32
@@ -37,9 +37,9 @@ func (cli *fakeClient) ImageTag(_ context.Context, img, ref string) error {
37
37
return nil
38
38
}
39
39
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 ) {
41
41
if cli .imageSaveFunc != nil {
42
- return cli .imageSaveFunc (images )
42
+ return cli .imageSaveFunc (images , options )
43
43
}
44
44
return io .NopCloser (strings .NewReader ("" )), nil
45
45
}
@@ -81,9 +81,9 @@ func (cli *fakeClient) ImagesPrune(_ context.Context, pruneFilter filters.Args)
81
81
return image.PruneReport {}, nil
82
82
}
83
83
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 ) {
85
85
if cli .imageLoadFunc != nil {
86
- return cli .imageLoadFunc (input , quiet )
86
+ return cli .imageLoadFunc (input , options )
87
87
}
88
88
return image.LoadResponse {}, nil
89
89
}
@@ -111,9 +111,9 @@ func (cli *fakeClient) ImageImport(_ context.Context, source image.ImportSource,
111
111
return io .NopCloser (strings .NewReader ("" )), nil
112
112
}
113
113
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 ) {
115
115
if cli .imageHistoryFunc != nil {
116
- return cli .imageHistoryFunc (img )
116
+ return cli .imageHistoryFunc (img , options )
117
117
}
118
118
return []image.HistoryResponseItem {{ID : img , Created : time .Now ().Unix ()}}, nil
119
119
}
0 commit comments