Move libnetwork to daemon/libnetwork
Signed-off-by: Derek McGowan <derek@mcg.dev>
@ -23,9 +23,9 @@ import (
|
|||||||
"github.com/docker/docker/builder/builder-next/exporter/overrides"
|
"github.com/docker/docker/builder/builder-next/exporter/overrides"
|
||||||
"github.com/docker/docker/daemon/config"
|
"github.com/docker/docker/daemon/config"
|
||||||
"github.com/docker/docker/daemon/images"
|
"github.com/docker/docker/daemon/images"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
"github.com/docker/docker/daemon/pkg/opts"
|
"github.com/docker/docker/daemon/pkg/opts"
|
||||||
"github.com/docker/docker/errdefs"
|
"github.com/docker/docker/errdefs"
|
||||||
"github.com/docker/docker/libnetwork"
|
|
||||||
"github.com/docker/docker/pkg/streamformatter"
|
"github.com/docker/docker/pkg/streamformatter"
|
||||||
controlapi "github.com/moby/buildkit/api/services/control"
|
controlapi "github.com/moby/buildkit/api/services/control"
|
||||||
"github.com/moby/buildkit/client"
|
"github.com/moby/buildkit/client"
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/daemon/config"
|
"github.com/docker/docker/daemon/config"
|
||||||
"github.com/docker/docker/libnetwork"
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
"github.com/moby/buildkit/executor/oci"
|
"github.com/moby/buildkit/executor/oci"
|
||||||
resourcestypes "github.com/moby/buildkit/executor/resources/types"
|
resourcestypes "github.com/moby/buildkit/executor/resources/types"
|
||||||
"github.com/moby/buildkit/identity"
|
"github.com/moby/buildkit/identity"
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/libnetwork"
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
"github.com/docker/docker/pkg/stringid"
|
"github.com/docker/docker/pkg/stringid"
|
||||||
"github.com/moby/buildkit/executor"
|
"github.com/moby/buildkit/executor"
|
||||||
"github.com/moby/buildkit/executor/oci"
|
"github.com/moby/buildkit/executor/oci"
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"github.com/docker/docker/libnetwork"
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
"github.com/moby/buildkit/executor"
|
"github.com/moby/buildkit/executor"
|
||||||
"github.com/moby/buildkit/executor/oci"
|
"github.com/moby/buildkit/executor/oci"
|
||||||
resourcetypes "github.com/moby/buildkit/executor/resources/types"
|
resourcetypes "github.com/moby/buildkit/executor/resources/types"
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
ctd "github.com/containerd/containerd/v2/client"
|
ctd "github.com/containerd/containerd/v2/client"
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/libnetwork"
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
"github.com/moby/buildkit/executor"
|
"github.com/moby/buildkit/executor"
|
||||||
"github.com/moby/buildkit/executor/containerdexecutor"
|
"github.com/moby/buildkit/executor/containerdexecutor"
|
||||||
"github.com/moby/buildkit/executor/oci"
|
"github.com/moby/buildkit/executor/oci"
|
||||||
|
@ -3,7 +3,7 @@ package daemon
|
|||||||
import (
|
import (
|
||||||
"github.com/docker/docker/api/types/filters"
|
"github.com/docker/docker/api/types/filters"
|
||||||
"github.com/docker/docker/api/types/network"
|
"github.com/docker/docker/api/types/network"
|
||||||
lncluster "github.com/docker/docker/libnetwork/cluster"
|
lncluster "github.com/docker/docker/daemon/libnetwork/cluster"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Cluster is the interface for github.com/docker/docker/daemon/cluster.(*Cluster).
|
// Cluster is the interface for github.com/docker/docker/daemon/cluster.(*Cluster).
|
||||||
|
@ -54,7 +54,7 @@ import (
|
|||||||
types "github.com/docker/docker/api/types/swarm"
|
types "github.com/docker/docker/api/types/swarm"
|
||||||
"github.com/docker/docker/daemon/cluster/controllers/plugin"
|
"github.com/docker/docker/daemon/cluster/controllers/plugin"
|
||||||
executorpkg "github.com/docker/docker/daemon/cluster/executor"
|
executorpkg "github.com/docker/docker/daemon/cluster/executor"
|
||||||
lncluster "github.com/docker/docker/libnetwork/cluster"
|
lncluster "github.com/docker/docker/daemon/libnetwork/cluster"
|
||||||
"github.com/docker/docker/pkg/stack"
|
"github.com/docker/docker/pkg/stack"
|
||||||
swarmapi "github.com/moby/swarmkit/v2/api"
|
swarmapi "github.com/moby/swarmkit/v2/api"
|
||||||
swarmnode "github.com/moby/swarmkit/v2/node"
|
swarmnode "github.com/moby/swarmkit/v2/node"
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/docker/api/types/network"
|
"github.com/docker/docker/api/types/network"
|
||||||
types "github.com/docker/docker/api/types/swarm"
|
types "github.com/docker/docker/api/types/swarm"
|
||||||
"github.com/docker/docker/libnetwork/scope"
|
"github.com/docker/docker/daemon/libnetwork/scope"
|
||||||
gogotypes "github.com/gogo/protobuf/types"
|
gogotypes "github.com/gogo/protobuf/types"
|
||||||
swarmapi "github.com/moby/swarmkit/v2/api"
|
swarmapi "github.com/moby/swarmkit/v2/api"
|
||||||
)
|
)
|
||||||
|
@ -17,12 +17,12 @@ import (
|
|||||||
"github.com/docker/docker/api/types/system"
|
"github.com/docker/docker/api/types/system"
|
||||||
"github.com/docker/docker/api/types/volume"
|
"github.com/docker/docker/api/types/volume"
|
||||||
clustertypes "github.com/docker/docker/daemon/cluster/provider"
|
clustertypes "github.com/docker/docker/daemon/cluster/provider"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/cluster"
|
||||||
|
networktypes "github.com/docker/docker/daemon/libnetwork/types"
|
||||||
networkSettings "github.com/docker/docker/daemon/network"
|
networkSettings "github.com/docker/docker/daemon/network"
|
||||||
"github.com/docker/docker/daemon/pkg/plugin"
|
"github.com/docker/docker/daemon/pkg/plugin"
|
||||||
"github.com/docker/docker/image"
|
"github.com/docker/docker/image"
|
||||||
"github.com/docker/docker/libnetwork"
|
|
||||||
"github.com/docker/docker/libnetwork/cluster"
|
|
||||||
networktypes "github.com/docker/docker/libnetwork/types"
|
|
||||||
volumeopts "github.com/docker/docker/volume/service/opts"
|
volumeopts "github.com/docker/docker/volume/service/opts"
|
||||||
"github.com/moby/swarmkit/v2/agent/exec"
|
"github.com/moby/swarmkit/v2/agent/exec"
|
||||||
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||||
|
@ -21,8 +21,8 @@ import (
|
|||||||
"github.com/docker/docker/daemon"
|
"github.com/docker/docker/daemon"
|
||||||
"github.com/docker/docker/daemon/cluster/convert"
|
"github.com/docker/docker/daemon/cluster/convert"
|
||||||
executorpkg "github.com/docker/docker/daemon/cluster/executor"
|
executorpkg "github.com/docker/docker/daemon/cluster/executor"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
networkSettings "github.com/docker/docker/daemon/network"
|
networkSettings "github.com/docker/docker/daemon/network"
|
||||||
"github.com/docker/docker/libnetwork"
|
|
||||||
volumeopts "github.com/docker/docker/volume/service/opts"
|
volumeopts "github.com/docker/docker/volume/service/opts"
|
||||||
gogotypes "github.com/gogo/protobuf/types"
|
gogotypes "github.com/gogo/protobuf/types"
|
||||||
"github.com/moby/swarmkit/v2/agent/exec"
|
"github.com/moby/swarmkit/v2/agent/exec"
|
||||||
|
@ -19,7 +19,7 @@ import (
|
|||||||
"github.com/docker/docker/daemon/cluster/convert"
|
"github.com/docker/docker/daemon/cluster/convert"
|
||||||
executorpkg "github.com/docker/docker/daemon/cluster/executor"
|
executorpkg "github.com/docker/docker/daemon/cluster/executor"
|
||||||
clustertypes "github.com/docker/docker/daemon/cluster/provider"
|
clustertypes "github.com/docker/docker/daemon/cluster/provider"
|
||||||
"github.com/docker/docker/libnetwork/scope"
|
"github.com/docker/docker/daemon/libnetwork/scope"
|
||||||
"github.com/docker/go-connections/nat"
|
"github.com/docker/go-connections/nat"
|
||||||
gogotypes "github.com/gogo/protobuf/types"
|
gogotypes "github.com/gogo/protobuf/types"
|
||||||
"github.com/moby/swarmkit/v2/agent/exec"
|
"github.com/moby/swarmkit/v2/agent/exec"
|
||||||
|
@ -12,7 +12,7 @@ import (
|
|||||||
"github.com/docker/docker/api/types/container"
|
"github.com/docker/docker/api/types/container"
|
||||||
"github.com/docker/docker/api/types/events"
|
"github.com/docker/docker/api/types/events"
|
||||||
executorpkg "github.com/docker/docker/daemon/cluster/executor"
|
executorpkg "github.com/docker/docker/daemon/cluster/executor"
|
||||||
"github.com/docker/docker/libnetwork"
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
"github.com/docker/go-connections/nat"
|
"github.com/docker/go-connections/nat"
|
||||||
gogotypes "github.com/gogo/protobuf/types"
|
gogotypes "github.com/gogo/protobuf/types"
|
||||||
"github.com/moby/swarmkit/v2/agent/exec"
|
"github.com/moby/swarmkit/v2/agent/exec"
|
||||||
|
@ -15,8 +15,8 @@ import (
|
|||||||
"github.com/docker/docker/daemon/cluster/convert"
|
"github.com/docker/docker/daemon/cluster/convert"
|
||||||
executorpkg "github.com/docker/docker/daemon/cluster/executor"
|
executorpkg "github.com/docker/docker/daemon/cluster/executor"
|
||||||
clustertypes "github.com/docker/docker/daemon/cluster/provider"
|
clustertypes "github.com/docker/docker/daemon/cluster/provider"
|
||||||
"github.com/docker/docker/libnetwork"
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
networktypes "github.com/docker/docker/libnetwork/types"
|
networktypes "github.com/docker/docker/daemon/libnetwork/types"
|
||||||
"github.com/moby/swarmkit/v2/agent"
|
"github.com/moby/swarmkit/v2/agent"
|
||||||
"github.com/moby/swarmkit/v2/agent/exec"
|
"github.com/moby/swarmkit/v2/agent/exec"
|
||||||
"github.com/moby/swarmkit/v2/api"
|
"github.com/moby/swarmkit/v2/api"
|
||||||
|
@ -12,8 +12,8 @@ import (
|
|||||||
types "github.com/docker/docker/api/types/swarm"
|
types "github.com/docker/docker/api/types/swarm"
|
||||||
"github.com/docker/docker/daemon/cluster/convert"
|
"github.com/docker/docker/daemon/cluster/convert"
|
||||||
"github.com/docker/docker/daemon/cluster/executor/container"
|
"github.com/docker/docker/daemon/cluster/executor/container"
|
||||||
lncluster "github.com/docker/docker/libnetwork/cluster"
|
lncluster "github.com/docker/docker/daemon/libnetwork/cluster"
|
||||||
"github.com/docker/docker/libnetwork/cnmallocator"
|
"github.com/docker/docker/daemon/libnetwork/cnmallocator"
|
||||||
swarmapi "github.com/moby/swarmkit/v2/api"
|
swarmapi "github.com/moby/swarmkit/v2/api"
|
||||||
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
||||||
swarmnode "github.com/moby/swarmkit/v2/node"
|
swarmnode "github.com/moby/swarmkit/v2/node"
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
|
|
||||||
"github.com/docker/docker/daemon"
|
"github.com/docker/docker/daemon"
|
||||||
"github.com/docker/docker/daemon/config"
|
"github.com/docker/docker/daemon/config"
|
||||||
"github.com/docker/docker/libnetwork/portallocator"
|
"github.com/docker/docker/daemon/libnetwork/portallocator"
|
||||||
"github.com/docker/docker/pkg/homedir"
|
"github.com/docker/docker/pkg/homedir"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
|
@ -12,8 +12,8 @@ import (
|
|||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/api/types/container"
|
"github.com/docker/docker/api/types/container"
|
||||||
"github.com/docker/docker/api/types/system"
|
"github.com/docker/docker/api/types/system"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/drivers/bridge"
|
||||||
"github.com/docker/docker/daemon/pkg/opts"
|
"github.com/docker/docker/daemon/pkg/opts"
|
||||||
"github.com/docker/docker/libnetwork/drivers/bridge"
|
|
||||||
"github.com/docker/docker/pkg/homedir"
|
"github.com/docker/docker/pkg/homedir"
|
||||||
"github.com/docker/docker/pkg/rootless"
|
"github.com/docker/docker/pkg/rootless"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
@ -12,8 +12,8 @@ import (
|
|||||||
|
|
||||||
"dario.cat/mergo"
|
"dario.cat/mergo"
|
||||||
"github.com/docker/docker/api"
|
"github.com/docker/docker/api"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/ipamutils"
|
||||||
"github.com/docker/docker/daemon/pkg/opts"
|
"github.com/docker/docker/daemon/pkg/opts"
|
||||||
"github.com/docker/docker/libnetwork/ipamutils"
|
|
||||||
"github.com/docker/docker/registry"
|
"github.com/docker/docker/registry"
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"github.com/google/go-cmp/cmp/cmpopts"
|
"github.com/google/go-cmp/cmp/cmpopts"
|
||||||
|
@ -21,15 +21,15 @@ import (
|
|||||||
"github.com/docker/docker/daemon/config"
|
"github.com/docker/docker/daemon/config"
|
||||||
"github.com/docker/docker/daemon/container"
|
"github.com/docker/docker/daemon/container"
|
||||||
"github.com/docker/docker/daemon/internal/metrics"
|
"github.com/docker/docker/daemon/internal/metrics"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/netlabel"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/scope"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/types"
|
||||||
"github.com/docker/docker/daemon/network"
|
"github.com/docker/docker/daemon/network"
|
||||||
"github.com/docker/docker/daemon/pkg/opts"
|
"github.com/docker/docker/daemon/pkg/opts"
|
||||||
"github.com/docker/docker/errdefs"
|
"github.com/docker/docker/errdefs"
|
||||||
"github.com/docker/docker/internal/multierror"
|
"github.com/docker/docker/internal/multierror"
|
||||||
"github.com/docker/docker/internal/sliceutil"
|
"github.com/docker/docker/internal/sliceutil"
|
||||||
"github.com/docker/docker/libnetwork"
|
|
||||||
"github.com/docker/docker/libnetwork/netlabel"
|
|
||||||
"github.com/docker/docker/libnetwork/scope"
|
|
||||||
"github.com/docker/docker/libnetwork/types"
|
|
||||||
"github.com/docker/docker/pkg/stringid"
|
"github.com/docker/docker/pkg/stringid"
|
||||||
"github.com/docker/docker/runconfig"
|
"github.com/docker/docker/runconfig"
|
||||||
"github.com/docker/go-connections/nat"
|
"github.com/docker/go-connections/nat"
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
containertypes "github.com/docker/docker/api/types/container"
|
containertypes "github.com/docker/docker/api/types/container"
|
||||||
networktypes "github.com/docker/docker/api/types/network"
|
networktypes "github.com/docker/docker/api/types/network"
|
||||||
"github.com/docker/docker/daemon/container"
|
"github.com/docker/docker/daemon/container"
|
||||||
"github.com/docker/docker/libnetwork"
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
"gotest.tools/v3/assert"
|
"gotest.tools/v3/assert"
|
||||||
is "gotest.tools/v3/assert/cmp"
|
is "gotest.tools/v3/assert/cmp"
|
||||||
)
|
)
|
||||||
|
@ -14,11 +14,11 @@ import (
|
|||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/daemon/config"
|
"github.com/docker/docker/daemon/config"
|
||||||
"github.com/docker/docker/daemon/container"
|
"github.com/docker/docker/daemon/container"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/drivers/bridge"
|
||||||
"github.com/docker/docker/daemon/links"
|
"github.com/docker/docker/daemon/links"
|
||||||
"github.com/docker/docker/daemon/network"
|
"github.com/docker/docker/daemon/network"
|
||||||
"github.com/docker/docker/errdefs"
|
"github.com/docker/docker/errdefs"
|
||||||
"github.com/docker/docker/libnetwork"
|
|
||||||
"github.com/docker/docker/libnetwork/drivers/bridge"
|
|
||||||
"github.com/docker/docker/pkg/process"
|
"github.com/docker/docker/pkg/process"
|
||||||
"github.com/docker/docker/pkg/stringid"
|
"github.com/docker/docker/pkg/stringid"
|
||||||
"github.com/moby/sys/mount"
|
"github.com/moby/sys/mount"
|
||||||
|
@ -8,8 +8,8 @@ import (
|
|||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/daemon/config"
|
"github.com/docker/docker/daemon/config"
|
||||||
"github.com/docker/docker/daemon/container"
|
"github.com/docker/docker/daemon/container"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
"github.com/docker/docker/daemon/network"
|
"github.com/docker/docker/daemon/network"
|
||||||
"github.com/docker/docker/libnetwork"
|
|
||||||
"github.com/docker/docker/pkg/system"
|
"github.com/docker/docker/pkg/system"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
@ -49,6 +49,11 @@ import (
|
|||||||
libcontainerdtypes "github.com/docker/docker/daemon/internal/libcontainerd/types"
|
libcontainerdtypes "github.com/docker/docker/daemon/internal/libcontainerd/types"
|
||||||
"github.com/docker/docker/daemon/internal/metrics"
|
"github.com/docker/docker/daemon/internal/metrics"
|
||||||
pluginexec "github.com/docker/docker/daemon/internal/plugin/executor/containerd"
|
pluginexec "github.com/docker/docker/daemon/internal/plugin/executor/containerd"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/cluster"
|
||||||
|
nwconfig "github.com/docker/docker/daemon/libnetwork/config"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/ipamutils"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/ipbits"
|
||||||
dlogger "github.com/docker/docker/daemon/logger"
|
dlogger "github.com/docker/docker/daemon/logger"
|
||||||
"github.com/docker/docker/daemon/network"
|
"github.com/docker/docker/daemon/network"
|
||||||
"github.com/docker/docker/daemon/pkg/plugin"
|
"github.com/docker/docker/daemon/pkg/plugin"
|
||||||
@ -59,11 +64,6 @@ import (
|
|||||||
"github.com/docker/docker/dockerversion"
|
"github.com/docker/docker/dockerversion"
|
||||||
"github.com/docker/docker/image"
|
"github.com/docker/docker/image"
|
||||||
"github.com/docker/docker/layer"
|
"github.com/docker/docker/layer"
|
||||||
"github.com/docker/docker/libnetwork"
|
|
||||||
"github.com/docker/docker/libnetwork/cluster"
|
|
||||||
nwconfig "github.com/docker/docker/libnetwork/config"
|
|
||||||
"github.com/docker/docker/libnetwork/ipamutils"
|
|
||||||
"github.com/docker/docker/libnetwork/ipbits"
|
|
||||||
"github.com/docker/docker/pkg/authorization"
|
"github.com/docker/docker/pkg/authorization"
|
||||||
"github.com/docker/docker/pkg/fileutils"
|
"github.com/docker/docker/pkg/fileutils"
|
||||||
"github.com/docker/docker/pkg/idtools"
|
"github.com/docker/docker/pkg/idtools"
|
||||||
|
@ -12,8 +12,8 @@ import (
|
|||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/daemon/config"
|
"github.com/docker/docker/daemon/config"
|
||||||
"github.com/docker/docker/libnetwork/ns"
|
"github.com/docker/docker/daemon/libnetwork/ns"
|
||||||
"github.com/docker/docker/libnetwork/resolvconf"
|
"github.com/docker/docker/daemon/libnetwork/resolvconf"
|
||||||
"github.com/moby/sys/mount"
|
"github.com/moby/sys/mount"
|
||||||
"github.com/moby/sys/mountinfo"
|
"github.com/moby/sys/mountinfo"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
@ -10,8 +10,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
containertypes "github.com/docker/docker/api/types/container"
|
containertypes "github.com/docker/docker/api/types/container"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/types"
|
||||||
"github.com/docker/docker/internal/testutils/netnsutils"
|
"github.com/docker/docker/internal/testutils/netnsutils"
|
||||||
"github.com/docker/docker/libnetwork/types"
|
|
||||||
"github.com/google/go-cmp/cmp/cmpopts"
|
"github.com/google/go-cmp/cmp/cmpopts"
|
||||||
"github.com/moby/sys/mount"
|
"github.com/moby/sys/mount"
|
||||||
"github.com/moby/sys/mountinfo"
|
"github.com/moby/sys/mountinfo"
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
cerrdefs "github.com/containerd/errdefs"
|
cerrdefs "github.com/containerd/errdefs"
|
||||||
containertypes "github.com/docker/docker/api/types/container"
|
containertypes "github.com/docker/docker/api/types/container"
|
||||||
"github.com/docker/docker/daemon/container"
|
"github.com/docker/docker/daemon/container"
|
||||||
"github.com/docker/docker/libnetwork"
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
"github.com/docker/docker/pkg/idtools"
|
"github.com/docker/docker/pkg/idtools"
|
||||||
volumesservice "github.com/docker/docker/volume/service"
|
volumesservice "github.com/docker/docker/volume/service"
|
||||||
"github.com/docker/go-connections/nat"
|
"github.com/docker/go-connections/nat"
|
||||||
|
@ -31,16 +31,16 @@ import (
|
|||||||
"github.com/docker/docker/daemon/initlayer"
|
"github.com/docker/docker/daemon/initlayer"
|
||||||
"github.com/docker/docker/daemon/internal/libcontainerd/remote"
|
"github.com/docker/docker/daemon/internal/libcontainerd/remote"
|
||||||
"github.com/docker/docker/daemon/internal/usergroup"
|
"github.com/docker/docker/daemon/internal/usergroup"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
|
nwconfig "github.com/docker/docker/daemon/libnetwork/config"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/drivers/bridge"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/netlabel"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/options"
|
||||||
|
lntypes "github.com/docker/docker/daemon/libnetwork/types"
|
||||||
"github.com/docker/docker/daemon/pkg/opts"
|
"github.com/docker/docker/daemon/pkg/opts"
|
||||||
"github.com/docker/docker/errdefs"
|
"github.com/docker/docker/errdefs"
|
||||||
"github.com/docker/docker/internal/nlwrap"
|
"github.com/docker/docker/internal/nlwrap"
|
||||||
"github.com/docker/docker/internal/otelutil"
|
"github.com/docker/docker/internal/otelutil"
|
||||||
"github.com/docker/docker/libnetwork"
|
|
||||||
nwconfig "github.com/docker/docker/libnetwork/config"
|
|
||||||
"github.com/docker/docker/libnetwork/drivers/bridge"
|
|
||||||
"github.com/docker/docker/libnetwork/netlabel"
|
|
||||||
"github.com/docker/docker/libnetwork/options"
|
|
||||||
lntypes "github.com/docker/docker/libnetwork/types"
|
|
||||||
"github.com/docker/docker/pkg/sysinfo"
|
"github.com/docker/docker/pkg/sysinfo"
|
||||||
"github.com/docker/docker/runconfig"
|
"github.com/docker/docker/runconfig"
|
||||||
volumemounts "github.com/docker/docker/volume/mounts"
|
volumemounts "github.com/docker/docker/volume/mounts"
|
||||||
|
@ -18,13 +18,13 @@ import (
|
|||||||
"github.com/docker/docker/daemon/container"
|
"github.com/docker/docker/daemon/container"
|
||||||
"github.com/docker/docker/daemon/internal/libcontainerd/local"
|
"github.com/docker/docker/daemon/internal/libcontainerd/local"
|
||||||
"github.com/docker/docker/daemon/internal/libcontainerd/remote"
|
"github.com/docker/docker/daemon/internal/libcontainerd/remote"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
|
nwconfig "github.com/docker/docker/daemon/libnetwork/config"
|
||||||
|
winlibnetwork "github.com/docker/docker/daemon/libnetwork/drivers/windows"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/netlabel"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/options"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/scope"
|
||||||
"github.com/docker/docker/daemon/network"
|
"github.com/docker/docker/daemon/network"
|
||||||
"github.com/docker/docker/libnetwork"
|
|
||||||
nwconfig "github.com/docker/docker/libnetwork/config"
|
|
||||||
winlibnetwork "github.com/docker/docker/libnetwork/drivers/windows"
|
|
||||||
"github.com/docker/docker/libnetwork/netlabel"
|
|
||||||
"github.com/docker/docker/libnetwork/options"
|
|
||||||
"github.com/docker/docker/libnetwork/scope"
|
|
||||||
"github.com/docker/docker/pkg/parsers/operatingsystem"
|
"github.com/docker/docker/pkg/parsers/operatingsystem"
|
||||||
"github.com/docker/docker/pkg/sysinfo"
|
"github.com/docker/docker/pkg/sysinfo"
|
||||||
"github.com/docker/docker/pkg/system"
|
"github.com/docker/docker/pkg/system"
|
||||||
|
@ -11,7 +11,7 @@ import (
|
|||||||
"github.com/docker/docker/api/types/filters"
|
"github.com/docker/docker/api/types/filters"
|
||||||
"github.com/docker/docker/daemon/container"
|
"github.com/docker/docker/daemon/container"
|
||||||
daemonevents "github.com/docker/docker/daemon/events"
|
daemonevents "github.com/docker/docker/daemon/events"
|
||||||
"github.com/docker/docker/libnetwork"
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
gogotypes "github.com/gogo/protobuf/types"
|
gogotypes "github.com/gogo/protobuf/types"
|
||||||
swarmapi "github.com/moby/swarmkit/v2/api"
|
swarmapi "github.com/moby/swarmkit/v2/api"
|
||||||
)
|
)
|
||||||
|
@ -12,12 +12,12 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/libnetwork/cluster"
|
"github.com/docker/docker/daemon/libnetwork/cluster"
|
||||||
"github.com/docker/docker/libnetwork/discoverapi"
|
"github.com/docker/docker/daemon/libnetwork/discoverapi"
|
||||||
"github.com/docker/docker/libnetwork/driverapi"
|
"github.com/docker/docker/daemon/libnetwork/driverapi"
|
||||||
"github.com/docker/docker/libnetwork/networkdb"
|
"github.com/docker/docker/daemon/libnetwork/networkdb"
|
||||||
"github.com/docker/docker/libnetwork/scope"
|
"github.com/docker/docker/daemon/libnetwork/scope"
|
||||||
"github.com/docker/docker/libnetwork/types"
|
"github.com/docker/docker/daemon/libnetwork/types"
|
||||||
"github.com/docker/go-events"
|
"github.com/docker/go-events"
|
||||||
"github.com/gogo/protobuf/proto"
|
"github.com/gogo/protobuf/proto"
|
||||||
)
|
)
|
@ -13,9 +13,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/libnetwork"
|
"github.com/docker/docker/daemon/libnetwork"
|
||||||
"github.com/docker/docker/libnetwork/diagnostic"
|
"github.com/docker/docker/daemon/libnetwork/diagnostic"
|
||||||
"github.com/docker/docker/libnetwork/drivers/overlay"
|
"github.com/docker/docker/daemon/libnetwork/drivers/overlay"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
@ -10,9 +10,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/libnetwork/cmd/networkdb-test/dummyclient"
|
"github.com/docker/docker/daemon/libnetwork/cmd/networkdb-test/dummyclient"
|
||||||
"github.com/docker/docker/libnetwork/diagnostic"
|
"github.com/docker/docker/daemon/libnetwork/diagnostic"
|
||||||
"github.com/docker/docker/libnetwork/networkdb"
|
"github.com/docker/docker/daemon/libnetwork/networkdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
@ -6,8 +6,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/libnetwork/diagnostic"
|
"github.com/docker/docker/daemon/libnetwork/diagnostic"
|
||||||
"github.com/docker/docker/libnetwork/networkdb"
|
"github.com/docker/docker/daemon/libnetwork/networkdb"
|
||||||
events "github.com/docker/go-events"
|
events "github.com/docker/go-events"
|
||||||
)
|
)
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/libnetwork/cmd/networkdb-test/dbclient"
|
"github.com/docker/docker/daemon/libnetwork/cmd/networkdb-test/dbclient"
|
||||||
"github.com/docker/docker/libnetwork/cmd/networkdb-test/dbserver"
|
"github.com/docker/docker/daemon/libnetwork/cmd/networkdb-test/dbserver"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
@ -1,8 +1,8 @@
|
|||||||
package cnmallocator
|
package cnmallocator
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/docker/docker/libnetwork/driverapi"
|
"github.com/docker/docker/daemon/libnetwork/driverapi"
|
||||||
"github.com/docker/docker/libnetwork/drivers/overlay/ovmanager"
|
"github.com/docker/docker/daemon/libnetwork/drivers/overlay/ovmanager"
|
||||||
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
||||||
)
|
)
|
||||||
|
|
@ -8,9 +8,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/libnetwork/ipamapi"
|
"github.com/docker/docker/daemon/libnetwork/ipamapi"
|
||||||
"github.com/docker/docker/libnetwork/ipams"
|
"github.com/docker/docker/daemon/libnetwork/ipams"
|
||||||
"github.com/docker/docker/libnetwork/ipamutils"
|
"github.com/docker/docker/daemon/libnetwork/ipamutils"
|
||||||
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
||||||
)
|
)
|
||||||
|
|
@ -1,12 +1,12 @@
|
|||||||
package cnmallocator
|
package cnmallocator
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/docker/docker/libnetwork/driverapi"
|
"github.com/docker/docker/daemon/libnetwork/driverapi"
|
||||||
"github.com/docker/docker/libnetwork/drivers/bridge/brmanager"
|
"github.com/docker/docker/daemon/libnetwork/drivers/bridge/brmanager"
|
||||||
"github.com/docker/docker/libnetwork/drivers/host"
|
"github.com/docker/docker/daemon/libnetwork/drivers/host"
|
||||||
"github.com/docker/docker/libnetwork/drivers/ipvlan/ivmanager"
|
"github.com/docker/docker/daemon/libnetwork/drivers/ipvlan/ivmanager"
|
||||||
"github.com/docker/docker/libnetwork/drivers/macvlan/mvmanager"
|
"github.com/docker/docker/daemon/libnetwork/drivers/macvlan/mvmanager"
|
||||||
"github.com/docker/docker/libnetwork/drivers/overlay/ovmanager"
|
"github.com/docker/docker/daemon/libnetwork/drivers/overlay/ovmanager"
|
||||||
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
||||||
)
|
)
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
package cnmallocator
|
package cnmallocator
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/docker/docker/libnetwork/driverapi"
|
"github.com/docker/docker/daemon/libnetwork/driverapi"
|
||||||
"github.com/docker/docker/libnetwork/drivers/overlay/ovmanager"
|
"github.com/docker/docker/daemon/libnetwork/drivers/overlay/ovmanager"
|
||||||
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
||||||
)
|
)
|
||||||
|
|
@ -3,9 +3,9 @@ package cnmallocator
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/docker/docker/libnetwork/driverapi"
|
"github.com/docker/docker/daemon/libnetwork/driverapi"
|
||||||
"github.com/docker/docker/libnetwork/scope"
|
"github.com/docker/docker/daemon/libnetwork/scope"
|
||||||
"github.com/docker/docker/libnetwork/types"
|
"github.com/docker/docker/daemon/libnetwork/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type manager struct {
|
type manager struct {
|
@ -7,14 +7,14 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/libnetwork/driverapi"
|
"github.com/docker/docker/daemon/libnetwork/driverapi"
|
||||||
"github.com/docker/docker/libnetwork/drivers/remote"
|
"github.com/docker/docker/daemon/libnetwork/drivers/remote"
|
||||||
"github.com/docker/docker/libnetwork/drvregistry"
|
"github.com/docker/docker/daemon/libnetwork/drvregistry"
|
||||||
"github.com/docker/docker/libnetwork/ipamapi"
|
"github.com/docker/docker/daemon/libnetwork/ipamapi"
|
||||||
"github.com/docker/docker/libnetwork/ipams/defaultipam"
|
"github.com/docker/docker/daemon/libnetwork/ipams/defaultipam"
|
||||||
remoteipam "github.com/docker/docker/libnetwork/ipams/remote"
|
remoteipam "github.com/docker/docker/daemon/libnetwork/ipams/remote"
|
||||||
"github.com/docker/docker/libnetwork/netlabel"
|
"github.com/docker/docker/daemon/libnetwork/netlabel"
|
||||||
"github.com/docker/docker/libnetwork/scope"
|
"github.com/docker/docker/daemon/libnetwork/scope"
|
||||||
"github.com/docker/docker/pkg/plugingetter"
|
"github.com/docker/docker/pkg/plugingetter"
|
||||||
"github.com/moby/swarmkit/v2/api"
|
"github.com/moby/swarmkit/v2/api"
|
||||||
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
@ -6,7 +6,7 @@ import (
|
|||||||
"net/netip"
|
"net/netip"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/docker/docker/libnetwork/ipamapi"
|
"github.com/docker/docker/daemon/libnetwork/ipamapi"
|
||||||
"github.com/moby/swarmkit/v2/api"
|
"github.com/moby/swarmkit/v2/api"
|
||||||
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
||||||
"gotest.tools/v3/assert"
|
"gotest.tools/v3/assert"
|
@ -3,10 +3,10 @@ package cnmallocator
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/docker/docker/libnetwork/driverapi"
|
"github.com/docker/docker/daemon/libnetwork/driverapi"
|
||||||
"github.com/docker/docker/libnetwork/drivers/overlay/overlayutils"
|
"github.com/docker/docker/daemon/libnetwork/drivers/overlay/overlayutils"
|
||||||
"github.com/docker/docker/libnetwork/ipamapi"
|
"github.com/docker/docker/daemon/libnetwork/ipamapi"
|
||||||
"github.com/docker/docker/libnetwork/ipams/defaultipam"
|
"github.com/docker/docker/daemon/libnetwork/ipams/defaultipam"
|
||||||
"github.com/docker/docker/pkg/plugingetter"
|
"github.com/docker/docker/pkg/plugingetter"
|
||||||
"github.com/moby/swarmkit/v2/api"
|
"github.com/moby/swarmkit/v2/api"
|
||||||
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
"github.com/moby/swarmkit/v2/manager/allocator/networkallocator"
|
@ -8,10 +8,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/libnetwork/cluster"
|
"github.com/docker/docker/daemon/libnetwork/cluster"
|
||||||
"github.com/docker/docker/libnetwork/datastore"
|
"github.com/docker/docker/daemon/libnetwork/datastore"
|
||||||
"github.com/docker/docker/libnetwork/ipamutils"
|
"github.com/docker/docker/daemon/libnetwork/ipamutils"
|
||||||
"github.com/docker/docker/libnetwork/netlabel"
|
"github.com/docker/docker/daemon/libnetwork/netlabel"
|
||||||
"github.com/docker/docker/pkg/plugingetter"
|
"github.com/docker/docker/pkg/plugingetter"
|
||||||
)
|
)
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
package config
|
package config
|
||||||
|
|
||||||
import "github.com/docker/docker/libnetwork/osl"
|
import "github.com/docker/docker/daemon/libnetwork/osl"
|
||||||
|
|
||||||
// optionExecRoot on Linux sets both the controller's ExecRoot and osl.basePath.
|
// optionExecRoot on Linux sets both the controller's ExecRoot and osl.basePath.
|
||||||
func optionExecRoot(execRoot string) Option {
|
func optionExecRoot(execRoot string) Option {
|
@ -4,7 +4,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/docker/docker/libnetwork/netlabel"
|
"github.com/docker/docker/daemon/libnetwork/netlabel"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestOptionsLabels(t *testing.T) {
|
func TestOptionsLabels(t *testing.T) {
|
@ -54,21 +54,21 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/cluster"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/config"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/datastore"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/diagnostic"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/discoverapi"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/driverapi"
|
||||||
|
remotedriver "github.com/docker/docker/daemon/libnetwork/drivers/remote"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/drvregistry"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/ipamapi"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/ipams"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/netlabel"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/osl"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/scope"
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/types"
|
||||||
"github.com/docker/docker/internal/otelutil"
|
"github.com/docker/docker/internal/otelutil"
|
||||||
"github.com/docker/docker/libnetwork/cluster"
|
|
||||||
"github.com/docker/docker/libnetwork/config"
|
|
||||||
"github.com/docker/docker/libnetwork/datastore"
|
|
||||||
"github.com/docker/docker/libnetwork/diagnostic"
|
|
||||||
"github.com/docker/docker/libnetwork/discoverapi"
|
|
||||||
"github.com/docker/docker/libnetwork/driverapi"
|
|
||||||
remotedriver "github.com/docker/docker/libnetwork/drivers/remote"
|
|
||||||
"github.com/docker/docker/libnetwork/drvregistry"
|
|
||||||
"github.com/docker/docker/libnetwork/ipamapi"
|
|
||||||
"github.com/docker/docker/libnetwork/ipams"
|
|
||||||
"github.com/docker/docker/libnetwork/netlabel"
|
|
||||||
"github.com/docker/docker/libnetwork/osl"
|
|
||||||
"github.com/docker/docker/libnetwork/scope"
|
|
||||||
"github.com/docker/docker/libnetwork/types"
|
|
||||||
"github.com/docker/docker/pkg/plugingetter"
|
"github.com/docker/docker/pkg/plugingetter"
|
||||||
"github.com/docker/docker/pkg/plugins"
|
"github.com/docker/docker/pkg/plugins"
|
||||||
"github.com/docker/docker/pkg/stringid"
|
"github.com/docker/docker/pkg/stringid"
|
@ -8,11 +8,11 @@ import (
|
|||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/api/types/system"
|
"github.com/docker/docker/api/types/system"
|
||||||
"github.com/docker/docker/libnetwork/internal/nftables"
|
"github.com/docker/docker/daemon/libnetwork/internal/nftables"
|
||||||
"github.com/docker/docker/libnetwork/iptables"
|
"github.com/docker/docker/daemon/libnetwork/iptables"
|
||||||
"github.com/docker/docker/libnetwork/netlabel"
|
"github.com/docker/docker/daemon/libnetwork/netlabel"
|
||||||
"github.com/docker/docker/libnetwork/options"
|
"github.com/docker/docker/daemon/libnetwork/options"
|
||||||
"github.com/docker/docker/libnetwork/osl"
|
"github.com/docker/docker/daemon/libnetwork/osl"
|
||||||
)
|
)
|
||||||
|
|
||||||
// FirewallBackend returns the name of the firewall backend for "docker info".
|
// FirewallBackend returns the name of the firewall backend for "docker info".
|
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
store "github.com/docker/docker/libnetwork/internal/kvstore"
|
store "github.com/docker/docker/daemon/libnetwork/internal/kvstore"
|
||||||
)
|
)
|
||||||
|
|
||||||
type kvMap map[string]KVObject
|
type kvMap map[string]KVObject
|
@ -6,9 +6,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
store "github.com/docker/docker/libnetwork/internal/kvstore"
|
store "github.com/docker/docker/daemon/libnetwork/internal/kvstore"
|
||||||
"github.com/docker/docker/libnetwork/internal/kvstore/boltdb"
|
"github.com/docker/docker/daemon/libnetwork/internal/kvstore/boltdb"
|
||||||
"github.com/docker/docker/libnetwork/types"
|
"github.com/docker/docker/daemon/libnetwork/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ErrKeyModified is raised for an atomic update when the update is working on a stale state
|
// ErrKeyModified is raised for an atomic update when the update is working on a stale state
|
@ -4,7 +4,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/docker/docker/libnetwork/options"
|
"github.com/docker/docker/daemon/libnetwork/options"
|
||||||
"gotest.tools/v3/assert"
|
"gotest.tools/v3/assert"
|
||||||
is "gotest.tools/v3/assert/cmp"
|
is "gotest.tools/v3/assert/cmp"
|
||||||
)
|
)
|
@ -3,8 +3,8 @@ package datastore
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
store "github.com/docker/docker/libnetwork/internal/kvstore"
|
store "github.com/docker/docker/daemon/libnetwork/internal/kvstore"
|
||||||
"github.com/docker/docker/libnetwork/types"
|
"github.com/docker/docker/daemon/libnetwork/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MockData exported
|
// MockData exported
|
@ -7,8 +7,8 @@ import (
|
|||||||
|
|
||||||
cerrdefs "github.com/containerd/errdefs"
|
cerrdefs "github.com/containerd/errdefs"
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/libnetwork/netlabel"
|
"github.com/docker/docker/daemon/libnetwork/netlabel"
|
||||||
"github.com/docker/docker/libnetwork/types"
|
"github.com/docker/docker/daemon/libnetwork/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
@ -1,6 +1,6 @@
|
|||||||
package libnetwork
|
package libnetwork
|
||||||
|
|
||||||
import "github.com/docker/docker/libnetwork/types"
|
import "github.com/docker/docker/daemon/libnetwork/types"
|
||||||
|
|
||||||
const libnGWNetwork = "docker_gwbridge"
|
const libnGWNetwork = "docker_gwbridge"
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/docker/docker/daemon/libnetwork/drivers/bridge"
|
||||||
"github.com/docker/docker/internal/otelutil"
|
"github.com/docker/docker/internal/otelutil"
|
||||||
"github.com/docker/docker/libnetwork/drivers/bridge"
|
|
||||||
"go.opentelemetry.io/otel/baggage"
|
"go.opentelemetry.io/otel/baggage"
|
||||||
)
|
)
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package libnetwork
|
package libnetwork
|
||||||
|
|
||||||
import (
|
import (
|
||||||
windriver "github.com/docker/docker/libnetwork/drivers/windows"
|
windriver "github.com/docker/docker/daemon/libnetwork/drivers/windows"
|
||||||
"github.com/docker/docker/libnetwork/options"
|
"github.com/docker/docker/daemon/libnetwork/options"
|
||||||
"github.com/docker/docker/libnetwork/types"
|
"github.com/docker/docker/daemon/libnetwork/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const libnGWNetwork = "nat"
|
const libnGWNetwork = "nat"
|
@ -11,7 +11,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containerd/log"
|
"github.com/containerd/log"
|
||||||
"github.com/docker/docker/libnetwork/internal/caller"
|
"github.com/docker/docker/daemon/libnetwork/internal/caller"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server when the debug is enabled exposes a
|
// Server when the debug is enabled exposes a
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 105 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 108 KiB |