Create github.com/moby/moby/v2 module

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2025-07-31 10:13:29 -07:00
parent a954a0f4a2
commit f74e5d48b3
1013 changed files with 8199 additions and 2743 deletions

View File

@@ -13,7 +13,7 @@ import (
"strings"
"github.com/containerd/log"
"github.com/docker/docker/pkg/ioutils"
"github.com/moby/moby/v2/pkg/ioutils"
)
const maxBodySize = 1048576 // 1MB

View File

@@ -19,9 +19,9 @@ import (
"testing"
"time"
"github.com/docker/docker/pkg/plugins"
"github.com/docker/go-connections/tlsconfig"
"github.com/gorilla/mux"
"github.com/moby/moby/v2/pkg/plugins"
)
const (

View File

@@ -6,7 +6,7 @@ import (
"sync"
"github.com/containerd/log"
"github.com/docker/docker/pkg/plugingetter"
"github.com/moby/moby/v2/pkg/plugingetter"
)
// Middleware uses a list of plugins to

View File

@@ -6,7 +6,7 @@ import (
"strings"
"testing"
"github.com/docker/docker/pkg/plugingetter"
"github.com/moby/moby/v2/pkg/plugingetter"
"gotest.tools/v3/assert"
)

View File

@@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"
"github.com/docker/docker/pkg/plugingetter"
"github.com/moby/moby/v2/pkg/plugingetter"
"gotest.tools/v3/assert"
)

View File

@@ -3,8 +3,8 @@ package authorization
import (
"sync"
"github.com/docker/docker/pkg/plugingetter"
"github.com/docker/docker/pkg/plugins"
"github.com/moby/moby/v2/pkg/plugingetter"
"github.com/moby/moby/v2/pkg/plugins"
)
// Plugin allows third party plugins to authorize requests and responses

View File

@@ -9,7 +9,7 @@ import (
"os"
"strconv"
"github.com/docker/docker/pkg/process"
"github.com/moby/moby/v2/pkg/process"
)
// Read reads the "PID file" at path, and returns the PID if it contains a

View File

@@ -4,7 +4,7 @@ import (
"net"
"time"
"github.com/docker/docker/pkg/plugins"
"github.com/moby/moby/v2/pkg/plugins"
)
const (

View File

@@ -10,10 +10,10 @@ import (
"time"
"github.com/containerd/log"
"github.com/docker/docker/pkg/ioutils"
"github.com/docker/docker/pkg/plugins/transport"
"github.com/docker/go-connections/sockets"
"github.com/docker/go-connections/tlsconfig"
"github.com/moby/moby/v2/pkg/ioutils"
"github.com/moby/moby/v2/pkg/plugins/transport"
)
const (

View File

@@ -13,8 +13,8 @@ import (
"testing"
"time"
"github.com/docker/docker/pkg/plugins/transport"
"github.com/docker/go-connections/tlsconfig"
"github.com/moby/moby/v2/pkg/plugins/transport"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)

View File

@@ -6,7 +6,7 @@ import (
"os"
"path/filepath"
"github.com/docker/docker/pkg/homedir"
"github.com/moby/moby/v2/pkg/homedir"
)
func rootlessConfigPluginsPath() string {

View File

@@ -12,8 +12,8 @@ import (
"testing"
"time"
"github.com/docker/docker/pkg/plugins/transport"
"github.com/docker/go-connections/tlsconfig"
"github.com/moby/moby/v2/pkg/plugins/transport"
"github.com/pkg/errors"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"

View File

@@ -3,7 +3,7 @@ package foo
import (
aliasedio "io"
"github.com/docker/docker/pkg/plugins/pluginrpc-gen/fixtures/otherfixture"
"github.com/moby/moby/v2/pkg/plugins/pluginrpc-gen/fixtures/otherfixture"
)
type wobble struct {

View File

@@ -21,7 +21,7 @@ import(
"errors"
"time"
"github.com/docker/docker/pkg/plugins"
"github.com/moby/moby/v2/pkg/plugins"
`
for _, i := range specs {
imports += "\t" + i.String() + "\n"

View File

@@ -14,7 +14,7 @@ import (
"io"
"sync"
"github.com/docker/docker/pkg/ioutils"
"github.com/moby/moby/v2/pkg/ioutils"
)
const buffer32K = 32 * 1024