@@ -196,6 +196,11 @@ func (client *NopClient) ContainerWait(ctx context.Context, container string) (i
196
196
return 0 , errNoEngine
197
197
}
198
198
199
+ // ContainersPrune requests the daemon to delete unused data
200
+ func (client * NopClient ) ContainersPrune (ctx context.Context , cfg types.ContainersPruneConfig ) (types.ContainersPruneReport , error ) {
201
+ return types.ContainersPruneReport {}, errNoEngine
202
+ }
203
+
199
204
// CopyFromContainer gets the content from the container and returns it as a Reader to manipulate it in the host
200
205
func (client * NopClient ) CopyFromContainer (ctx context.Context , container , srcPath string ) (io.ReadCloser , types.ContainerPathStat , error ) {
201
206
return nil , types.ContainerPathStat {}, errNoEngine
@@ -206,6 +211,11 @@ func (client *NopClient) CopyToContainer(ctx context.Context, container, path st
206
211
return errNoEngine
207
212
}
208
213
214
+ // DiskUsage requests the current data usage from the daemon
215
+ func (client * NopClient ) DiskUsage (ctx context.Context ) (types.DiskUsage , error ) {
216
+ return types.DiskUsage {}, errNoEngine
217
+ }
218
+
209
219
// Events returns a stream of events in the daemon in a ReadCloser
210
220
func (client * NopClient ) Events (ctx context.Context , options types.EventsOptions ) (<- chan events.Message , <- chan error ) {
211
221
return nil , nil
@@ -276,6 +286,11 @@ func (client *NopClient) ImageTag(ctx context.Context, image, ref string) error
276
286
return errNoEngine
277
287
}
278
288
289
+ // ImagesPrune requests the daemon to delete unused data
290
+ func (client * NopClient ) ImagesPrune (ctx context.Context , cfg types.ImagesPruneConfig ) (types.ImagesPruneReport , error ) {
291
+ return types.ImagesPruneReport {}, errNoEngine
292
+ }
293
+
279
294
// Info returns information about the docker server
280
295
func (client * NopClient ) Info (ctx context.Context ) (types.Info , error ) {
281
296
return types.Info {}, errNoEngine
@@ -354,3 +369,8 @@ func (client *NopClient) VolumeList(ctx context.Context, filter filters.Args) (t
354
369
func (client * NopClient ) VolumeRemove (ctx context.Context , volumeID string , force bool ) error {
355
370
return errNoEngine
356
371
}
372
+
373
+ // VolumesPrune requests the daemon to delete unused data
374
+ func (client * NopClient ) VolumesPrune (ctx context.Context , cfg types.VolumesPruneConfig ) (types.VolumesPruneReport , error ) {
375
+ return types.VolumesPruneReport {}, errNoEngine
376
+ }
0 commit comments