Skip to content

Commit 4f97f55

Browse files
committed
vendor: github.com/docker/docker v24.0.0-rc.1.0.20230505222407-8d9a40a82034
This will be v24.0.0-rc.2 full diff: moby/moby@v24.0.0-rc.1...8d9a40a Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 0428418 commit 4f97f55

17 files changed

Lines changed: 177 additions & 108 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
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

vendor.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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=

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)