Skip to content

Commit 39f4897

Browse files
committed
vendor: moby/api v1.54.0-dev, moby/client v0.2.3-dev
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 9e10dc3 commit 39f4897

File tree

15 files changed

+195
-127
lines changed

15 files changed

+195
-127
lines changed

cli/compose/convert/service.go

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -572,30 +572,6 @@ func convertResources(source composetypes.Resources) (*swarm.ResourceRequirement
572572
return resources, nil
573573
}
574574

575-
// compareSwarmPortConfig returns the lexical ordering of a and b, and can be used
576-
// with [slices.SortFunc].
577-
//
578-
// The comparison is performed in the following priority order:
579-
//
580-
// 1. PublishedPort (host port)
581-
// 2. TargetPort (container port)
582-
// 3. Protocol
583-
// 4. PublishMode
584-
//
585-
// TODO(thaJeztah): define this on swarm.PortConfig itself to allow re-use.
586-
func compareSwarmPortConfig(a, b swarm.PortConfig) int {
587-
if n := cmp.Compare(a.PublishedPort, b.PublishedPort); n != 0 {
588-
return n
589-
}
590-
if n := cmp.Compare(a.TargetPort, b.TargetPort); n != 0 {
591-
return n
592-
}
593-
if n := cmp.Compare(a.Protocol, b.Protocol); n != 0 {
594-
return n
595-
}
596-
return cmp.Compare(a.PublishMode, b.PublishMode)
597-
}
598-
599575
func convertEndpointSpec(endpointMode string, source []composetypes.ServicePortConfig) *swarm.EndpointSpec {
600576
portConfigs := make([]swarm.PortConfig, 0, len(source))
601577
for _, port := range source {
@@ -607,7 +583,7 @@ func convertEndpointSpec(endpointMode string, source []composetypes.ServicePortC
607583
})
608584
}
609585

610-
slices.SortFunc(portConfigs, compareSwarmPortConfig)
586+
slices.SortFunc(portConfigs, swarm.PortConfig.Compare)
611587

612588
return &swarm.EndpointSpec{
613589
Mode: swarm.ResolutionMode(strings.ToLower(endpointMode)),

vendor.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ require (
2828
github.com/google/uuid v1.6.0
2929
github.com/mattn/go-runewidth v0.0.19
3030
github.com/moby/go-archive v0.2.0
31-
github.com/moby/moby/api v1.53.0
32-
github.com/moby/moby/client v0.2.2
31+
github.com/moby/moby/api v1.53.1-0.20260227162848-63ba8d97a4b9
32+
github.com/moby/moby/client v0.2.3-0.20260227162848-63ba8d97a4b9
3333
github.com/moby/patternmatcher v0.6.0
3434
github.com/moby/swarmkit/v2 v2.1.1
3535
github.com/moby/sys/atomicwriter v0.1.0

vendor.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3N
113113
github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo=
114114
github.com/moby/go-archive v0.2.0 h1:zg5QDUM2mi0JIM9fdQZWC7U8+2ZfixfTYoHL7rWUcP8=
115115
github.com/moby/go-archive v0.2.0/go.mod h1:mNeivT14o8xU+5q1YnNrkQVpK+dnNe/K6fHqnTg4qPU=
116-
github.com/moby/moby/api v1.53.0 h1:PihqG1ncw4W+8mZs69jlwGXdaYBeb5brF6BL7mPIS/w=
117-
github.com/moby/moby/api v1.53.0/go.mod h1:8mb+ReTlisw4pS6BRzCMts5M49W5M7bKt1cJy/YbAqc=
118-
github.com/moby/moby/client v0.2.2 h1:Pt4hRMCAIlyjL3cr8M5TrXCwKzguebPAc2do2ur7dEM=
119-
github.com/moby/moby/client v0.2.2/go.mod h1:2EkIPVNCqR05CMIzL1mfA07t0HvVUUOl85pasRz/GmQ=
116+
github.com/moby/moby/api v1.53.1-0.20260227162848-63ba8d97a4b9 h1:qESQbhQCa9wUpEn6P2DaYu0YODsiF+gPisZ2JVaurkk=
117+
github.com/moby/moby/api v1.53.1-0.20260227162848-63ba8d97a4b9/go.mod h1:8mb+ReTlisw4pS6BRzCMts5M49W5M7bKt1cJy/YbAqc=
118+
github.com/moby/moby/client v0.2.3-0.20260227162848-63ba8d97a4b9 h1:kH7kKQTsxwP9VTTONDxNNbNVnQB5toHMTCtNpiqbUgE=
119+
github.com/moby/moby/client v0.2.3-0.20260227162848-63ba8d97a4b9/go.mod h1:BLj1NHZAHj53G+DSOsojqE/AbtIFy+ygUNErODq1zbc=
120120
github.com/moby/patternmatcher v0.6.0 h1:GmP9lR19aU5GqSSFko+5pRqHi+Ohk1O69aFiKkVGiPk=
121121
github.com/moby/patternmatcher v0.6.0/go.mod h1:hDPoyOpDY7OrrMDLaYoY3hf52gNCR/YOUYxkhApJIxc=
122122
github.com/moby/swarmkit/v2 v2.1.1 h1:yvTJ8MMCc3f0qTA44J6R59EZ5yZawdYopkpuLk4+ICU=

vendor/github.com/moby/moby/api/types/jsonstream/json_error.go

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

vendor/github.com/moby/moby/api/types/swarm/network.go

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

vendor/github.com/moby/moby/api/types/types.go

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

vendor/github.com/moby/moby/client/container_logs.go

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moby/moby/client/internal/jsonmessages.go

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

vendor/github.com/moby/moby/client/pkg/jsonmessage/jsonmessage.go

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

vendor/github.com/moby/moby/client/pkg/progress/progress.go

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

0 commit comments

Comments
 (0)