@@ -34,6 +34,7 @@ import (
3434 "github.com/docker/buildx/util/imagetools"
3535 "github.com/docker/cli/cli/command"
3636 moby "github.com/docker/docker/api/types"
37+ "github.com/docker/docker/api/types/build"
3738 "github.com/docker/docker/api/types/checkpoint"
3839 containerType "github.com/docker/docker/api/types/container"
3940 "github.com/docker/docker/api/types/events"
@@ -205,18 +206,18 @@ func (d *DryRunClient) CopyToContainer(ctx context.Context, container, path stri
205206 return nil
206207}
207208
208- func (d * DryRunClient ) ImageBuild (ctx context.Context , reader io.Reader , options moby .ImageBuildOptions ) (moby .ImageBuildResponse , error ) {
209+ func (d * DryRunClient ) ImageBuild (ctx context.Context , reader io.Reader , options build .ImageBuildOptions ) (build .ImageBuildResponse , error ) {
209210 jsonMessage , err := json .Marshal (& jsonmessage.JSONMessage {
210211 Status : fmt .Sprintf ("%[1]sSuccessfully built: dryRunID\n %[1]sSuccessfully tagged: %[2]s\n " , DRYRUN_PREFIX , options .Tags [0 ]),
211212 Progress : & jsonmessage.JSONProgress {},
212213 ID : "" ,
213214 })
214215 if err != nil {
215- return moby .ImageBuildResponse {}, err
216+ return build .ImageBuildResponse {}, err
216217 }
217218 rc := io .NopCloser (bytes .NewReader (jsonMessage ))
218219
219- return moby .ImageBuildResponse {
220+ return build .ImageBuildResponse {
220221 Body : rc ,
221222 OSType : "" ,
222223 }, nil
@@ -334,11 +335,11 @@ func (d *DryRunClient) ContainerExecStart(ctx context.Context, execID string, co
334335
335336// Functions delegated to original APIClient (not used by Compose or not modifying the Compose stack
336337
337- func (d * DryRunClient ) ConfigList (ctx context.Context , options moby .ConfigListOptions ) ([]swarm.Config , error ) {
338+ func (d * DryRunClient ) ConfigList (ctx context.Context , options swarm .ConfigListOptions ) ([]swarm.Config , error ) {
338339 return d .apiClient .ConfigList (ctx , options )
339340}
340341
341- func (d * DryRunClient ) ConfigCreate (ctx context.Context , config swarm.ConfigSpec ) (moby .ConfigCreateResponse , error ) {
342+ func (d * DryRunClient ) ConfigCreate (ctx context.Context , config swarm.ConfigSpec ) (swarm .ConfigCreateResponse , error ) {
342343 return d .apiClient .ConfigCreate (ctx , config )
343344}
344345
@@ -422,7 +423,7 @@ func (d *DryRunClient) DistributionInspect(ctx context.Context, imageName, encod
422423 return d .apiClient .DistributionInspect (ctx , imageName , encodedRegistryAuth )
423424}
424425
425- func (d * DryRunClient ) BuildCachePrune (ctx context.Context , opts moby. BuildCachePruneOptions ) (* moby. BuildCachePruneReport , error ) {
426+ func (d * DryRunClient ) BuildCachePrune (ctx context.Context , opts build. CachePruneOptions ) (* build. CachePruneReport , error ) {
426427 return d .apiClient .BuildCachePrune (ctx , opts )
427428}
428429
@@ -470,11 +471,11 @@ func (d *DryRunClient) NodeInspectWithRaw(ctx context.Context, nodeID string) (s
470471 return d .apiClient .NodeInspectWithRaw (ctx , nodeID )
471472}
472473
473- func (d * DryRunClient ) NodeList (ctx context.Context , options moby .NodeListOptions ) ([]swarm.Node , error ) {
474+ func (d * DryRunClient ) NodeList (ctx context.Context , options swarm .NodeListOptions ) ([]swarm.Node , error ) {
474475 return d .apiClient .NodeList (ctx , options )
475476}
476477
477- func (d * DryRunClient ) NodeRemove (ctx context.Context , nodeID string , options moby .NodeRemoveOptions ) error {
478+ func (d * DryRunClient ) NodeRemove (ctx context.Context , nodeID string , options swarm .NodeRemoveOptions ) error {
478479 return d .apiClient .NodeRemove (ctx , nodeID , options )
479480}
480481
@@ -538,23 +539,23 @@ func (d *DryRunClient) PluginCreate(ctx context.Context, createContext io.Reader
538539 return d .apiClient .PluginCreate (ctx , createContext , options )
539540}
540541
541- func (d * DryRunClient ) ServiceCreate (ctx context.Context , service swarm.ServiceSpec , options moby .ServiceCreateOptions ) (swarm.ServiceCreateResponse , error ) {
542+ func (d * DryRunClient ) ServiceCreate (ctx context.Context , service swarm.ServiceSpec , options swarm .ServiceCreateOptions ) (swarm.ServiceCreateResponse , error ) {
542543 return d .apiClient .ServiceCreate (ctx , service , options )
543544}
544545
545- func (d * DryRunClient ) ServiceInspectWithRaw (ctx context.Context , serviceID string , options moby .ServiceInspectOptions ) (swarm.Service , []byte , error ) {
546+ func (d * DryRunClient ) ServiceInspectWithRaw (ctx context.Context , serviceID string , options swarm .ServiceInspectOptions ) (swarm.Service , []byte , error ) {
546547 return d .apiClient .ServiceInspectWithRaw (ctx , serviceID , options )
547548}
548549
549- func (d * DryRunClient ) ServiceList (ctx context.Context , options moby .ServiceListOptions ) ([]swarm.Service , error ) {
550+ func (d * DryRunClient ) ServiceList (ctx context.Context , options swarm .ServiceListOptions ) ([]swarm.Service , error ) {
550551 return d .apiClient .ServiceList (ctx , options )
551552}
552553
553554func (d * DryRunClient ) ServiceRemove (ctx context.Context , serviceID string ) error {
554555 return d .apiClient .ServiceRemove (ctx , serviceID )
555556}
556557
557- func (d * DryRunClient ) ServiceUpdate (ctx context.Context , serviceID string , version swarm.Version , service swarm.ServiceSpec , options moby .ServiceUpdateOptions ) (swarm.ServiceUpdateResponse , error ) {
558+ func (d * DryRunClient ) ServiceUpdate (ctx context.Context , serviceID string , version swarm.Version , service swarm.ServiceSpec , options swarm .ServiceUpdateOptions ) (swarm.ServiceUpdateResponse , error ) {
558559 return d .apiClient .ServiceUpdate (ctx , serviceID , version , service , options )
559560}
560561
@@ -570,7 +571,7 @@ func (d *DryRunClient) TaskInspectWithRaw(ctx context.Context, taskID string) (s
570571 return d .apiClient .TaskInspectWithRaw (ctx , taskID )
571572}
572573
573- func (d * DryRunClient ) TaskList (ctx context.Context , options moby .TaskListOptions ) ([]swarm.Task , error ) {
574+ func (d * DryRunClient ) TaskList (ctx context.Context , options swarm .TaskListOptions ) ([]swarm.Task , error ) {
574575 return d .apiClient .TaskList (ctx , options )
575576}
576577
@@ -582,7 +583,7 @@ func (d *DryRunClient) SwarmJoin(ctx context.Context, req swarm.JoinRequest) err
582583 return d .apiClient .SwarmJoin (ctx , req )
583584}
584585
585- func (d * DryRunClient ) SwarmGetUnlockKey (ctx context.Context ) (moby. SwarmUnlockKeyResponse , error ) {
586+ func (d * DryRunClient ) SwarmGetUnlockKey (ctx context.Context ) (swarm. UnlockKeyResponse , error ) {
586587 return d .apiClient .SwarmGetUnlockKey (ctx )
587588}
588589
@@ -602,11 +603,11 @@ func (d *DryRunClient) SwarmUpdate(ctx context.Context, version swarm.Version, s
602603 return d .apiClient .SwarmUpdate (ctx , version , swarmSpec , flags )
603604}
604605
605- func (d * DryRunClient ) SecretList (ctx context.Context , options moby .SecretListOptions ) ([]swarm.Secret , error ) {
606+ func (d * DryRunClient ) SecretList (ctx context.Context , options swarm .SecretListOptions ) ([]swarm.Secret , error ) {
606607 return d .apiClient .SecretList (ctx , options )
607608}
608609
609- func (d * DryRunClient ) SecretCreate (ctx context.Context , secret swarm.SecretSpec ) (moby .SecretCreateResponse , error ) {
610+ func (d * DryRunClient ) SecretCreate (ctx context.Context , secret swarm.SecretSpec ) (swarm .SecretCreateResponse , error ) {
610611 return d .apiClient .SecretCreate (ctx , secret )
611612}
612613
0 commit comments