Skip to content

Commit 8fc956c

Browse files
authored
Merge pull request #4244 from thaJeztah/update_engine_next
vendor: github.com/docker/docker github.com/docker/docker v24.0.0-rc.1.0.20230505222407-8d9a40a82034 (v24.0.0-rc.2)
2 parents f4201b9 + 4f97f55 commit 8fc956c

17 files changed

Lines changed: 185 additions & 116 deletions

cli/command/container/formatter_diff.go

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package container
33
import (
44
"github.com/docker/cli/cli/command/formatter"
55
"github.com/docker/docker/api/types/container"
6-
"github.com/docker/docker/pkg/archive"
76
)
87

98
const (
@@ -23,7 +22,7 @@ func NewDiffFormat(source string) formatter.Format {
2322
}
2423

2524
// DiffFormatWrite writes formatted diff using the Context
26-
func DiffFormatWrite(ctx formatter.Context, changes []container.ContainerChangeResponseItem) error {
25+
func DiffFormatWrite(ctx formatter.Context, changes []container.FilesystemChange) error {
2726
render := func(format func(subContext formatter.SubContext) error) error {
2827
for _, change := range changes {
2928
if err := format(&diffContext{c: change}); err != nil {
@@ -37,7 +36,7 @@ func DiffFormatWrite(ctx formatter.Context, changes []container.ContainerChangeR
3736

3837
type diffContext struct {
3938
formatter.HeaderContext
40-
c container.ContainerChangeResponseItem
39+
c container.FilesystemChange
4140
}
4241

4342
func newDiffContext() *diffContext {
@@ -54,16 +53,7 @@ func (d *diffContext) MarshalJSON() ([]byte, error) {
5453
}
5554

5655
func (d *diffContext) Type() string {
57-
var kind string
58-
switch d.c.Kind {
59-
case archive.ChangeModify:
60-
kind = "C"
61-
case archive.ChangeAdd:
62-
kind = "A"
63-
case archive.ChangeDelete:
64-
kind = "D"
65-
}
66-
return kind
56+
return d.c.Kind.String()
6757
}
6858

6959
func (d *diffContext) Path() string {

cli/command/container/formatter_diff_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66

77
"github.com/docker/cli/cli/command/formatter"
88
"github.com/docker/docker/api/types/container"
9-
"github.com/docker/docker/pkg/archive"
109
"gotest.tools/v3/assert"
1110
)
1211

@@ -41,10 +40,10 @@ D: /usr/app/old_app.js
4140
},
4241
}
4342

44-
diffs := []container.ContainerChangeResponseItem{
45-
{Kind: archive.ChangeModify, Path: "/var/log/app.log"},
46-
{Kind: archive.ChangeAdd, Path: "/usr/app/app.js"},
47-
{Kind: archive.ChangeDelete, Path: "/usr/app/old_app.js"},
43+
diffs := []container.FilesystemChange{
44+
{Kind: container.ChangeModify, Path: "/var/log/app.log"},
45+
{Kind: container.ChangeAdd, Path: "/usr/app/app.js"},
46+
{Kind: container.ChangeDelete, Path: "/usr/app/old_app.js"},
4847
}
4948

5049
for _, tc := range cases {

vendor.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ module github.com/docker/cli
77
go 1.18
88

99
require (
10-
github.com/containerd/containerd v1.6.20
10+
github.com/containerd/containerd v1.6.21
1111
github.com/creack/pty v1.1.18
1212
github.com/docker/distribution v2.8.1+incompatible
13-
github.com/docker/docker v24.0.0-rc.1+incompatible
13+
github.com/docker/docker v24.0.0-rc.1.0.20230505222407-8d9a40a82034+incompatible
1414
github.com/docker/docker-credential-helpers v0.7.0
1515
github.com/docker/go-connections v0.4.0
1616
github.com/docker/go-units v0.5.0
@@ -61,7 +61,7 @@ require (
6161
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
6262
github.com/miekg/pkcs11 v1.1.1 // indirect
6363
github.com/moby/sys/symlink v0.2.0 // indirect
64-
github.com/opencontainers/runc v1.1.6 // indirect
64+
github.com/opencontainers/runc v1.1.7 // indirect
6565
github.com/prometheus/client_golang v1.14.0 // indirect
6666
github.com/prometheus/client_model v0.3.0 // indirect
6767
github.com/prometheus/common v0.37.0 // indirect

vendor.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWH
8282
github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5/go.mod h1:h6jFvWxBdQXxjopDMZyH2UVceIRfR84bdzbkoKrsWNo=
8383
github.com/cockroachdb/errors v1.2.4/go.mod h1:rQD95gz6FARkaKkQXUksEje/d9a6wBJoCr5oaCLELYA=
8484
github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI=
85-
github.com/containerd/containerd v1.6.20 h1:+itjwpdqXpzHB/QAiWc/BZCjjVfcNgw69w/oIeF4Oy0=
86-
github.com/containerd/containerd v1.6.20/go.mod h1:apei1/i5Ux2FzrK6+DM/suEsGuK/MeVOfy8tR2q7Wnw=
85+
github.com/containerd/containerd v1.6.21 h1:eSTAmnvDKRPWan+MpSSfNyrtleXd86ogK9X8fMWpe/Q=
86+
github.com/containerd/containerd v1.6.21/go.mod h1:apei1/i5Ux2FzrK6+DM/suEsGuK/MeVOfy8tR2q7Wnw=
8787
github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
8888
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
8989
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
@@ -96,8 +96,8 @@ github.com/denisenkom/go-mssqldb v0.0.0-20191128021309-1d7a30a10f73/go.mod h1:xb
9696
github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
9797
github.com/docker/distribution v2.8.1+incompatible h1:Q50tZOPR6T/hjNsyc9g8/syEs6bk8XXApsHjKukMl68=
9898
github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
99-
github.com/docker/docker v24.0.0-rc.1+incompatible h1:xGLFfUFQ0mu4I22mzVJqGEdbWkdqDwIdloBIdr0rcJk=
100-
github.com/docker/docker v24.0.0-rc.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
99+
github.com/docker/docker v24.0.0-rc.1.0.20230505222407-8d9a40a82034+incompatible h1:Y2oMmZDlVZhIkKzBUCeY48pi8ophHyEAoW04ABKn3DU=
100+
github.com/docker/docker v24.0.0-rc.1.0.20230505222407-8d9a40a82034+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
101101
github.com/docker/docker-credential-helpers v0.7.0 h1:xtCHsjxogADNZcdv1pKUHXryefjlVRqWqIhk/uXJp0A=
102102
github.com/docker/docker-credential-helpers v0.7.0/go.mod h1:rETQfLdHNT3foU5kuNkFR1R1V12OJRRO5lzt2D1b5X0=
103103
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c h1:lzqkGL9b3znc+ZUgi7FlLnqjQhcXxkNM/quxIjBVMD0=
@@ -303,8 +303,8 @@ github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3I
303303
github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
304304
github.com/opencontainers/image-spec v1.1.0-rc2.0.20221005185240-3a7f492d3f1b h1:YWuSjZCQAPM8UUBLkYUk1e+rZcvWHJmFb6i6rM44Xs8=
305305
github.com/opencontainers/image-spec v1.1.0-rc2.0.20221005185240-3a7f492d3f1b/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ=
306-
github.com/opencontainers/runc v1.1.6 h1:XbhB8IfG/EsnhNvZtNdLB0GBw92GYEFvKlhaJk9jUgA=
307-
github.com/opencontainers/runc v1.1.6/go.mod h1:CbUumNnWCuTGFukNXahoo/RFBZvDAgRh/smNYNOhA50=
306+
github.com/opencontainers/runc v1.1.7 h1:y2EZDS8sNng4Ksf0GUYNhKbTShZJPJg1FiXJNH/uoCk=
307+
github.com/opencontainers/runc v1.1.7/go.mod h1:CbUumNnWCuTGFukNXahoo/RFBZvDAgRh/smNYNOhA50=
308308
github.com/opentracing/opentracing-go v1.1.0 h1:pWlfV3Bxv7k65HYwkikxat0+s3pV4bsqf19k25Ur8rU=
309309
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
310310
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=

vendor/github.com/docker/docker/api/swagger.yaml

Lines changed: 40 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/types/container/change_response_deprecated.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/types/container/change_type.go

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/types/container/change_types.go

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/types/container/container_changes.go

Lines changed: 0 additions & 20 deletions
This file was deleted.

vendor/github.com/docker/docker/api/types/container/filesystem_change.go

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)