Skip to content

Commit 2406d7b

Browse files
authored
Merge pull request moby#50534 from thaJeztah/move_backend
api/types: move backend types to daemon/server
2 parents 72455d5 + 83510a2 commit 2406d7b

File tree

98 files changed

+91
-349
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+91
-349
lines changed

daemon/attach.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"github.com/docker/docker/daemon/container"
1010
"github.com/docker/docker/daemon/internal/stream"
1111
"github.com/docker/docker/daemon/logger"
12+
"github.com/docker/docker/daemon/server/backend"
1213
"github.com/docker/docker/errdefs"
1314
"github.com/moby/moby/api/stdcopy"
14-
"github.com/moby/moby/api/types/backend"
1515
containertypes "github.com/moby/moby/api/types/container"
1616
"github.com/moby/moby/api/types/events"
1717
"github.com/moby/term"

daemon/builder/backend/backend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
buildkit "github.com/docker/docker/daemon/internal/builder-next"
1212
"github.com/docker/docker/daemon/internal/image"
1313
"github.com/docker/docker/daemon/internal/stringid"
14-
"github.com/moby/moby/api/types/backend"
14+
"github.com/docker/docker/daemon/server/backend"
1515
"github.com/moby/moby/api/types/build"
1616
"github.com/moby/moby/api/types/events"
1717
"github.com/pkg/errors"

daemon/builder/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/docker/docker/daemon/internal/image"
1212
"github.com/docker/docker/daemon/internal/layer"
13-
"github.com/moby/moby/api/types/backend"
13+
"github.com/docker/docker/daemon/server/backend"
1414
"github.com/moby/moby/api/types/container"
1515
"github.com/opencontainers/go-digest"
1616
ocispec "github.com/opencontainers/image-spec/specs-go/v1"

daemon/builder/dockerfile/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import (
1313
"github.com/docker/docker/daemon/builder"
1414
"github.com/docker/docker/daemon/builder/remotecontext"
1515
"github.com/docker/docker/daemon/internal/stringid"
16+
"github.com/docker/docker/daemon/server/backend"
1617
"github.com/docker/docker/errdefs"
1718
"github.com/moby/buildkit/frontend/dockerfile/instructions"
1819
"github.com/moby/buildkit/frontend/dockerfile/parser"
1920
"github.com/moby/buildkit/frontend/dockerfile/shell"
20-
"github.com/moby/moby/api/types/backend"
2121
"github.com/moby/moby/api/types/build"
2222
"github.com/moby/moby/api/types/container"
2323
"github.com/moby/sys/user"

daemon/builder/dockerfile/containerbackend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/containerd/log"
1010
"github.com/docker/docker/daemon/builder"
1111
"github.com/docker/docker/daemon/internal/stringid"
12-
"github.com/moby/moby/api/types/backend"
12+
"github.com/docker/docker/daemon/server/backend"
1313
"github.com/moby/moby/api/types/container"
1414
"github.com/pkg/errors"
1515
)

daemon/builder/dockerfile/dispatchers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import (
1111
"github.com/docker/docker/daemon/builder"
1212
"github.com/docker/docker/daemon/internal/image"
1313
"github.com/docker/docker/daemon/pkg/oci"
14+
"github.com/docker/docker/daemon/server/backend"
1415
"github.com/docker/go-connections/nat"
1516
"github.com/moby/buildkit/frontend/dockerfile/instructions"
1617
"github.com/moby/buildkit/frontend/dockerfile/parser"
1718
"github.com/moby/buildkit/frontend/dockerfile/shell"
18-
"github.com/moby/moby/api/types/backend"
1919
"github.com/moby/moby/api/types/build"
2020
"github.com/moby/moby/api/types/container"
2121
"gotest.tools/v3/assert"

daemon/builder/dockerfile/imagecontext.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/containerd/platforms"
99
"github.com/docker/docker/daemon/builder"
1010
dockerimage "github.com/docker/docker/daemon/internal/image"
11-
"github.com/moby/moby/api/types/backend"
11+
"github.com/docker/docker/daemon/server/backend"
1212
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
1313
"github.com/pkg/errors"
1414
)

daemon/builder/dockerfile/internals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ import (
1616
"github.com/docker/docker/daemon/internal/image"
1717
"github.com/docker/docker/daemon/internal/stringid"
1818
networkSettings "github.com/docker/docker/daemon/network"
19+
"github.com/docker/docker/daemon/server/backend"
1920
"github.com/docker/go-connections/nat"
2021
"github.com/moby/go-archive"
2122
"github.com/moby/go-archive/chrootarchive"
22-
"github.com/moby/moby/api/types/backend"
2323
"github.com/moby/moby/api/types/build"
2424
"github.com/moby/moby/api/types/container"
2525
"github.com/moby/moby/api/types/network"

daemon/builder/dockerfile/internals_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
"github.com/docker/docker/daemon/builder/remotecontext"
1212
"github.com/docker/docker/daemon/internal/image"
1313
"github.com/docker/docker/daemon/internal/layer"
14+
"github.com/docker/docker/daemon/server/backend"
1415
"github.com/docker/go-connections/nat"
1516
"github.com/moby/go-archive"
16-
"github.com/moby/moby/api/types/backend"
1717
"github.com/moby/moby/api/types/build"
1818
"github.com/moby/moby/api/types/container"
1919
"github.com/opencontainers/go-digest"

daemon/builder/dockerfile/mockbackend_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/docker/docker/daemon/builder"
1010
"github.com/docker/docker/daemon/internal/image"
1111
"github.com/docker/docker/daemon/internal/layer"
12-
"github.com/moby/moby/api/types/backend"
12+
"github.com/docker/docker/daemon/server/backend"
1313
"github.com/moby/moby/api/types/container"
1414
"github.com/opencontainers/go-digest"
1515
ocispec "github.com/opencontainers/image-spec/specs-go/v1"

0 commit comments

Comments
 (0)