@@ -96,7 +96,7 @@ func (s *ServiceProxy) WithInterceptor(interceptors ...Interceptor) *ServiceProx
96
96
return s
97
97
}
98
98
99
- //Build implements Service interface
99
+ // Build implements Service interface
100
100
func (s * ServiceProxy ) Build (ctx context.Context , project * types.Project , options BuildOptions ) error {
101
101
if s .BuildFn == nil {
102
102
return ErrNotImplemented
@@ -107,7 +107,7 @@ func (s *ServiceProxy) Build(ctx context.Context, project *types.Project, option
107
107
return s .BuildFn (ctx , project , options )
108
108
}
109
109
110
- //Push implements Service interface
110
+ // Push implements Service interface
111
111
func (s * ServiceProxy ) Push (ctx context.Context , project * types.Project , options PushOptions ) error {
112
112
if s .PushFn == nil {
113
113
return ErrNotImplemented
@@ -118,7 +118,7 @@ func (s *ServiceProxy) Push(ctx context.Context, project *types.Project, options
118
118
return s .PushFn (ctx , project , options )
119
119
}
120
120
121
- //Pull implements Service interface
121
+ // Pull implements Service interface
122
122
func (s * ServiceProxy ) Pull (ctx context.Context , project * types.Project , options PullOptions ) error {
123
123
if s .PullFn == nil {
124
124
return ErrNotImplemented
@@ -129,7 +129,7 @@ func (s *ServiceProxy) Pull(ctx context.Context, project *types.Project, options
129
129
return s .PullFn (ctx , project , options )
130
130
}
131
131
132
- //Create implements Service interface
132
+ // Create implements Service interface
133
133
func (s * ServiceProxy ) Create (ctx context.Context , project * types.Project , options CreateOptions ) error {
134
134
if s .CreateFn == nil {
135
135
return ErrNotImplemented
@@ -140,7 +140,7 @@ func (s *ServiceProxy) Create(ctx context.Context, project *types.Project, optio
140
140
return s .CreateFn (ctx , project , options )
141
141
}
142
142
143
- //Start implements Service interface
143
+ // Start implements Service interface
144
144
func (s * ServiceProxy ) Start (ctx context.Context , project * types.Project , options StartOptions ) error {
145
145
if s .StartFn == nil {
146
146
return ErrNotImplemented
@@ -151,7 +151,7 @@ func (s *ServiceProxy) Start(ctx context.Context, project *types.Project, option
151
151
return s .StartFn (ctx , project , options )
152
152
}
153
153
154
- //Restart implements Service interface
154
+ // Restart implements Service interface
155
155
func (s * ServiceProxy ) Restart (ctx context.Context , project * types.Project , options RestartOptions ) error {
156
156
if s .RestartFn == nil {
157
157
return ErrNotImplemented
@@ -162,7 +162,7 @@ func (s *ServiceProxy) Restart(ctx context.Context, project *types.Project, opti
162
162
return s .RestartFn (ctx , project , options )
163
163
}
164
164
165
- //Stop implements Service interface
165
+ // Stop implements Service interface
166
166
func (s * ServiceProxy ) Stop (ctx context.Context , project * types.Project , options StopOptions ) error {
167
167
if s .StopFn == nil {
168
168
return ErrNotImplemented
@@ -173,7 +173,7 @@ func (s *ServiceProxy) Stop(ctx context.Context, project *types.Project, options
173
173
return s .StopFn (ctx , project , options )
174
174
}
175
175
176
- //Up implements Service interface
176
+ // Up implements Service interface
177
177
func (s * ServiceProxy ) Up (ctx context.Context , project * types.Project , options UpOptions ) error {
178
178
if s .UpFn == nil {
179
179
return ErrNotImplemented
@@ -184,39 +184,39 @@ func (s *ServiceProxy) Up(ctx context.Context, project *types.Project, options U
184
184
return s .UpFn (ctx , project , options )
185
185
}
186
186
187
- //Down implements Service interface
187
+ // Down implements Service interface
188
188
func (s * ServiceProxy ) Down (ctx context.Context , project string , options DownOptions ) error {
189
189
if s .DownFn == nil {
190
190
return ErrNotImplemented
191
191
}
192
192
return s .DownFn (ctx , project , options )
193
193
}
194
194
195
- //Logs implements Service interface
196
- func (s * ServiceProxy ) Logs (ctx context.Context , project string , consumer LogConsumer , options LogOptions ) error {
195
+ // Logs implements Service interface
196
+ func (s * ServiceProxy ) Logs (ctx context.Context , projectName string , consumer LogConsumer , options LogOptions ) error {
197
197
if s .LogsFn == nil {
198
198
return ErrNotImplemented
199
199
}
200
- return s .LogsFn (ctx , project , consumer , options )
200
+ return s .LogsFn (ctx , projectName , consumer , options )
201
201
}
202
202
203
- //Ps implements Service interface
203
+ // Ps implements Service interface
204
204
func (s * ServiceProxy ) Ps (ctx context.Context , project string , options PsOptions ) ([]ContainerSummary , error ) {
205
205
if s .PsFn == nil {
206
206
return nil , ErrNotImplemented
207
207
}
208
208
return s .PsFn (ctx , project , options )
209
209
}
210
210
211
- //List implements Service interface
211
+ // List implements Service interface
212
212
func (s * ServiceProxy ) List (ctx context.Context , options ListOptions ) ([]Stack , error ) {
213
213
if s .ListFn == nil {
214
214
return nil , ErrNotImplemented
215
215
}
216
216
return s .ListFn (ctx , options )
217
217
}
218
218
219
- //Convert implements Service interface
219
+ // Convert implements Service interface
220
220
func (s * ServiceProxy ) Convert (ctx context.Context , project * types.Project , options ConvertOptions ) ([]byte , error ) {
221
221
if s .ConvertFn == nil {
222
222
return nil , ErrNotImplemented
@@ -227,7 +227,7 @@ func (s *ServiceProxy) Convert(ctx context.Context, project *types.Project, opti
227
227
return s .ConvertFn (ctx , project , options )
228
228
}
229
229
230
- //Kill implements Service interface
230
+ // Kill implements Service interface
231
231
func (s * ServiceProxy ) Kill (ctx context.Context , project * types.Project , options KillOptions ) error {
232
232
if s .KillFn == nil {
233
233
return ErrNotImplemented
@@ -238,7 +238,7 @@ func (s *ServiceProxy) Kill(ctx context.Context, project *types.Project, options
238
238
return s .KillFn (ctx , project , options )
239
239
}
240
240
241
- //RunOneOffContainer implements Service interface
241
+ // RunOneOffContainer implements Service interface
242
242
func (s * ServiceProxy ) RunOneOffContainer (ctx context.Context , project * types.Project , options RunOptions ) (int , error ) {
243
243
if s .RunOneOffContainerFn == nil {
244
244
return 0 , ErrNotImplemented
@@ -249,7 +249,7 @@ func (s *ServiceProxy) RunOneOffContainer(ctx context.Context, project *types.Pr
249
249
return s .RunOneOffContainerFn (ctx , project , options )
250
250
}
251
251
252
- //Remove implements Service interface
252
+ // Remove implements Service interface
253
253
func (s * ServiceProxy ) Remove (ctx context.Context , project * types.Project , options RemoveOptions ) error {
254
254
if s .RemoveFn == nil {
255
255
return ErrNotImplemented
@@ -260,7 +260,7 @@ func (s *ServiceProxy) Remove(ctx context.Context, project *types.Project, optio
260
260
return s .RemoveFn (ctx , project , options )
261
261
}
262
262
263
- //Exec implements Service interface
263
+ // Exec implements Service interface
264
264
func (s * ServiceProxy ) Exec (ctx context.Context , project * types.Project , options RunOptions ) (int , error ) {
265
265
if s .ExecFn == nil {
266
266
return 0 , ErrNotImplemented
@@ -271,7 +271,7 @@ func (s *ServiceProxy) Exec(ctx context.Context, project *types.Project, options
271
271
return s .ExecFn (ctx , project , options )
272
272
}
273
273
274
- //Copy implements Service interface
274
+ // Copy implements Service interface
275
275
func (s * ServiceProxy ) Copy (ctx context.Context , project * types.Project , options CopyOptions ) error {
276
276
if s .CopyFn == nil {
277
277
return ErrNotImplemented
@@ -282,47 +282,47 @@ func (s *ServiceProxy) Copy(ctx context.Context, project *types.Project, options
282
282
return s .CopyFn (ctx , project , options )
283
283
}
284
284
285
- //Pause implements Service interface
285
+ // Pause implements Service interface
286
286
func (s * ServiceProxy ) Pause (ctx context.Context , project string , options PauseOptions ) error {
287
287
if s .PauseFn == nil {
288
288
return ErrNotImplemented
289
289
}
290
290
return s .PauseFn (ctx , project , options )
291
291
}
292
292
293
- //UnPause implements Service interface
293
+ // UnPause implements Service interface
294
294
func (s * ServiceProxy ) UnPause (ctx context.Context , project string , options PauseOptions ) error {
295
295
if s .UnPauseFn == nil {
296
296
return ErrNotImplemented
297
297
}
298
298
return s .UnPauseFn (ctx , project , options )
299
299
}
300
300
301
- //Top implements Service interface
301
+ // Top implements Service interface
302
302
func (s * ServiceProxy ) Top (ctx context.Context , project string , services []string ) ([]ContainerProcSummary , error ) {
303
303
if s .TopFn == nil {
304
304
return nil , ErrNotImplemented
305
305
}
306
306
return s .TopFn (ctx , project , services )
307
307
}
308
308
309
- //Events implements Service interface
309
+ // Events implements Service interface
310
310
func (s * ServiceProxy ) Events (ctx context.Context , project string , options EventsOptions ) error {
311
311
if s .EventsFn == nil {
312
312
return ErrNotImplemented
313
313
}
314
314
return s .EventsFn (ctx , project , options )
315
315
}
316
316
317
- //Port implements Service interface
317
+ // Port implements Service interface
318
318
func (s * ServiceProxy ) Port (ctx context.Context , project string , service string , port int , options PortOptions ) (string , int , error ) {
319
319
if s .PortFn == nil {
320
320
return "" , 0 , ErrNotImplemented
321
321
}
322
322
return s .PortFn (ctx , project , service , port , options )
323
323
}
324
324
325
- //Images implements Service interface
325
+ // Images implements Service interface
326
326
func (s * ServiceProxy ) Images (ctx context.Context , project string , options ImagesOptions ) ([]ImageSummary , error ) {
327
327
if s .ImagesFn == nil {
328
328
return nil , ErrNotImplemented
0 commit comments