@@ -219,11 +219,11 @@ func (s *ServiceProxy) Convert(ctx context.Context, project *types.Project, opti
219219}
220220
221221// Kill implements Service interface
222- func (s * ServiceProxy ) Kill (ctx context.Context , project string , options KillOptions ) error {
222+ func (s * ServiceProxy ) Kill (ctx context.Context , projectName string , options KillOptions ) error {
223223 if s .KillFn == nil {
224224 return ErrNotImplemented
225225 }
226- return s .KillFn (ctx , project , options )
226+ return s .KillFn (ctx , projectName , options )
227227}
228228
229229// RunOneOffContainer implements Service interface
@@ -238,43 +238,43 @@ func (s *ServiceProxy) RunOneOffContainer(ctx context.Context, project *types.Pr
238238}
239239
240240// Remove implements Service interface
241- func (s * ServiceProxy ) Remove (ctx context.Context , project string , options RemoveOptions ) error {
241+ func (s * ServiceProxy ) Remove (ctx context.Context , projectName string , options RemoveOptions ) error {
242242 if s .RemoveFn == nil {
243243 return ErrNotImplemented
244244 }
245- return s .RemoveFn (ctx , project , options )
245+ return s .RemoveFn (ctx , projectName , options )
246246}
247247
248248// Exec implements Service interface
249- func (s * ServiceProxy ) Exec (ctx context.Context , project string , options RunOptions ) (int , error ) {
249+ func (s * ServiceProxy ) Exec (ctx context.Context , projectName string , options RunOptions ) (int , error ) {
250250 if s .ExecFn == nil {
251251 return 0 , ErrNotImplemented
252252 }
253- return s .ExecFn (ctx , project , options )
253+ return s .ExecFn (ctx , projectName , options )
254254}
255255
256256// Copy implements Service interface
257- func (s * ServiceProxy ) Copy (ctx context.Context , project string , options CopyOptions ) error {
257+ func (s * ServiceProxy ) Copy (ctx context.Context , projectName string , options CopyOptions ) error {
258258 if s .CopyFn == nil {
259259 return ErrNotImplemented
260260 }
261- return s .CopyFn (ctx , project , options )
261+ return s .CopyFn (ctx , projectName , options )
262262}
263263
264264// Pause implements Service interface
265- func (s * ServiceProxy ) Pause (ctx context.Context , project string , options PauseOptions ) error {
265+ func (s * ServiceProxy ) Pause (ctx context.Context , projectName string , options PauseOptions ) error {
266266 if s .PauseFn == nil {
267267 return ErrNotImplemented
268268 }
269- return s .PauseFn (ctx , project , options )
269+ return s .PauseFn (ctx , projectName , options )
270270}
271271
272272// UnPause implements Service interface
273- func (s * ServiceProxy ) UnPause (ctx context.Context , project string , options PauseOptions ) error {
273+ func (s * ServiceProxy ) UnPause (ctx context.Context , projectName string , options PauseOptions ) error {
274274 if s .UnPauseFn == nil {
275275 return ErrNotImplemented
276276 }
277- return s .UnPauseFn (ctx , project , options )
277+ return s .UnPauseFn (ctx , projectName , options )
278278}
279279
280280// Top implements Service interface
@@ -286,19 +286,19 @@ func (s *ServiceProxy) Top(ctx context.Context, project string, services []strin
286286}
287287
288288// Events implements Service interface
289- func (s * ServiceProxy ) Events (ctx context.Context , project string , options EventsOptions ) error {
289+ func (s * ServiceProxy ) Events (ctx context.Context , projectName string , options EventsOptions ) error {
290290 if s .EventsFn == nil {
291291 return ErrNotImplemented
292292 }
293- return s .EventsFn (ctx , project , options )
293+ return s .EventsFn (ctx , projectName , options )
294294}
295295
296296// Port implements Service interface
297- func (s * ServiceProxy ) Port (ctx context.Context , project string , service string , port int , options PortOptions ) (string , int , error ) {
297+ func (s * ServiceProxy ) Port (ctx context.Context , projectName string , service string , port int , options PortOptions ) (string , int , error ) {
298298 if s .PortFn == nil {
299299 return "" , 0 , ErrNotImplemented
300300 }
301- return s .PortFn (ctx , project , service , port , options )
301+ return s .PortFn (ctx , projectName , service , port , options )
302302}
303303
304304// Images implements Service interface
0 commit comments