@@ -128,14 +128,12 @@ func (d *DryRunClient) ContainerInspect(ctx context.Context, container string) (
128
128
}
129
129
}
130
130
return containerType.InspectResponse {
131
- ContainerJSONBase : & containerType.ContainerJSONBase {
132
- ID : id ,
133
- Name : container ,
134
- State : & containerType.State {
135
- Status : containerType .StateRunning , // needed for --wait option
136
- Health : & containerType.Health {
137
- Status : containerType .Healthy , // needed for healthcheck control
138
- },
131
+ ID : id ,
132
+ Name : container ,
133
+ State : & containerType.State {
134
+ Status : containerType .StateRunning , // needed for --wait option
135
+ Health : & containerType.Health {
136
+ Status : containerType .Healthy , // needed for healthcheck control
139
137
},
140
138
},
141
139
Mounts : nil ,
@@ -245,15 +243,15 @@ func (d *DryRunClient) ImageInspectWithRaw(ctx context.Context, imageName string
245
243
return resp , buf .Bytes (), err
246
244
}
247
245
248
- func (d * DryRunClient ) ImagePull (ctx context.Context , ref string , options image. PullOptions ) (io.ReadCloser , error ) {
246
+ func (d * DryRunClient ) ImagePull (ctx context.Context , ref string , options client. ImagePullOptions ) (io.ReadCloser , error ) {
249
247
if _ , _ , err := d .resolver .Resolve (ctx , ref ); err != nil {
250
248
return nil , err
251
249
}
252
250
rc := io .NopCloser (strings .NewReader ("" ))
253
251
return rc , nil
254
252
}
255
253
256
- func (d * DryRunClient ) ImagePush (ctx context.Context , ref string , options image. PushOptions ) (io.ReadCloser , error ) {
254
+ func (d * DryRunClient ) ImagePush (ctx context.Context , ref string , options client. ImagePushOptions ) (io.ReadCloser , error ) {
257
255
if _ , _ , err := d .resolver .Resolve (ctx , ref ); err != nil {
258
256
return nil , err
259
257
}
@@ -277,15 +275,15 @@ func (d *DryRunClient) ImagePush(ctx context.Context, ref string, options image.
277
275
return rc , nil
278
276
}
279
277
280
- func (d * DryRunClient ) ImageRemove (ctx context.Context , imageName string , options image. RemoveOptions ) ([]image.DeleteResponse , error ) {
278
+ func (d * DryRunClient ) ImageRemove (ctx context.Context , imageName string , options client. ImageRemoveOptions ) ([]image.DeleteResponse , error ) {
281
279
return nil , nil
282
280
}
283
281
284
282
func (d * DryRunClient ) NetworkConnect (ctx context.Context , networkName , container string , config * network.EndpointSettings ) error {
285
283
return nil
286
284
}
287
285
288
- func (d * DryRunClient ) NetworkCreate (ctx context.Context , name string , options network. CreateOptions ) (network.CreateResponse , error ) {
286
+ func (d * DryRunClient ) NetworkCreate (ctx context.Context , name string , options client. NetworkCreateOptions ) (network.CreateResponse , error ) {
289
287
return network.CreateResponse {
290
288
ID : name ,
291
289
Warning : "" ,
@@ -339,7 +337,7 @@ func (d *DryRunClient) ContainerExecStart(ctx context.Context, execID string, co
339
337
340
338
// Functions delegated to original APIClient (not used by Compose or not modifying the Compose stack
341
339
342
- func (d * DryRunClient ) ConfigList (ctx context.Context , options swarm .ConfigListOptions ) ([]swarm.Config , error ) {
340
+ func (d * DryRunClient ) ConfigList (ctx context.Context , options client .ConfigListOptions ) ([]swarm.Config , error ) {
343
341
return d .apiClient .ConfigList (ctx , options )
344
342
}
345
343
@@ -375,7 +373,7 @@ func (d *DryRunClient) ContainerExecInspect(ctx context.Context, execID string)
375
373
return d .apiClient .ContainerExecInspect (ctx , execID )
376
374
}
377
375
378
- func (d * DryRunClient ) ContainerExecResize (ctx context.Context , execID string , options containerType. ResizeOptions ) error {
376
+ func (d * DryRunClient ) ContainerExecResize (ctx context.Context , execID string , options client. ContainerResizeOptions ) error {
379
377
return d .apiClient .ContainerExecResize (ctx , execID , options )
380
378
}
381
379
@@ -391,7 +389,7 @@ func (d *DryRunClient) ContainerLogs(ctx context.Context, container string, opti
391
389
return d .apiClient .ContainerLogs (ctx , container , options )
392
390
}
393
391
394
- func (d * DryRunClient ) ContainerResize (ctx context.Context , container string , options containerType. ResizeOptions ) error {
392
+ func (d * DryRunClient ) ContainerResize (ctx context.Context , container string , options client. ContainerResizeOptions ) error {
395
393
return d .apiClient .ContainerResize (ctx , container , options )
396
394
}
397
395
@@ -435,27 +433,27 @@ func (d *DryRunClient) BuildCancel(ctx context.Context, id string) error {
435
433
return d .apiClient .BuildCancel (ctx , id )
436
434
}
437
435
438
- func (d * DryRunClient ) ImageCreate (ctx context.Context , parentReference string , options image. CreateOptions ) (io.ReadCloser , error ) {
436
+ func (d * DryRunClient ) ImageCreate (ctx context.Context , parentReference string , options client. ImageCreateOptions ) (io.ReadCloser , error ) {
439
437
return d .apiClient .ImageCreate (ctx , parentReference , options )
440
438
}
441
439
442
440
func (d * DryRunClient ) ImageHistory (ctx context.Context , imageName string , options ... client.ImageHistoryOption ) ([]image.HistoryResponseItem , error ) {
443
441
return d .apiClient .ImageHistory (ctx , imageName , options ... )
444
442
}
445
443
446
- func (d * DryRunClient ) ImageImport (ctx context.Context , source image. ImportSource , ref string , options image. ImportOptions ) (io.ReadCloser , error ) {
444
+ func (d * DryRunClient ) ImageImport (ctx context.Context , source client. ImageImportSource , ref string , options client. ImageImportOptions ) (io.ReadCloser , error ) {
447
445
return d .apiClient .ImageImport (ctx , source , ref , options )
448
446
}
449
447
450
- func (d * DryRunClient ) ImageList (ctx context.Context , options image. ListOptions ) ([]image.Summary , error ) {
448
+ func (d * DryRunClient ) ImageList (ctx context.Context , options client. ImageListOptions ) ([]image.Summary , error ) {
451
449
return d .apiClient .ImageList (ctx , options )
452
450
}
453
451
454
452
func (d * DryRunClient ) ImageLoad (ctx context.Context , input io.Reader , options ... client.ImageLoadOption ) (image.LoadResponse , error ) {
455
453
return d .apiClient .ImageLoad (ctx , input , options ... )
456
454
}
457
455
458
- func (d * DryRunClient ) ImageSearch (ctx context.Context , term string , options registry. SearchOptions ) ([]registry.SearchResult , error ) {
456
+ func (d * DryRunClient ) ImageSearch (ctx context.Context , term string , options client. ImageSearchOptions ) ([]registry.SearchResult , error ) {
459
457
return d .apiClient .ImageSearch (ctx , term , options )
460
458
}
461
459
@@ -475,27 +473,27 @@ func (d *DryRunClient) NodeInspectWithRaw(ctx context.Context, nodeID string) (s
475
473
return d .apiClient .NodeInspectWithRaw (ctx , nodeID )
476
474
}
477
475
478
- func (d * DryRunClient ) NodeList (ctx context.Context , options swarm .NodeListOptions ) ([]swarm.Node , error ) {
476
+ func (d * DryRunClient ) NodeList (ctx context.Context , options client .NodeListOptions ) ([]swarm.Node , error ) {
479
477
return d .apiClient .NodeList (ctx , options )
480
478
}
481
479
482
- func (d * DryRunClient ) NodeRemove (ctx context.Context , nodeID string , options swarm .NodeRemoveOptions ) error {
480
+ func (d * DryRunClient ) NodeRemove (ctx context.Context , nodeID string , options client .NodeRemoveOptions ) error {
483
481
return d .apiClient .NodeRemove (ctx , nodeID , options )
484
482
}
485
483
486
484
func (d * DryRunClient ) NodeUpdate (ctx context.Context , nodeID string , version swarm.Version , node swarm.NodeSpec ) error {
487
485
return d .apiClient .NodeUpdate (ctx , nodeID , version , node )
488
486
}
489
487
490
- func (d * DryRunClient ) NetworkInspect (ctx context.Context , networkName string , options network. InspectOptions ) (network.Inspect , error ) {
488
+ func (d * DryRunClient ) NetworkInspect (ctx context.Context , networkName string , options client. NetworkInspectOptions ) (network.Inspect , error ) {
491
489
return d .apiClient .NetworkInspect (ctx , networkName , options )
492
490
}
493
491
494
- func (d * DryRunClient ) NetworkInspectWithRaw (ctx context.Context , networkName string , options network. InspectOptions ) (network.Inspect , []byte , error ) {
492
+ func (d * DryRunClient ) NetworkInspectWithRaw (ctx context.Context , networkName string , options client. NetworkInspectOptions ) (network.Inspect , []byte , error ) {
495
493
return d .apiClient .NetworkInspectWithRaw (ctx , networkName , options )
496
494
}
497
495
498
- func (d * DryRunClient ) NetworkList (ctx context.Context , options network. ListOptions ) ([]network.Inspect , error ) {
496
+ func (d * DryRunClient ) NetworkList (ctx context.Context , options client. NetworkListOptions ) ([]network.Inspect , error ) {
499
497
return d .apiClient .NetworkList (ctx , options )
500
498
}
501
499
@@ -543,24 +541,24 @@ func (d *DryRunClient) PluginCreate(ctx context.Context, createContext io.Reader
543
541
return d .apiClient .PluginCreate (ctx , createContext , options )
544
542
}
545
543
546
- func (d * DryRunClient ) ServiceCreate (ctx context.Context , service swarm.ServiceSpec , options swarm .ServiceCreateOptions ) (swarm.ServiceCreateResponse , error ) {
544
+ func (d * DryRunClient ) ServiceCreate (ctx context.Context , service swarm.ServiceSpec , options client .ServiceCreateOptions ) (swarm.ServiceCreateResponse , error ) {
547
545
return d .apiClient .ServiceCreate (ctx , service , options )
548
546
}
549
547
550
- func (d * DryRunClient ) ServiceInspectWithRaw (ctx context.Context , serviceID string , options swarm .ServiceInspectOptions ) (swarm.Service , []byte , error ) {
548
+ func (d * DryRunClient ) ServiceInspectWithRaw (ctx context.Context , serviceID string , options client .ServiceInspectOptions ) (swarm.Service , []byte , error ) {
551
549
return d .apiClient .ServiceInspectWithRaw (ctx , serviceID , options )
552
550
}
553
551
554
- func (d * DryRunClient ) ServiceList (ctx context.Context , options swarm .ServiceListOptions ) ([]swarm.Service , error ) {
552
+ func (d * DryRunClient ) ServiceList (ctx context.Context , options client .ServiceListOptions ) ([]swarm.Service , error ) {
555
553
return d .apiClient .ServiceList (ctx , options )
556
554
}
557
555
558
556
func (d * DryRunClient ) ServiceRemove (ctx context.Context , serviceID string ) error {
559
557
return d .apiClient .ServiceRemove (ctx , serviceID )
560
558
}
561
559
562
- func (d * DryRunClient ) ServiceUpdate (ctx context.Context , serviceID string , version swarm.Version , service swarm.ServiceSpec , options swarm .ServiceUpdateOptions ) (swarm.ServiceUpdateResponse , error ) {
563
- return d .apiClient .ServiceUpdate (ctx , serviceID , version , service , options )
560
+ func (d * DryRunClient ) ServiceUpdate (ctx context.Context , serviceID string , version swarm.Version , spec swarm.ServiceSpec , options client .ServiceUpdateOptions ) (swarm.ServiceUpdateResponse , error ) {
561
+ return d .apiClient .ServiceUpdate (ctx , serviceID , version , spec , options )
564
562
}
565
563
566
564
func (d * DryRunClient ) ServiceLogs (ctx context.Context , serviceID string , options containerType.LogsOptions ) (io.ReadCloser , error ) {
@@ -575,7 +573,7 @@ func (d *DryRunClient) TaskInspectWithRaw(ctx context.Context, taskID string) (s
575
573
return d .apiClient .TaskInspectWithRaw (ctx , taskID )
576
574
}
577
575
578
- func (d * DryRunClient ) TaskList (ctx context.Context , options swarm .TaskListOptions ) ([]swarm.Task , error ) {
576
+ func (d * DryRunClient ) TaskList (ctx context.Context , options client .TaskListOptions ) ([]swarm.Task , error ) {
579
577
return d .apiClient .TaskList (ctx , options )
580
578
}
581
579
@@ -603,11 +601,11 @@ func (d *DryRunClient) SwarmInspect(ctx context.Context) (swarm.Swarm, error) {
603
601
return d .apiClient .SwarmInspect (ctx )
604
602
}
605
603
606
- func (d * DryRunClient ) SwarmUpdate (ctx context.Context , version swarm.Version , swarmSpec swarm.Spec , flags swarm. UpdateFlags ) error {
604
+ func (d * DryRunClient ) SwarmUpdate (ctx context.Context , version swarm.Version , swarmSpec swarm.Spec , flags client. SwarmUpdateFlags ) error {
607
605
return d .apiClient .SwarmUpdate (ctx , version , swarmSpec , flags )
608
606
}
609
607
610
- func (d * DryRunClient ) SecretList (ctx context.Context , options swarm .SecretListOptions ) ([]swarm.Secret , error ) {
608
+ func (d * DryRunClient ) SecretList (ctx context.Context , options client .SecretListOptions ) ([]swarm.Secret , error ) {
611
609
return d .apiClient .SecretList (ctx , options )
612
610
}
613
611
@@ -627,7 +625,7 @@ func (d *DryRunClient) SecretUpdate(ctx context.Context, id string, version swar
627
625
return d .apiClient .SecretUpdate (ctx , id , version , secret )
628
626
}
629
627
630
- func (d * DryRunClient ) Events (ctx context.Context , options events. ListOptions ) (<- chan events.Message , <- chan error ) {
628
+ func (d * DryRunClient ) Events (ctx context.Context , options client. EventsListOptions ) (<- chan events.Message , <- chan error ) {
631
629
return d .apiClient .Events (ctx , options )
632
630
}
633
631
@@ -639,7 +637,7 @@ func (d *DryRunClient) RegistryLogin(ctx context.Context, auth registry.AuthConf
639
637
return d .apiClient .RegistryLogin (ctx , auth )
640
638
}
641
639
642
- func (d * DryRunClient ) DiskUsage (ctx context.Context , options system .DiskUsageOptions ) (system.DiskUsage , error ) {
640
+ func (d * DryRunClient ) DiskUsage (ctx context.Context , options client .DiskUsageOptions ) (system.DiskUsage , error ) {
643
641
return d .apiClient .DiskUsage (ctx , options )
644
642
}
645
643
@@ -655,7 +653,7 @@ func (d *DryRunClient) VolumeInspectWithRaw(ctx context.Context, volumeID string
655
653
return d .apiClient .VolumeInspectWithRaw (ctx , volumeID )
656
654
}
657
655
658
- func (d * DryRunClient ) VolumeList (ctx context.Context , opts volume. ListOptions ) (volume.ListResponse , error ) {
656
+ func (d * DryRunClient ) VolumeList (ctx context.Context , opts client. VolumeListOptions ) (volume.ListResponse , error ) {
659
657
return d .apiClient .VolumeList (ctx , opts )
660
658
}
661
659
0 commit comments