Create github.com/moby/moby/api module

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan committed 2025-07-21 09:30:05 -07:00
1 parent 135cea2a10
commit afd6487b2e
806 files changed
+23628 -4553

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
module github.com/moby/moby/api
go 1.23.0
require (
github.com/distribution/reference v0.6.0
github.com/docker/go-connections v0.5.0
github.com/docker/go-units v0.5.0
github.com/gogo/protobuf v1.3.2
github.com/moby/docker-image-spec v1.3.1
github.com/opencontainers/go-digest v1.0.0
github.com/opencontainers/image-spec v1.1.1
gotest.tools/v3 v3.5.2
)
require github.com/google/go-cmp v0.5.9 // indirect
+47
View File
@@ -0,0 +1,47 @@
github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk=
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c=
github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc=
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0=
github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo=
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=
github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q=
gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA=
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"time"
"github.com/distribution/reference"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/network"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/network"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
+2 -2
View File
@@ -3,8 +3,8 @@ package backend
import (
"io"
"github.com/docker/docker/api/types/build"
"github.com/docker/docker/api/types/registry"
"github.com/moby/moby/api/types/build"
"github.com/moby/moby/api/types/registry"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
+2 -2
View File
@@ -3,8 +3,8 @@ package build
import (
"io"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/registry"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/registry"
)
// BuilderVersion sets the version of underlying builder to use
+1 -1
View File
@@ -3,7 +3,7 @@ package build
import (
"time"
"github.com/docker/docker/api/types/filters"
"github.com/moby/moby/api/types/filters"
)
// CacheRecord contains information about a build cache record.
+1 -1
View File
@@ -1,6 +1,6 @@
package container
import "github.com/docker/docker/api/types/common"
import "github.com/moby/moby/api/types/common"
// CommitResponse response for the commit API call, containing the ID of the
// image that was produced.
+1 -1
View File
@@ -3,9 +3,9 @@ package container
import (
"time"
"github.com/docker/docker/api/types/strslice"
"github.com/docker/go-connections/nat"
dockerspec "github.com/moby/docker-image-spec/specs-go/v1"
"github.com/moby/moby/api/types/strslice"
)
// MinimumDuration puts a minimum on user configured duration.
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"os"
"time"
"github.com/docker/docker/api/types/mount"
"github.com/docker/docker/api/types/storage"
"github.com/moby/moby/api/types/mount"
"github.com/moby/moby/api/types/storage"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
+1 -1
View File
@@ -1,6 +1,6 @@
package container
import "github.com/docker/docker/api/types/network"
import "github.com/moby/moby/api/types/network"
// CreateRequest is the request message sent to the server for container
// create calls. It is a config wrapper that holds the container [Config]
+1 -1
View File
@@ -1,6 +1,6 @@
package container
import "github.com/docker/docker/api/types/common"
import "github.com/moby/moby/api/types/common"
// ExecCreateResponse is the response for a successful exec-create request.
// It holds the ID of the exec that was created.
+4 -4
View File
@@ -5,12 +5,12 @@ import (
"fmt"
"strings"
"github.com/docker/docker/api/types/blkiodev"
"github.com/docker/docker/api/types/mount"
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/api/types/strslice"
"github.com/docker/go-connections/nat"
"github.com/docker/go-units"
"github.com/moby/moby/api/types/blkiodev"
"github.com/moby/moby/api/types/mount"
"github.com/moby/moby/api/types/network"
"github.com/moby/moby/api/types/strslice"
)
// CgroupnsMode represents the cgroup namespace mode of the container
+1 -1
View File
@@ -2,7 +2,7 @@
package container
import "github.com/docker/docker/api/types/network"
import "github.com/moby/moby/api/types/network"
// IsValid indicates if an isolation technology is valid
func (i Isolation) IsValid() bool {
+1 -1
View File
@@ -1,6 +1,6 @@
package container
import "github.com/docker/docker/api/types/network"
import "github.com/moby/moby/api/types/network"
// IsValid indicates if an isolation technology is valid
func (i Isolation) IsValid() bool {
+1 -1
View File
@@ -1,8 +1,8 @@
package container
import (
"github.com/docker/docker/api/types/network"
"github.com/docker/go-connections/nat"
"github.com/moby/moby/api/types/network"
)
// NetworkSettings exposes the network settings in the api
+1 -1
View File
@@ -1,6 +1,6 @@
package container
import "github.com/docker/docker/api/types/filters"
import "github.com/moby/moby/api/types/filters"
// ResizeOptions holds parameters to resize a TTY.
// It can be used to resize container TTYs and
+1 -1
View File
@@ -1,6 +1,6 @@
package events
import "github.com/docker/docker/api/types/filters"
import "github.com/moby/moby/api/types/filters"
// Type is used for event-types.
type Type string
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"regexp"
"strings"
"github.com/docker/docker/api/types/versions"
"github.com/moby/moby/api/types/versions"
)
// Args stores a mapping of keys to a set of multiple values.
+2 -2
View File
@@ -1,9 +1,9 @@
package image
import (
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/storage"
dockerspec "github.com/moby/docker-image-spec/specs-go/v1"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/storage"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"io"
"github.com/docker/docker/api/types/filters"
"github.com/moby/moby/api/types/filters"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package network
import (
"time"
"github.com/docker/docker/api/types/filters"
"github.com/moby/moby/api/types/filters"
)
const (
+1 -1
View File
@@ -3,7 +3,7 @@ package registry
import (
"context"
"github.com/docker/docker/api/types/filters"
"github.com/moby/moby/api/types/filters"
)
// SearchOptions holds parameters to search images with.
+1 -1
View File
@@ -3,7 +3,7 @@ package swarm
import (
"os"
"github.com/docker/docker/api/types/filters"
"github.com/moby/moby/api/types/filters"
)
// Config represents a config.
+2 -2
View File
@@ -3,8 +3,8 @@ package swarm
import (
"time"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/mount"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/mount"
)
// DNSConfig specifies DNS related configurations in resolver configuration file (resolv.conf)
+1 -1
View File
@@ -1,7 +1,7 @@
package swarm
import (
"github.com/docker/docker/api/types/network"
"github.com/moby/moby/api/types/network"
)
// Endpoint represents an endpoint.
+1 -1
View File
@@ -1,6 +1,6 @@
package swarm
import "github.com/docker/docker/api/types/filters"
import "github.com/moby/moby/api/types/filters"
// Node represents a node.
type Node struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package swarm
import (
"os"
"github.com/docker/docker/api/types/filters"
"github.com/moby/moby/api/types/filters"
)
// Secret represents a secret.
+1 -1
View File
@@ -3,7 +3,7 @@ package swarm
import (
"time"
"github.com/docker/docker/api/types/filters"
"github.com/moby/moby/api/types/filters"
)
// Service represents a service.
+2 -2
View File
@@ -3,8 +3,8 @@ package swarm
import (
"time"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/swarm/runtime"
"github.com/moby/moby/api/types/filters"
"github.com/moby/moby/api/types/swarm/runtime"
)
// TaskState represents the state of a task.
+4 -4
View File
@@ -1,10 +1,10 @@
package system
import (
"github.com/docker/docker/api/types/build"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/image"
"github.com/docker/docker/api/types/volume"
"github.com/moby/moby/api/types/build"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/image"
"github.com/moby/moby/api/types/volume"
)
// DiskUsage contains response of Engine API for API 1.49 and greater:
+3 -3
View File
@@ -1,9 +1,9 @@
package system
import (
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/registry"
"github.com/docker/docker/api/types/swarm"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/registry"
"github.com/moby/moby/api/types/swarm"
)
// Info contains response of Engine API:
+5 -5
View File
@@ -1,11 +1,11 @@
package types
import (
"github.com/docker/docker/api/types/build"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/image"
"github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/api/types/volume"
"github.com/moby/moby/api/types/build"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/image"
"github.com/moby/moby/api/types/swarm"
"github.com/moby/moby/api/types/volume"
)
const (
+1 -1
View File
@@ -1,7 +1,7 @@
package volume
import (
"github.com/docker/docker/api/types/swarm"
"github.com/moby/moby/api/types/swarm"
)
// ClusterVolume contains options and information specific to, and only present
+1 -1
View File
@@ -1,6 +1,6 @@
package volume
import "github.com/docker/docker/api/types/filters"
import "github.com/moby/moby/api/types/filters"
// ListOptions holds parameters to list volumes.
type ListOptions struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package client
import (
"context"
"github.com/docker/docker/api/types/registry"
"github.com/moby/moby/api/types/registry"
)
// staticAuth creates a privilegeFn from the given registryAuth.
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"net/url"
"strconv"
"github.com/docker/docker/api/types/build"
"github.com/docker/docker/api/types/filters"
"github.com/moby/moby/api/types/build"
"github.com/moby/moby/api/types/filters"
"github.com/pkg/errors"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package client
import (
"context"
"github.com/docker/docker/api/types/checkpoint"
"github.com/moby/moby/api/types/checkpoint"
)
// CheckpointAPIClient defines API client methods for the checkpoints.
+1 -1
View File
@@ -3,7 +3,7 @@ package client
import (
"context"
"github.com/docker/docker/api/types/checkpoint"
"github.com/moby/moby/api/types/checkpoint"
)
// CheckpointCreate creates a checkpoint from the given container with the given name
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/checkpoint"
"github.com/moby/moby/api/types/checkpoint"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"net/url"
"github.com/docker/docker/api/types/checkpoint"
"github.com/moby/moby/api/types/checkpoint"
)
// CheckpointDelete deletes the checkpoint with the given name from the given container
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/checkpoint"
"github.com/moby/moby/api/types/checkpoint"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"net/url"
"github.com/docker/docker/api/types/checkpoint"
"github.com/moby/moby/api/types/checkpoint"
)
// CheckpointList returns the checkpoints of the given container in the docker host
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/checkpoint"
"github.com/moby/moby/api/types/checkpoint"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+3 -3
View File
@@ -19,7 +19,7 @@ For example, to list running containers (the equivalent of "docker ps"):
"context"
"fmt"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"github.com/docker/docker/client"
)
@@ -53,9 +53,9 @@ import (
"sync/atomic"
"time"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/versions"
"github.com/docker/go-connections/sockets"
"github.com/moby/moby/api/types"
"github.com/moby/moby/api/types/versions"
"github.com/pkg/errors"
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
)
+11 -11
View File
@@ -6,17 +6,17 @@ import (
"net"
"net/http"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/build"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/image"
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/api/types/registry"
"github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/api/types/system"
"github.com/docker/docker/api/types/volume"
"github.com/moby/moby/api/types"
"github.com/moby/moby/api/types/build"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/events"
"github.com/moby/moby/api/types/filters"
"github.com/moby/moby/api/types/image"
"github.com/moby/moby/api/types/network"
"github.com/moby/moby/api/types/registry"
"github.com/moby/moby/api/types/swarm"
"github.com/moby/moby/api/types/system"
"github.com/moby/moby/api/types/volume"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"io"
"net/http"
"github.com/docker/docker/api/types"
"github.com/moby/moby/api/types"
)
// transportFunc allows us to inject a mock transport for testing. We define it
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"strings"
"testing"
"github.com/docker/docker/api/types"
"github.com/moby/moby/api/types"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
"gotest.tools/v3/skip"
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"github.com/docker/docker/api/types/swarm"
"github.com/moby/moby/api/types/swarm"
)
// ConfigCreate creates a new config.
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/swarm"
"github.com/moby/moby/api/types/swarm"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"encoding/json"
"io"
"github.com/docker/docker/api/types/swarm"
"github.com/moby/moby/api/types/swarm"
)
// ConfigInspectWithRaw returns the config information with raw data
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/swarm"
"github.com/moby/moby/api/types/swarm"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"encoding/json"
"net/url"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/swarm"
"github.com/moby/moby/api/types/filters"
"github.com/moby/moby/api/types/swarm"
)
// ConfigList returns the list of configs.
+2 -2
View File
@@ -11,8 +11,8 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/swarm"
"github.com/moby/moby/api/types/filters"
"github.com/moby/moby/api/types/swarm"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"net/url"
"github.com/docker/docker/api/types/swarm"
"github.com/moby/moby/api/types/swarm"
)
// ConfigUpdate attempts to update a config
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/swarm"
"github.com/moby/moby/api/types/swarm"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"net/http"
"net/url"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types"
"github.com/moby/moby/api/types/container"
)
// ContainerAttach attaches a connection to a container in the server.
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"net/url"
"github.com/distribution/reference"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
)
// ContainerCommit applies changes to a container and creates a new tagged image.
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"path/filepath"
"strings"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
)
// ContainerStatPath returns stat information about a path inside the container filesystem.
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+3 -3
View File
@@ -9,9 +9,9 @@ import (
"sort"
"strings"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/api/types/versions"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/network"
"github.com/moby/moby/api/types/versions"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"net/url"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
)
// ContainerDiff shows differences in a container filesystem since it was started.
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+3 -3
View File
@@ -5,9 +5,9 @@ import (
"encoding/json"
"net/http"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/versions"
"github.com/moby/moby/api/types"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/versions"
)
// ContainerExecCreate creates a new exec configuration to run an exec process.
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"io"
"net/url"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
)
// ContainerInspect returns the container information.
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"net/url"
"strconv"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/filters"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/filters"
)
// ContainerList returns the list of containers in the docker host.
+2 -2
View File
@@ -11,8 +11,8 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/filters"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/filters"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"net/url"
"time"
"github.com/docker/docker/api/types/container"
timetypes "github.com/docker/docker/api/types/time"
"github.com/moby/moby/api/types/container"
timetypes "github.com/moby/moby/api/types/time"
"github.com/pkg/errors"
)
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"time"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"encoding/json"
"fmt"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/filters"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/filters"
)
// ContainersPrune requests the daemon to delete unused data
+2 -2
View File
@@ -11,8 +11,8 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/filters"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/filters"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"net/url"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
)
// ContainerRemove kills and removes a container from the docker host.
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net/url"
"strconv"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
)
// ContainerResize changes the size of the tty for a container.
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"net/url"
"strconv"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/versions"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/versions"
)
// ContainerRestart stops and starts a container again.
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"net/url"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
)
// ContainerStart sends a request to the docker daemon to start a container.
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"net/url"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
)
// ContainerStats returns near realtime stats for a given container.
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"net/url"
"strconv"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/versions"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/versions"
)
// ContainerStop stops a container. In case the container fails to stop
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"net/url"
"strings"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
)
// ContainerTop shows process information from within a container.
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
)
// ContainerUpdate updates the resources of a container.
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"io"
"net/url"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/versions"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/versions"
)
const containerWaitErrorMsgLimit = 2 * 1024 /* Max: 2KiB */
+1 -1
View File
@@ -16,7 +16,7 @@ import (
"time"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/container"
"github.com/moby/moby/api/types/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"net/url"
"github.com/docker/docker/api/types"
"github.com/moby/moby/api/types"
)
// DiskUsage requests the current data usage from the daemon
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types"
"github.com/moby/moby/api/types"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"net/http"
"net/url"
"github.com/docker/docker/api/types/registry"
"github.com/moby/moby/api/types/registry"
)
// DistributionInspect returns the image digest with the full manifest.
+1 -1
View File
@@ -8,7 +8,7 @@ import (
cerrdefs "github.com/containerd/errdefs"
"github.com/containerd/errdefs/pkg/errhttp"
"github.com/docker/docker/api/types/versions"
"github.com/moby/moby/api/types/versions"
)
// errConnectionFailed implements an error returned when connection failed.
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"net/url"
"time"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/api/types/filters"
timetypes "github.com/docker/docker/api/types/time"
"github.com/moby/moby/api/types/events"
"github.com/moby/moby/api/types/filters"
timetypes "github.com/moby/moby/api/types/time"
)
// Events returns a stream of events in the daemon. It's up to the caller to close the stream
+2 -2
View File
@@ -12,8 +12,8 @@ import (
"testing"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/api/types/filters"
"github.com/moby/moby/api/types/events"
"github.com/moby/moby/api/types/filters"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"net/url"
"time"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/versions"
"github.com/moby/moby/api/types"
"github.com/moby/moby/api/types/versions"
"github.com/pkg/errors"
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
)
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"testing"
"time"
"github.com/docker/docker/api/types"
"github.com/moby/moby/api/types"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)
+3 -3
View File
@@ -10,9 +10,9 @@ import (
"strconv"
"strings"
"github.com/docker/docker/api/types/build"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/network"
"github.com/moby/moby/api/types/build"
"github.com/moby/moby/api/types/container"
"github.com/moby/moby/api/types/network"
)
// ImageBuild sends a request to the daemon to build images.
Loaded 100 of 806 files, more files were not shown because too many files have changed in this diff. Show more