@@ -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"
@@ -241,12 +239,11 @@ func (d *DryRunClient) ImageInspectWithRaw(ctx context.Context, imageName string
241239 return resp , buf .Bytes (), err
242240}
243241
244- func (d * DryRunClient ) ImagePull (ctx context.Context , ref string , options client.ImagePullOptions ) (io. ReadCloser , error ) {
242+ func (d * DryRunClient ) ImagePull (ctx context.Context , ref string , options client.ImagePullOptions ) (client. ImagePullResponse , error ) {
245243 if _ , _ , err := d .resolver .Resolve (ctx , ref ); err != nil {
246- return nil , err
244+ return client. ImagePullResponse {} , err
247245 }
248- rc := io .NopCloser (strings .NewReader ("" ))
249- return rc , nil
246+ return client.ImagePullResponse {}, nil
250247}
251248
252249func (d * DryRunClient ) ImagePush (ctx context.Context , ref string , options client.ImagePushOptions ) (io.ReadCloser , error ) {
@@ -417,20 +414,20 @@ func (d *DryRunClient) ContainerWait(ctx context.Context, container string, cond
417414 return d .apiClient .ContainerWait (ctx , container , condition )
418415}
419416
420- func (d * DryRunClient ) ContainersPrune (ctx context.Context , pruneFilters filters. Args ) (containerType.PruneReport , error ) {
417+ func (d * DryRunClient ) ContainersPrune (ctx context.Context , pruneFilters client. Filters ) (containerType.PruneReport , error ) {
421418 return d .apiClient .ContainersPrune (ctx , pruneFilters )
422419}
423420
424421func (d * DryRunClient ) DistributionInspect (ctx context.Context , imageName , encodedRegistryAuth string ) (registry.DistributionInspect , error ) {
425422 return d .apiClient .DistributionInspect (ctx , imageName , encodedRegistryAuth )
426423}
427424
428- func (d * DryRunClient ) BuildCachePrune (ctx context.Context , opts client.BuildCachePruneOptions ) (* build. CachePruneReport , error ) {
425+ func (d * DryRunClient ) BuildCachePrune (ctx context.Context , opts client.BuildCachePruneOptions ) (client. BuildCachePruneResult , error ) {
429426 return d .apiClient .BuildCachePrune (ctx , opts )
430427}
431428
432- func (d * DryRunClient ) BuildCancel (ctx context.Context , id string ) error {
433- return d .apiClient .BuildCancel (ctx , id )
429+ func (d * DryRunClient ) BuildCancel (ctx context.Context , id string , opts client. BuildCancelOptions ) error {
430+ return d .apiClient .BuildCancel (ctx , id , opts )
434431}
435432
436433func (d * DryRunClient ) ImageCreate (ctx context.Context , parentReference string , options client.ImageCreateOptions ) (io.ReadCloser , error ) {
@@ -465,7 +462,7 @@ func (d *DryRunClient) ImageTag(ctx context.Context, imageName, ref string) erro
465462 return d .apiClient .ImageTag (ctx , imageName , ref )
466463}
467464
468- func (d * DryRunClient ) ImagesPrune (ctx context.Context , pruneFilter filters. Args ) (image.PruneReport , error ) {
465+ func (d * DryRunClient ) ImagesPrune (ctx context.Context , pruneFilter client. Filters ) (image.PruneReport , error ) {
469466 return d .apiClient .ImagesPrune (ctx , pruneFilter )
470467}
471468
@@ -497,11 +494,11 @@ func (d *DryRunClient) NetworkList(ctx context.Context, options client.NetworkLi
497494 return d .apiClient .NetworkList (ctx , options )
498495}
499496
500- func (d * DryRunClient ) NetworksPrune (ctx context.Context , pruneFilter filters. Args ) (network.PruneReport , error ) {
497+ func (d * DryRunClient ) NetworksPrune (ctx context.Context , pruneFilter client. Filters ) (network.PruneReport , error ) {
501498 return d .apiClient .NetworksPrune (ctx , pruneFilter )
502499}
503500
504- func (d * DryRunClient ) PluginList (ctx context.Context , filter filters. Args ) (plugin.ListResponse , error ) {
501+ func (d * DryRunClient ) PluginList (ctx context.Context , filter client. Filters ) (plugin.ListResponse , error ) {
505502 return d .apiClient .PluginList (ctx , filter )
506503}
507504
@@ -657,7 +654,7 @@ func (d *DryRunClient) VolumeList(ctx context.Context, opts client.VolumeListOpt
657654 return d .apiClient .VolumeList (ctx , opts )
658655}
659656
660- func (d * DryRunClient ) VolumesPrune (ctx context.Context , pruneFilter filters. Args ) (volume.PruneReport , error ) {
657+ func (d * DryRunClient ) VolumesPrune (ctx context.Context , pruneFilter client. Filters ) (volume.PruneReport , error ) {
661658 return d .apiClient .VolumesPrune (ctx , pruneFilter )
662659}
663660
0 commit comments