@@ -16,24 +16,24 @@ type fakeClient struct {
1616 client.Client
1717 inspectFunc func (string ) (types.ContainerJSON , error )
1818 execInspectFunc func (execID string ) (types.ContainerExecInspect , error )
19- execCreateFunc func (container string , config types.ExecConfig ) (types.IDResponse , error )
19+ execCreateFunc func (containerID string , config types.ExecConfig ) (types.IDResponse , error )
2020 createContainerFunc func (config * container.Config ,
2121 hostConfig * container.HostConfig ,
2222 networkingConfig * network.NetworkingConfig ,
2323 platform * specs.Platform ,
2424 containerName string ) (container.CreateResponse , error )
25- containerStartFunc func (container string , options container.StartOptions ) error
25+ containerStartFunc func (containerID string , options container.StartOptions ) error
2626 imageCreateFunc func (parentReference string , options types.ImageCreateOptions ) (io.ReadCloser , error )
2727 infoFunc func () (system.Info , error )
28- containerStatPathFunc func (container , path string ) (types.ContainerPathStat , error )
29- containerCopyFromFunc func (container , srcPath string ) (io.ReadCloser , types.ContainerPathStat , error )
28+ containerStatPathFunc func (containerID , path string ) (types.ContainerPathStat , error )
29+ containerCopyFromFunc func (containerID , srcPath string ) (io.ReadCloser , types.ContainerPathStat , error )
3030 logFunc func (string , container.LogsOptions ) (io.ReadCloser , error )
3131 waitFunc func (string ) (<- chan container.WaitResponse , <- chan error )
3232 containerListFunc func (container.ListOptions ) ([]types.Container , error )
3333 containerExportFunc func (string ) (io.ReadCloser , error )
3434 containerExecResizeFunc func (id string , options container.ResizeOptions ) error
35- containerRemoveFunc func (ctx context.Context , container string , options container.RemoveOptions ) error
36- containerKillFunc func (ctx context.Context , container , signal string ) error
35+ containerRemoveFunc func (ctx context.Context , containerID string , options container.RemoveOptions ) error
36+ containerKillFunc func (ctx context.Context , containerID , signal string ) error
3737 Version string
3838}
3939
@@ -51,9 +51,9 @@ func (f *fakeClient) ContainerInspect(_ context.Context, containerID string) (ty
5151 return types.ContainerJSON {}, nil
5252}
5353
54- func (f * fakeClient ) ContainerExecCreate (_ context.Context , container string , config types.ExecConfig ) (types.IDResponse , error ) {
54+ func (f * fakeClient ) ContainerExecCreate (_ context.Context , containerID string , config types.ExecConfig ) (types.IDResponse , error ) {
5555 if f .execCreateFunc != nil {
56- return f .execCreateFunc (container , config )
56+ return f .execCreateFunc (containerID , config )
5757 }
5858 return types.IDResponse {}, nil
5959}
@@ -83,9 +83,9 @@ func (f *fakeClient) ContainerCreate(
8383 return container.CreateResponse {}, nil
8484}
8585
86- func (f * fakeClient ) ContainerRemove (ctx context.Context , container string , options container.RemoveOptions ) error {
86+ func (f * fakeClient ) ContainerRemove (ctx context.Context , containerID string , options container.RemoveOptions ) error {
8787 if f .containerRemoveFunc != nil {
88- return f .containerRemoveFunc (ctx , container , options )
88+ return f .containerRemoveFunc (ctx , containerID , options )
8989 }
9090 return nil
9191}
@@ -104,23 +104,23 @@ func (f *fakeClient) Info(_ context.Context) (system.Info, error) {
104104 return system.Info {}, nil
105105}
106106
107- func (f * fakeClient ) ContainerStatPath (_ context.Context , container , path string ) (types.ContainerPathStat , error ) {
107+ func (f * fakeClient ) ContainerStatPath (_ context.Context , containerID , path string ) (types.ContainerPathStat , error ) {
108108 if f .containerStatPathFunc != nil {
109- return f .containerStatPathFunc (container , path )
109+ return f .containerStatPathFunc (containerID , path )
110110 }
111111 return types.ContainerPathStat {}, nil
112112}
113113
114- func (f * fakeClient ) CopyFromContainer (_ context.Context , container , srcPath string ) (io.ReadCloser , types.ContainerPathStat , error ) {
114+ func (f * fakeClient ) CopyFromContainer (_ context.Context , containerID , srcPath string ) (io.ReadCloser , types.ContainerPathStat , error ) {
115115 if f .containerCopyFromFunc != nil {
116- return f .containerCopyFromFunc (container , srcPath )
116+ return f .containerCopyFromFunc (containerID , srcPath )
117117 }
118118 return nil , types.ContainerPathStat {}, nil
119119}
120120
121- func (f * fakeClient ) ContainerLogs (_ context.Context , container string , options container.LogsOptions ) (io.ReadCloser , error ) {
121+ func (f * fakeClient ) ContainerLogs (_ context.Context , containerID string , options container.LogsOptions ) (io.ReadCloser , error ) {
122122 if f .logFunc != nil {
123- return f .logFunc (container , options )
123+ return f .logFunc (containerID , options )
124124 }
125125 return nil , nil
126126}
@@ -129,23 +129,23 @@ func (f *fakeClient) ClientVersion() string {
129129 return f .Version
130130}
131131
132- func (f * fakeClient ) ContainerWait (_ context.Context , container string , _ container.WaitCondition ) (<- chan container.WaitResponse , <- chan error ) {
132+ func (f * fakeClient ) ContainerWait (_ context.Context , containerID string , _ container.WaitCondition ) (<- chan container.WaitResponse , <- chan error ) {
133133 if f .waitFunc != nil {
134- return f .waitFunc (container )
134+ return f .waitFunc (containerID )
135135 }
136136 return nil , nil
137137}
138138
139- func (f * fakeClient ) ContainerStart (_ context.Context , container string , options container.StartOptions ) error {
139+ func (f * fakeClient ) ContainerStart (_ context.Context , containerID string , options container.StartOptions ) error {
140140 if f .containerStartFunc != nil {
141- return f .containerStartFunc (container , options )
141+ return f .containerStartFunc (containerID , options )
142142 }
143143 return nil
144144}
145145
146- func (f * fakeClient ) ContainerExport (_ context.Context , container string ) (io.ReadCloser , error ) {
146+ func (f * fakeClient ) ContainerExport (_ context.Context , containerID string ) (io.ReadCloser , error ) {
147147 if f .containerExportFunc != nil {
148- return f .containerExportFunc (container )
148+ return f .containerExportFunc (containerID )
149149 }
150150 return nil , nil
151151}
@@ -157,9 +157,9 @@ func (f *fakeClient) ContainerExecResize(_ context.Context, id string, options c
157157 return nil
158158}
159159
160- func (f * fakeClient ) ContainerKill (ctx context.Context , container , signal string ) error {
160+ func (f * fakeClient ) ContainerKill (ctx context.Context , containerID , signal string ) error {
161161 if f .containerKillFunc != nil {
162- return f .containerKillFunc (ctx , container , signal )
162+ return f .containerKillFunc (ctx , containerID , signal )
163163 }
164164 return nil
165165}
0 commit comments