@@ -33,10 +33,8 @@ import (
3333 "github.com/docker/buildx/util/imagetools"
3434 "github.com/docker/cli/cli/command"
3535 moby "github.com/moby/moby/api/types"
36- "github.com/moby/moby/api/types/build"
3736 containerType "github.com/moby/moby/api/types/container"
3837 "github.com/moby/moby/api/types/events"
39- "github.com/moby/moby/api/types/filters"
4038 "github.com/moby/moby/api/types/image"
4139 "github.com/moby/moby/api/types/jsonstream"
4240 "github.com/moby/moby/api/types/network"
@@ -239,12 +237,11 @@ func (d *DryRunClient) ImageInspectWithRaw(ctx context.Context, imageName string
239237 return resp , buf .Bytes (), err
240238}
241239
242- func (d * DryRunClient ) ImagePull (ctx context.Context , ref string , options client.ImagePullOptions ) (io. ReadCloser , error ) {
240+ func (d * DryRunClient ) ImagePull (ctx context.Context , ref string , options client.ImagePullOptions ) (client. ImagePullResponse , error ) {
243241 if _ , _ , err := d .resolver .Resolve (ctx , ref ); err != nil {
244- return nil , err
242+ return client. ImagePullResponse {} , err
245243 }
246- rc := io .NopCloser (strings .NewReader ("" ))
247- return rc , nil
244+ return client.ImagePullResponse {}, nil
248245}
249246
250247func (d * DryRunClient ) ImagePush (ctx context.Context , ref string , options client.ImagePushOptions ) (io.ReadCloser , error ) {
@@ -415,20 +412,20 @@ func (d *DryRunClient) ContainerWait(ctx context.Context, container string, cond
415412 return d .apiClient .ContainerWait (ctx , container , condition )
416413}
417414
418- func (d * DryRunClient ) ContainersPrune (ctx context.Context , pruneFilters filters. Args ) (containerType.PruneReport , error ) {
415+ func (d * DryRunClient ) ContainersPrune (ctx context.Context , pruneFilters client. Filters ) (containerType.PruneReport , error ) {
419416 return d .apiClient .ContainersPrune (ctx , pruneFilters )
420417}
421418
422419func (d * DryRunClient ) DistributionInspect (ctx context.Context , imageName , encodedRegistryAuth string ) (registry.DistributionInspect , error ) {
423420 return d .apiClient .DistributionInspect (ctx , imageName , encodedRegistryAuth )
424421}
425422
426- func (d * DryRunClient ) BuildCachePrune (ctx context.Context , opts client.BuildCachePruneOptions ) (* build. CachePruneReport , error ) {
423+ func (d * DryRunClient ) BuildCachePrune (ctx context.Context , opts client.BuildCachePruneOptions ) (client. BuildCachePruneResult , error ) {
427424 return d .apiClient .BuildCachePrune (ctx , opts )
428425}
429426
430- func (d * DryRunClient ) BuildCancel (ctx context.Context , id string ) error {
431- return d .apiClient .BuildCancel (ctx , id )
427+ func (d * DryRunClient ) BuildCancel (ctx context.Context , id string , opts client. BuildCancelOptions ) error {
428+ return d .apiClient .BuildCancel (ctx , id , opts )
432429}
433430
434431func (d * DryRunClient ) ImageCreate (ctx context.Context , parentReference string , options client.ImageCreateOptions ) (io.ReadCloser , error ) {
@@ -463,7 +460,7 @@ func (d *DryRunClient) ImageTag(ctx context.Context, imageName, ref string) erro
463460 return d .apiClient .ImageTag (ctx , imageName , ref )
464461}
465462
466- func (d * DryRunClient ) ImagesPrune (ctx context.Context , pruneFilter filters. Args ) (image.PruneReport , error ) {
463+ func (d * DryRunClient ) ImagesPrune (ctx context.Context , pruneFilter client. Filters ) (image.PruneReport , error ) {
467464 return d .apiClient .ImagesPrune (ctx , pruneFilter )
468465}
469466
@@ -495,11 +492,11 @@ func (d *DryRunClient) NetworkList(ctx context.Context, options client.NetworkLi
495492 return d .apiClient .NetworkList (ctx , options )
496493}
497494
498- func (d * DryRunClient ) NetworksPrune (ctx context.Context , pruneFilter filters. Args ) (network.PruneReport , error ) {
495+ func (d * DryRunClient ) NetworksPrune (ctx context.Context , pruneFilter client. Filters ) (network.PruneReport , error ) {
499496 return d .apiClient .NetworksPrune (ctx , pruneFilter )
500497}
501498
502- func (d * DryRunClient ) PluginList (ctx context.Context , filter filters. Args ) (plugin.ListResponse , error ) {
499+ func (d * DryRunClient ) PluginList (ctx context.Context , filter client. Filters ) (plugin.ListResponse , error ) {
503500 return d .apiClient .PluginList (ctx , filter )
504501}
505502
@@ -655,7 +652,7 @@ func (d *DryRunClient) VolumeList(ctx context.Context, opts client.VolumeListOpt
655652 return d .apiClient .VolumeList (ctx , opts )
656653}
657654
658- func (d * DryRunClient ) VolumesPrune (ctx context.Context , pruneFilter filters. Args ) (volume.PruneReport , error ) {
655+ func (d * DryRunClient ) VolumesPrune (ctx context.Context , pruneFilter client. Filters ) (volume.PruneReport , error ) {
659656 return d .apiClient .VolumesPrune (ctx , pruneFilter )
660657}
661658
0 commit comments