Move layer to daemon/internal/layer

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2025-07-24 12:10:30 -07:00
parent 462567acd6
commit fa9a3c383d
65 changed files with 48 additions and 48 deletions

View File

@@ -8,8 +8,8 @@ import (
"context"
"io"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/moby/moby/api/types/backend"
"github.com/moby/moby/api/types/container"
"github.com/opencontainers/go-digest"

View File

@@ -9,8 +9,8 @@ import (
"github.com/docker/docker/daemon/builder"
"github.com/docker/docker/daemon/builder/remotecontext"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/docker/go-connections/nat"
"github.com/moby/go-archive"
"github.com/moby/moby/api/types/backend"

View File

@@ -7,8 +7,8 @@ import (
"runtime"
"github.com/docker/docker/daemon/builder"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/moby/moby/api/types/backend"
"github.com/moby/moby/api/types/container"
"github.com/opencontainers/go-digest"

View File

@@ -10,11 +10,11 @@ import (
cerrdefs "github.com/containerd/errdefs"
"github.com/containerd/log"
"github.com/docker/docker/daemon/builder"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/image"
"github.com/docker/docker/image/cache"
"github.com/docker/docker/internal/multierror"
"github.com/docker/docker/layer"
"github.com/moby/moby/api/types/backend"
"github.com/moby/moby/api/types/container"
"github.com/opencontainers/go-digest"

View File

@@ -22,9 +22,9 @@ import (
"github.com/containerd/platforms"
"github.com/distribution/reference"
"github.com/docker/docker/daemon/builder"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/docker/docker/pkg/progress"
"github.com/docker/docker/pkg/streamformatter"
"github.com/docker/docker/pkg/stringid"

View File

@@ -12,10 +12,10 @@ import (
cerrdefs "github.com/containerd/errdefs"
"github.com/containerd/log"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/daemon/snapshotter"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/opencontainers/image-spec/identity"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/pkg/errors"

View File

@@ -39,6 +39,7 @@ import (
"github.com/docker/docker/daemon/events"
_ "github.com/docker/docker/daemon/graphdriver/register" // register graph drivers
"github.com/docker/docker/daemon/images"
"github.com/docker/docker/daemon/internal/layer"
libcontainerdtypes "github.com/docker/docker/daemon/internal/libcontainerd/types"
"github.com/docker/docker/daemon/internal/metrics"
pluginexec "github.com/docker/docker/daemon/internal/plugin/executor/containerd"
@@ -57,7 +58,6 @@ import (
dmetadata "github.com/docker/docker/distribution/metadata"
"github.com/docker/docker/dockerversion"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/docker/docker/pkg/authorization"
"github.com/docker/docker/pkg/fileutils"
"github.com/docker/docker/pkg/idtools"

View File

@@ -8,8 +8,8 @@ import (
"github.com/docker/docker/daemon/builder"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/images"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/moby/go-archive"
"github.com/moby/moby/api/types/backend"
"github.com/moby/moby/api/types/events"

View File

@@ -7,9 +7,9 @@ import (
"github.com/containerd/log"
"github.com/docker/docker/daemon/builder"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/image/cache"
"github.com/docker/docker/layer"
"github.com/moby/moby/api/types/backend"
)

View File

@@ -10,8 +10,8 @@ import (
"github.com/containerd/platforms"
"github.com/distribution/reference"
"github.com/docker/docker/daemon/builder"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/docker/docker/pkg/progress"
"github.com/docker/docker/pkg/streamformatter"
"github.com/docker/docker/pkg/stringid"

View File

@@ -6,7 +6,7 @@ import (
"fmt"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/layer"
"github.com/docker/docker/daemon/internal/layer"
"github.com/moby/go-archive"
)

View File

@@ -5,8 +5,8 @@ import (
"encoding/json"
"io"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/docker/docker/pkg/ioutils"
"github.com/moby/moby/api/types/backend"
"github.com/moby/moby/api/types/events"

View File

@@ -6,8 +6,8 @@ import (
"time"
"github.com/distribution/reference"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/daemon/internal/metrics"
"github.com/docker/docker/layer"
"github.com/moby/moby/api/types/backend"
"github.com/moby/moby/api/types/image"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"

View File

@@ -9,10 +9,10 @@ import (
"github.com/containerd/platforms"
"github.com/distribution/reference"
"github.com/docker/docker/daemon/builder/dockerfile"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/dockerversion"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/moby/go-archive/compression"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/events"

View File

@@ -5,8 +5,8 @@ import (
"time"
"github.com/distribution/reference"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/moby/moby/api/types/backend"
imagetypes "github.com/moby/moby/api/types/image"
"github.com/moby/moby/api/types/storage"

View File

@@ -9,8 +9,8 @@ import (
"github.com/distribution/reference"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/moby/moby/api/types/backend"
imagetypes "github.com/moby/moby/api/types/image"
timetypes "github.com/moby/moby/api/types/time"

View File

@@ -8,9 +8,9 @@ import (
cerrdefs "github.com/containerd/errdefs"
"github.com/containerd/log"
"github.com/distribution/reference"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/moby/moby/api/types/events"
"github.com/moby/moby/api/types/filters"
imagetypes "github.com/moby/moby/api/types/image"

View File

@@ -5,8 +5,8 @@ import (
"fmt"
"time"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/pkg/errors"
)

View File

@@ -4,8 +4,8 @@ import (
"context"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/pkg/errors"
)

View File

@@ -11,11 +11,11 @@ import (
"github.com/containerd/log"
"github.com/docker/docker/daemon/container"
daemonevents "github.com/docker/docker/daemon/events"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/distribution"
"github.com/docker/docker/distribution/metadata"
"github.com/docker/docker/distribution/xfer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
refstore "github.com/docker/docker/reference"
"github.com/opencontainers/go-digest"
"github.com/pkg/errors"

View File

@@ -9,9 +9,9 @@ import (
"github.com/containerd/containerd/v2/pkg/namespaces"
cerrdefs "github.com/containerd/errdefs"
"github.com/containerd/log"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/distribution"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/opencontainers/go-digest"
"github.com/pkg/errors"
)

View File

@@ -26,10 +26,10 @@ import (
"github.com/containerd/platforms"
"github.com/distribution/reference"
dimages "github.com/docker/docker/daemon/images"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/distribution/metadata"
"github.com/docker/docker/distribution/xfer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
pkgprogress "github.com/docker/docker/pkg/progress"
refstore "github.com/docker/docker/reference"
"github.com/moby/buildkit/cache"

View File

@@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
"github.com/docker/docker/layer"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/pkg/longpath"
"github.com/opencontainers/image-spec/identity"
"github.com/pkg/errors"

View File

@@ -12,7 +12,7 @@ import (
"github.com/containerd/containerd/v2/core/snapshots"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/daemon/graphdriver"
"github.com/docker/docker/layer"
"github.com/docker/docker/daemon/internal/layer"
"github.com/moby/buildkit/identity"
"github.com/moby/buildkit/snapshot"
"github.com/moby/buildkit/util/leaseutil"

View File

@@ -14,8 +14,8 @@ import (
"github.com/containerd/containerd/v2/core/leases"
"github.com/containerd/log"
"github.com/distribution/reference"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/moby/buildkit/exporter"
"github.com/moby/buildkit/exporter/containerimage"
"github.com/moby/buildkit/exporter/containerimage/exptypes"

View File

@@ -3,8 +3,8 @@ package imagerefchecker
import (
"sync"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/moby/buildkit/cache"
"github.com/opencontainers/go-digest"
)

View File

@@ -17,9 +17,9 @@ import (
imageadapter "github.com/docker/docker/daemon/internal/builder-next/adapters/containerimage"
mobyexporter "github.com/docker/docker/daemon/internal/builder-next/exporter"
"github.com/docker/docker/daemon/internal/builder-next/worker/mod"
"github.com/docker/docker/daemon/internal/layer"
distmetadata "github.com/docker/docker/distribution/metadata"
"github.com/docker/docker/distribution/xfer"
"github.com/docker/docker/layer"
pkgprogress "github.com/docker/docker/pkg/progress"
"github.com/moby/buildkit/cache"
cacheconfig "github.com/moby/buildkit/cache/config"

View File

@@ -11,12 +11,12 @@ import (
"github.com/containerd/log"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/daemon/volume"
volumemounts "github.com/docker/docker/daemon/volume/mounts"
"github.com/docker/docker/daemon/volume/service"
volumeopts "github.com/docker/docker/daemon/volume/service/opts"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/layer"
"github.com/moby/moby/api/types/backend"
containertypes "github.com/moby/moby/api/types/container"
mounttypes "github.com/moby/moby/api/types/mount"

View File

@@ -9,10 +9,10 @@ import (
"github.com/distribution/reference"
"github.com/docker/distribution"
"github.com/docker/distribution/manifest/schema2"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/distribution/metadata"
"github.com/docker/docker/distribution/xfer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/docker/docker/pkg/progress"
refstore "github.com/docker/docker/reference"
registrypkg "github.com/docker/docker/registry"

View File

@@ -7,7 +7,7 @@ import (
"encoding/json"
"errors"
"github.com/docker/docker/layer"
"github.com/docker/docker/daemon/internal/layer"
"github.com/moby/moby/api/types/registry"
"github.com/opencontainers/go-digest"
)

View File

@@ -6,7 +6,7 @@ import (
"reflect"
"testing"
"github.com/docker/docker/layer"
"github.com/docker/docker/daemon/internal/layer"
"github.com/opencontainers/go-digest"
)

View File

@@ -17,10 +17,10 @@ import (
"github.com/docker/distribution/manifest/ocischema"
"github.com/docker/distribution/manifest/schema2"
"github.com/docker/distribution/registry/client/transport"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/distribution/metadata"
"github.com/docker/docker/distribution/xfer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/docker/docker/pkg/ioutils"
"github.com/docker/docker/pkg/progress"
"github.com/docker/docker/pkg/stringid"

View File

@@ -14,9 +14,9 @@ import (
"github.com/docker/distribution/manifest/schema2"
"github.com/docker/distribution/registry/api/errcode"
"github.com/docker/distribution/registry/client"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/distribution/metadata"
"github.com/docker/docker/distribution/xfer"
"github.com/docker/docker/layer"
"github.com/docker/docker/pkg/ioutils"
"github.com/docker/docker/pkg/progress"
"github.com/docker/docker/pkg/stringid"

View File

@@ -10,8 +10,8 @@ import (
"github.com/docker/distribution"
"github.com/docker/distribution/manifest/schema2"
"github.com/docker/distribution/registry/api/errcode"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/distribution/metadata"
"github.com/docker/docker/layer"
"github.com/docker/docker/pkg/progress"
refstore "github.com/docker/docker/reference"
registrypkg "github.com/docker/docker/registry"

View File

@@ -9,8 +9,8 @@ import (
"github.com/containerd/log"
"github.com/docker/distribution"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/docker/docker/pkg/ioutils"
"github.com/docker/docker/pkg/progress"
"github.com/moby/go-archive/compression"

View File

@@ -12,7 +12,7 @@ import (
"time"
"github.com/docker/distribution"
"github.com/docker/docker/layer"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/pkg/progress"
"github.com/opencontainers/go-digest"
"github.com/opencontainers/image-spec/identity"

View File

@@ -7,7 +7,7 @@ import (
"github.com/containerd/log"
"github.com/docker/distribution"
"github.com/docker/docker/layer"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/pkg/progress"
)

View File

@@ -8,7 +8,7 @@ import (
"time"
"github.com/docker/distribution"
"github.com/docker/docker/layer"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/pkg/progress"
)

View File

@@ -8,9 +8,9 @@ import (
"github.com/containerd/log"
"github.com/docker/docker/daemon/builder"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/dockerversion"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
containertypes "github.com/moby/moby/api/types/container"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/pkg/errors"

View File

@@ -9,8 +9,8 @@ import (
"strings"
"time"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/dockerversion"
"github.com/docker/docker/layer"
"github.com/moby/moby/api/types/container"
"github.com/opencontainers/go-digest"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"

View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/docker/docker/layer"
"github.com/docker/docker/daemon/internal/layer"
"github.com/google/go-cmp/cmp"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"

View File

@@ -6,7 +6,7 @@ package image
import (
"slices"
"github.com/docker/docker/layer"
"github.com/docker/docker/daemon/internal/layer"
"github.com/opencontainers/image-spec/identity"
)

View File

@@ -8,8 +8,8 @@ import (
"time"
"github.com/containerd/log"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/layer"
"github.com/opencontainers/go-digest"
"github.com/opencontainers/go-digest/digestset"
"github.com/pkg/errors"

View File

@@ -5,7 +5,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/layer"
"github.com/docker/docker/daemon/internal/layer"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)

View File

@@ -15,9 +15,9 @@ import (
"github.com/containerd/log"
"github.com/distribution/reference"
"github.com/docker/distribution"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/internal/ioutils"
"github.com/docker/docker/layer"
"github.com/docker/docker/pkg/progress"
"github.com/docker/docker/pkg/streamformatter"
"github.com/docker/docker/pkg/stringid"

View File

@@ -16,10 +16,10 @@ import (
"github.com/containerd/platforms"
"github.com/distribution/reference"
"github.com/docker/distribution"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
v1 "github.com/docker/docker/image/v1"
"github.com/docker/docker/internal/ioutils"
"github.com/docker/docker/layer"
"github.com/docker/docker/pkg/system"
"github.com/moby/go-archive"
"github.com/moby/moby/api/types/events"

View File

@@ -5,8 +5,8 @@ import (
"github.com/containerd/platforms"
"github.com/docker/distribution"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
refstore "github.com/docker/docker/reference"
"github.com/moby/moby/api/types/events"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"

View File

@@ -5,8 +5,8 @@ import (
"encoding/json"
"github.com/containerd/log"
"github.com/docker/docker/daemon/internal/layer"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/opencontainers/go-digest"
)