Merge pull request #1038 from kolyshkin/context

Switch from x/net/context to context
This commit is contained in:
Brian Goff 2018-05-11 22:13:52 -04:00 committed by GitHub
commit fd060d2f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
171 changed files with 197 additions and 188 deletions

View File

@ -1,9 +1,10 @@
package checkpoint package checkpoint
import ( import (
"context"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/client" "github.com/docker/docker/client"
"golang.org/x/net/context"
) )
type fakeClient struct { type fakeClient struct {

View File

@ -1,10 +1,9 @@
package checkpoint package checkpoint
import ( import (
"context"
"fmt" "fmt"
"golang.org/x/net/context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"

View File

@ -1,7 +1,7 @@
package checkpoint package checkpoint
import ( import (
"golang.org/x/net/context" "context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"

View File

@ -1,7 +1,7 @@
package checkpoint package checkpoint
import ( import (
"golang.org/x/net/context" "context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"

View File

@ -1,6 +1,7 @@
package command package command
import ( import (
"context"
"io" "io"
"net" "net"
"net/http" "net/http"
@ -28,7 +29,6 @@ import (
"github.com/theupdateframework/notary" "github.com/theupdateframework/notary"
notaryclient "github.com/theupdateframework/notary/client" notaryclient "github.com/theupdateframework/notary/client"
"github.com/theupdateframework/notary/passphrase" "github.com/theupdateframework/notary/passphrase"
"golang.org/x/net/context"
) )
// Streams is an interface which exposes the standard input and output streams // Streams is an interface which exposes the standard input and output streams

View File

@ -1,6 +1,7 @@
package command package command
import ( import (
"context"
"crypto/x509" "crypto/x509"
"os" "os"
"runtime" "runtime"
@ -17,7 +18,6 @@ import (
"github.com/gotestyourself/gotestyourself/env" "github.com/gotestyourself/gotestyourself/env"
"github.com/gotestyourself/gotestyourself/fs" "github.com/gotestyourself/gotestyourself/fs"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context"
) )
func TestNewAPIClientFromFlags(t *testing.T) { func TestNewAPIClientFromFlags(t *testing.T) {

View File

@ -1,10 +1,11 @@
package config package config
import ( import (
"context"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/client" "github.com/docker/docker/client"
"golang.org/x/net/context"
) )
type fakeClient struct { type fakeClient struct {

View File

@ -1,6 +1,7 @@
package config package config
import ( import (
"context"
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"
@ -12,7 +13,6 @@ import (
"github.com/docker/docker/pkg/system" "github.com/docker/docker/pkg/system"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type createOptions struct { type createOptions struct {

View File

@ -1,6 +1,7 @@
package config package config
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -8,7 +9,6 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type inspectOptions struct { type inspectOptions struct {

View File

@ -1,6 +1,7 @@
package config package config
import ( import (
"context"
"sort" "sort"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
@ -10,7 +11,6 @@ import (
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
"vbom.ml/util/sortorder" "vbom.ml/util/sortorder"
) )

View File

@ -1,6 +1,7 @@
package config package config
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -8,7 +9,6 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type removeOptions struct { type removeOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"io" "io"
"net/http/httputil" "net/http/httputil"
@ -14,7 +15,6 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type attachOptions struct { type attachOptions struct {

View File

@ -1,13 +1,13 @@
package container package container
import ( import (
"context"
"io" "io"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/network" "github.com/docker/docker/api/types/network"
"github.com/docker/docker/client" "github.com/docker/docker/client"
"golang.org/x/net/context"
) )
type fakeClient struct { type fakeClient struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
@ -8,7 +9,6 @@ import (
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type commitOptions struct { type commitOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"io" "io"
"os" "os"
"path/filepath" "path/filepath"
@ -13,7 +14,6 @@ import (
"github.com/docker/docker/pkg/system" "github.com/docker/docker/pkg/system"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type copyOptions struct { type copyOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"io" "io"
"os" "os"
@ -17,7 +18,6 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"
"golang.org/x/net/context"
) )
type createOptions struct { type createOptions struct {

View File

@ -1,12 +1,13 @@
package container package container
import ( import (
"context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type diffOptions struct { type diffOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"io" "io"
@ -13,7 +14,6 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type execOptions struct { type execOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"io/ioutil" "io/ioutil"
"testing" "testing"
@ -12,7 +13,6 @@ import (
"github.com/gotestyourself/gotestyourself/assert" "github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp" is "github.com/gotestyourself/gotestyourself/assert/cmp"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context"
) )
func withDefaultOpts(options execOptions) execOptions { func withDefaultOpts(options execOptions) execOptions {

View File

@ -1,13 +1,13 @@
package container package container
import ( import (
"context"
"io" "io"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type exportOptions struct { type exportOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"io" "io"
"runtime" "runtime"
@ -12,7 +13,6 @@ import (
"github.com/docker/docker/pkg/stdcopy" "github.com/docker/docker/pkg/stdcopy"
"github.com/docker/docker/pkg/term" "github.com/docker/docker/pkg/term"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"golang.org/x/net/context"
) )
// The default escape key sequence: ctrl-p, ctrl-q // The default escape key sequence: ctrl-p, ctrl-q

View File

@ -1,11 +1,12 @@
package container package container
import ( import (
"context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/inspect" "github.com/docker/cli/cli/command/inspect"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type inspectOptions struct { type inspectOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -8,7 +9,6 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type killOptions struct { type killOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"io/ioutil" "io/ioutil"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
@ -10,7 +11,6 @@ import (
"github.com/docker/cli/templates" "github.com/docker/cli/templates"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type psOptions struct { type psOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"io" "io"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
@ -8,7 +9,6 @@ import (
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/pkg/stdcopy" "github.com/docker/docker/pkg/stdcopy"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type logsOptions struct { type logsOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -8,7 +9,6 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type pauseOptions struct { type pauseOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -9,7 +10,6 @@ import (
"github.com/docker/go-connections/nat" "github.com/docker/go-connections/nat"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type portOptions struct { type portOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
@ -8,7 +9,6 @@ import (
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
units "github.com/docker/go-units" units "github.com/docker/go-units"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type pruneOptions struct { type pruneOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -8,7 +9,6 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type renameOptions struct { type renameOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
"time" "time"
@ -9,7 +10,6 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type restartOptions struct { type restartOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -9,7 +10,6 @@ import (
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type rmOptions struct { type rmOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"io" "io"
"net/http/httputil" "net/http/httputil"
@ -21,7 +22,6 @@ import (
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"
"golang.org/x/net/context"
) )
type runOptions struct { type runOptions struct {
@ -157,6 +157,7 @@ func runContainer(dockerCli command.Cli, opts *runOptions, copts *containerOptio
} }
ctx, cancelFun := context.WithCancel(context.Background()) ctx, cancelFun := context.WithCancel(context.Background())
defer cancelFun()
createResponse, err := createContainer(ctx, dockerCli, containerConfig, &opts.createOptions) createResponse, err := createContainer(ctx, dockerCli, containerConfig, &opts.createOptions)
if err != nil { if err != nil {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"io" "io"
"net/http/httputil" "net/http/httputil"
@ -13,7 +14,6 @@ import (
"github.com/docker/docker/pkg/term" "github.com/docker/docker/pkg/term"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type startOptions struct { type startOptions struct {
@ -55,6 +55,7 @@ func NewStartCommand(dockerCli command.Cli) *cobra.Command {
// nolint: gocyclo // nolint: gocyclo
func runStart(dockerCli command.Cli, opts *startOptions) error { func runStart(dockerCli command.Cli, opts *startOptions) error {
ctx, cancelFun := context.WithCancel(context.Background()) ctx, cancelFun := context.WithCancel(context.Background())
defer cancelFun()
if opts.attach || opts.openStdin { if opts.attach || opts.openStdin {
// We're going to attach to a container. // We're going to attach to a container.

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"io" "io"
"strings" "strings"
@ -15,7 +16,6 @@ import (
"github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/filters"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type statsOptions struct { type statsOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"encoding/json" "encoding/json"
"io" "io"
"strings" "strings"
@ -12,7 +13,6 @@ import (
"github.com/docker/docker/client" "github.com/docker/docker/client"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"golang.org/x/net/context"
) )
type stats struct { type stats struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
"time" "time"
@ -9,7 +10,6 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type stopOptions struct { type stopOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
"text/tabwriter" "text/tabwriter"
@ -8,7 +9,6 @@ import (
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type topOptions struct { type topOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"os" "os"
gosignal "os/signal" gosignal "os/signal"
@ -12,7 +13,6 @@ import (
"github.com/docker/docker/client" "github.com/docker/docker/client"
"github.com/docker/docker/pkg/signal" "github.com/docker/docker/pkg/signal"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"golang.org/x/net/context"
) )
// resizeTtyTo resizes tty to specific height and width // resizeTtyTo resizes tty to specific height and width

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -8,7 +9,6 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type unpauseOptions struct { type unpauseOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -10,7 +11,6 @@ import (
containertypes "github.com/docker/docker/api/types/container" containertypes "github.com/docker/docker/api/types/container"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type updateOptions struct { type updateOptions struct {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"strconv" "strconv"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
@ -10,7 +11,6 @@ import (
"github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/versions" "github.com/docker/docker/api/types/versions"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"golang.org/x/net/context"
) )
func waitExitOrRemoved(ctx context.Context, dockerCli command.Cli, containerID string, waitRemove bool) <-chan int { func waitExitOrRemoved(ctx context.Context, dockerCli command.Cli, containerID string, waitRemove bool) <-chan int {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"strings" "strings"
"testing" "testing"
@ -10,7 +11,6 @@ import (
"github.com/gotestyourself/gotestyourself/assert" "github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp" is "github.com/gotestyourself/gotestyourself/assert/cmp"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context"
) )
func waitFn(cid string) (<-chan container.ContainerWaitOKBody, <-chan error) { func waitFn(cid string) (<-chan container.ContainerWaitOKBody, <-chan error) {

View File

@ -1,6 +1,7 @@
package container package container
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -8,7 +9,6 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type waitOptions struct { type waitOptions struct {

View File

@ -1,10 +1,11 @@
package idresolver package idresolver
import ( import (
"context"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/client" "github.com/docker/docker/client"
"golang.org/x/net/context"
) )
type fakeClient struct { type fakeClient struct {

View File

@ -1,7 +1,7 @@
package idresolver package idresolver
import ( import (
"golang.org/x/net/context" "context"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"

View File

@ -7,9 +7,10 @@ import (
"github.com/gotestyourself/gotestyourself/assert" "github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp" is "github.com/gotestyourself/gotestyourself/assert/cmp"
// Import builders to get the builder function as package function // Import builders to get the builder function as package function
"context"
. "github.com/docker/cli/internal/test/builders" . "github.com/docker/cli/internal/test/builders"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context"
) )
func TestResolveError(t *testing.T) { func TestResolveError(t *testing.T) {

View File

@ -4,6 +4,7 @@ import (
"archive/tar" "archive/tar"
"bufio" "bufio"
"bytes" "bytes"
"context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"io" "io"
@ -32,7 +33,6 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type buildOptions struct { type buildOptions struct {

View File

@ -4,6 +4,7 @@ import (
"archive/tar" "archive/tar"
"bytes" "bytes"
"compress/gzip" "compress/gzip"
"context"
"io" "io"
"io/ioutil" "io/ioutil"
"os" "os"
@ -19,7 +20,6 @@ import (
"github.com/gotestyourself/gotestyourself/assert" "github.com/gotestyourself/gotestyourself/assert"
"github.com/gotestyourself/gotestyourself/fs" "github.com/gotestyourself/gotestyourself/fs"
"github.com/gotestyourself/gotestyourself/skip" "github.com/gotestyourself/gotestyourself/skip"
"golang.org/x/net/context"
) )
func TestRunBuildDockerfileFromStdinWithCompress(t *testing.T) { func TestRunBuildDockerfileFromStdinWithCompress(t *testing.T) {

View File

@ -1,6 +1,7 @@
package image package image
import ( import (
"context"
"io" "io"
"io/ioutil" "io/ioutil"
"strings" "strings"
@ -10,7 +11,6 @@ import (
"github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/image" "github.com/docker/docker/api/types/image"
"github.com/docker/docker/client" "github.com/docker/docker/client"
"golang.org/x/net/context"
) )
type fakeClient struct { type fakeClient struct {

View File

@ -1,7 +1,7 @@
package image package image
import ( import (
"golang.org/x/net/context" "context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"

View File

@ -1,6 +1,7 @@
package image package image
import ( import (
"context"
"io" "io"
"os" "os"
@ -11,7 +12,6 @@ import (
"github.com/docker/docker/pkg/jsonmessage" "github.com/docker/docker/pkg/jsonmessage"
"github.com/docker/docker/pkg/urlutil" "github.com/docker/docker/pkg/urlutil"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type importOptions struct { type importOptions struct {

View File

@ -1,7 +1,7 @@
package image package image
import ( import (
"golang.org/x/net/context" "context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"

View File

@ -1,13 +1,14 @@
package image package image
import ( import (
"context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type imagesOptions struct { type imagesOptions struct {

View File

@ -1,10 +1,9 @@
package image package image
import ( import (
"context"
"io" "io"
"golang.org/x/net/context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/docker/pkg/jsonmessage" "github.com/docker/docker/pkg/jsonmessage"

View File

@ -1,10 +1,9 @@
package image package image
import ( import (
"context"
"fmt" "fmt"
"golang.org/x/net/context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/opts" "github.com/docker/cli/opts"

View File

@ -1,6 +1,7 @@
package image package image
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -10,7 +11,6 @@ import (
"github.com/docker/distribution/reference" "github.com/docker/distribution/reference"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
// PullOptions defines what and how to pull // PullOptions defines what and how to pull

View File

@ -1,7 +1,7 @@
package image package image
import ( import (
"golang.org/x/net/context" "context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"

View File

@ -1,11 +1,10 @@
package image package image
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
"golang.org/x/net/context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"

View File

@ -1,6 +1,7 @@
package image package image
import ( import (
"context"
"io" "io"
"os" "os"
"path/filepath" "path/filepath"
@ -9,7 +10,6 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type saveOptions struct { type saveOptions struct {

View File

@ -1,7 +1,7 @@
package image package image
import ( import (
"golang.org/x/net/context" "context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"

View File

@ -1,6 +1,7 @@
package image package image
import ( import (
"context"
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"fmt" "fmt"
@ -19,7 +20,6 @@ import (
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/theupdateframework/notary/client" "github.com/theupdateframework/notary/client"
"github.com/theupdateframework/notary/tuf/data" "github.com/theupdateframework/notary/tuf/data"
"golang.org/x/net/context"
) )
type target struct { type target struct {

View File

@ -1,12 +1,13 @@
package manifest package manifest
import ( import (
"context"
manifesttypes "github.com/docker/cli/cli/manifest/types" manifesttypes "github.com/docker/cli/cli/manifest/types"
"github.com/docker/cli/cli/registry/client" "github.com/docker/cli/cli/registry/client"
"github.com/docker/distribution" "github.com/docker/distribution"
"github.com/docker/distribution/reference" "github.com/docker/distribution/reference"
"github.com/opencontainers/go-digest" "github.com/opencontainers/go-digest"
"golang.org/x/net/context"
) )
type fakeRegistryClient struct { type fakeRegistryClient struct {

View File

@ -1,6 +1,7 @@
package manifest package manifest
import ( import (
"context"
"fmt" "fmt"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
@ -9,7 +10,6 @@ import (
"github.com/docker/docker/registry" "github.com/docker/docker/registry"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type createOpts struct { type createOpts struct {

View File

@ -1,6 +1,7 @@
package manifest package manifest
import ( import (
"context"
"io/ioutil" "io/ioutil"
"testing" "testing"
@ -11,7 +12,6 @@ import (
is "github.com/gotestyourself/gotestyourself/assert/cmp" is "github.com/gotestyourself/gotestyourself/assert/cmp"
"github.com/gotestyourself/gotestyourself/golden" "github.com/gotestyourself/gotestyourself/golden"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context"
) )
func TestManifestCreateErrors(t *testing.T) { func TestManifestCreateErrors(t *testing.T) {

View File

@ -2,6 +2,7 @@ package manifest
import ( import (
"bytes" "bytes"
"context"
"encoding/json" "encoding/json"
"fmt" "fmt"
@ -12,7 +13,6 @@ import (
"github.com/docker/distribution/reference" "github.com/docker/distribution/reference"
"github.com/docker/docker/registry" "github.com/docker/docker/registry"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type inspectOptions struct { type inspectOptions struct {

View File

@ -1,6 +1,7 @@
package manifest package manifest
import ( import (
"context"
"io/ioutil" "io/ioutil"
"os" "os"
"testing" "testing"
@ -17,7 +18,6 @@ import (
"github.com/gotestyourself/gotestyourself/golden" "github.com/gotestyourself/gotestyourself/golden"
digest "github.com/opencontainers/go-digest" digest "github.com/opencontainers/go-digest"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context"
) )
func newTempManifestStore(t *testing.T) (store.Store, func()) { func newTempManifestStore(t *testing.T) (store.Store, func()) {

View File

@ -1,6 +1,7 @@
package manifest package manifest
import ( import (
"context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"io" "io"
@ -15,7 +16,6 @@ import (
"github.com/docker/docker/registry" "github.com/docker/docker/registry"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type pushOpts struct { type pushOpts struct {

View File

@ -1,6 +1,7 @@
package manifest package manifest
import ( import (
"context"
"io/ioutil" "io/ioutil"
"testing" "testing"
@ -9,7 +10,6 @@ import (
"github.com/docker/distribution/reference" "github.com/docker/distribution/reference"
"github.com/gotestyourself/gotestyourself/assert" "github.com/gotestyourself/gotestyourself/assert"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context"
) )
func newFakeRegistryClient() *fakeRegistryClient { func newFakeRegistryClient() *fakeRegistryClient {

View File

@ -1,11 +1,12 @@
package manifest package manifest
import ( import (
"context"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/manifest/store" "github.com/docker/cli/cli/manifest/store"
"github.com/docker/cli/cli/manifest/types" "github.com/docker/cli/cli/manifest/types"
"github.com/docker/distribution/reference" "github.com/docker/distribution/reference"
"golang.org/x/net/context"
) )
type osArch struct { type osArch struct {

View File

@ -1,10 +1,11 @@
package network package network
import ( import (
"context"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/network" "github.com/docker/docker/api/types/network"
"github.com/docker/docker/client" "github.com/docker/docker/client"
"golang.org/x/net/context"
) )
type fakeClient struct { type fakeClient struct {

View File

@ -1,12 +1,13 @@
package network package network
import ( import (
"context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
"github.com/docker/docker/api/types/network" "github.com/docker/docker/api/types/network"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type connectOptions struct { type connectOptions struct {

View File

@ -1,6 +1,7 @@
package network package network
import ( import (
"context"
"io/ioutil" "io/ioutil"
"testing" "testing"
@ -9,7 +10,6 @@ import (
"github.com/gotestyourself/gotestyourself/assert" "github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp" is "github.com/gotestyourself/gotestyourself/assert/cmp"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context"
) )
func TestNetworkConnectErrors(t *testing.T) { func TestNetworkConnectErrors(t *testing.T) {

View File

@ -1,6 +1,7 @@
package network package network
import ( import (
"context"
"fmt" "fmt"
"net" "net"
"strings" "strings"
@ -12,7 +13,6 @@ import (
"github.com/docker/docker/api/types/network" "github.com/docker/docker/api/types/network"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type createOptions struct { type createOptions struct {

View File

@ -1,6 +1,7 @@
package network package network
import ( import (
"context"
"io/ioutil" "io/ioutil"
"strings" "strings"
"testing" "testing"
@ -11,7 +12,6 @@ import (
"github.com/gotestyourself/gotestyourself/assert" "github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp" is "github.com/gotestyourself/gotestyourself/assert/cmp"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context"
) )
func TestNetworkCreateErrors(t *testing.T) { func TestNetworkCreateErrors(t *testing.T) {

View File

@ -1,7 +1,7 @@
package network package network
import ( import (
"golang.org/x/net/context" "context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"

View File

@ -1,13 +1,13 @@
package network package network
import ( import (
"context"
"io/ioutil" "io/ioutil"
"testing" "testing"
"github.com/docker/cli/internal/test" "github.com/docker/cli/internal/test"
"github.com/gotestyourself/gotestyourself/assert" "github.com/gotestyourself/gotestyourself/assert"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context"
) )
func TestNetworkDisconnectErrors(t *testing.T) { func TestNetworkDisconnectErrors(t *testing.T) {

View File

@ -1,7 +1,7 @@
package network package network
import ( import (
"golang.org/x/net/context" "context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"

View File

@ -1,6 +1,7 @@
package network package network
import ( import (
"context"
"sort" "sort"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
@ -9,7 +10,6 @@ import (
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type byNetworkName []types.NetworkResource type byNetworkName []types.NetworkResource

View File

@ -1,6 +1,7 @@
package network package network
import ( import (
"context"
"io/ioutil" "io/ioutil"
"strings" "strings"
"testing" "testing"
@ -14,7 +15,6 @@ import (
is "github.com/gotestyourself/gotestyourself/assert/cmp" is "github.com/gotestyourself/gotestyourself/assert/cmp"
"github.com/gotestyourself/gotestyourself/golden" "github.com/gotestyourself/gotestyourself/golden"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context"
) )
func TestNetworkListErrors(t *testing.T) { func TestNetworkListErrors(t *testing.T) {

View File

@ -1,13 +1,13 @@
package network package network
import ( import (
"context"
"fmt" "fmt"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type pruneOptions struct { type pruneOptions struct {

View File

@ -1,10 +1,9 @@
package network package network
import ( import (
"context"
"fmt" "fmt"
"golang.org/x/net/context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"

View File

@ -1,10 +1,11 @@
package node package node
import ( import (
"context"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/client" "github.com/docker/docker/client"
"golang.org/x/net/context"
) )
type fakeClient struct { type fakeClient struct {

View File

@ -1,6 +1,7 @@
package node package node
import ( import (
"context"
"errors" "errors"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
@ -8,7 +9,6 @@ import (
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
apiclient "github.com/docker/docker/client" apiclient "github.com/docker/docker/client"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
// NewNodeCommand returns a cobra command for `node` subcommands // NewNodeCommand returns a cobra command for `node` subcommands

View File

@ -1,6 +1,7 @@
package node package node
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -8,7 +9,6 @@ import (
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type inspectOptions struct { type inspectOptions struct {

View File

@ -1,6 +1,7 @@
package node package node
import ( import (
"context"
"sort" "sort"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
@ -10,7 +11,6 @@ import (
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
"vbom.ml/util/sortorder" "vbom.ml/util/sortorder"
) )

View File

@ -1,6 +1,7 @@
package node package node
import ( import (
"context"
"strings" "strings"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
@ -12,7 +13,6 @@ import (
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type psOptions struct { type psOptions struct {

View File

@ -1,11 +1,10 @@
package node package node
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
"golang.org/x/net/context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"

View File

@ -1,6 +1,7 @@
package node package node
import ( import (
"context"
"fmt" "fmt"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
@ -10,7 +11,6 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"
"golang.org/x/net/context"
) )
var ( var (

View File

@ -1,11 +1,11 @@
package plugin package plugin
import ( import (
"context"
"io" "io"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/client" "github.com/docker/docker/client"
"golang.org/x/net/context"
) )
type fakeClient struct { type fakeClient struct {

View File

@ -1,6 +1,7 @@
package plugin package plugin
import ( import (
"context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"io" "io"
@ -15,7 +16,6 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
// validateTag checks if the given repoName can be resolved. // validateTag checks if the given repoName can be resolved.

View File

@ -1,13 +1,13 @@
package plugin package plugin
import ( import (
"context"
"fmt" "fmt"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
func newDisableCommand(dockerCli command.Cli) *cobra.Command { func newDisableCommand(dockerCli command.Cli) *cobra.Command {

View File

@ -1,6 +1,7 @@
package plugin package plugin
import ( import (
"context"
"fmt" "fmt"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
@ -8,7 +9,6 @@ import (
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type enableOpts struct { type enableOpts struct {

View File

@ -1,11 +1,12 @@
package plugin package plugin
import ( import (
"context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/inspect" "github.com/docker/cli/cli/command/inspect"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type inspectOptions struct { type inspectOptions struct {

View File

@ -1,6 +1,7 @@
package plugin package plugin
import ( import (
"context"
"fmt" "fmt"
"strings" "strings"
@ -14,7 +15,6 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"
"golang.org/x/net/context"
) )
type pluginOptions struct { type pluginOptions struct {

View File

@ -1,12 +1,13 @@
package plugin package plugin
import ( import (
"context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/formatter" "github.com/docker/cli/cli/command/formatter"
"github.com/docker/cli/opts" "github.com/docker/cli/opts"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type listOptions struct { type listOptions struct {

View File

@ -1,7 +1,7 @@
package plugin package plugin
import ( import (
"golang.org/x/net/context" "context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"

View File

@ -1,13 +1,13 @@
package plugin package plugin
import ( import (
"context"
"fmt" "fmt"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/net/context"
) )
type rmOptions struct { type rmOptions struct {

View File

@ -1,7 +1,7 @@
package plugin package plugin
import ( import (
"golang.org/x/net/context" "context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"

View File

@ -2,6 +2,7 @@ package command
import ( import (
"bufio" "bufio"
"context"
"encoding/base64" "encoding/base64"
"encoding/json" "encoding/json"
"fmt" "fmt"
@ -16,7 +17,6 @@ import (
"github.com/docker/docker/pkg/term" "github.com/docker/docker/pkg/term"
"github.com/docker/docker/registry" "github.com/docker/docker/registry"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context"
) )
// ElectAuthServer returns the default registry to use (by asking the daemon) // ElectAuthServer returns the default registry to use (by asking the daemon)

View File

@ -1,12 +1,11 @@
package registry package registry
import ( import (
"context"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"strings" "strings"
"golang.org/x/net/context"
"github.com/docker/cli/cli" "github.com/docker/cli/cli"
"github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"

Some files were not shown because too many files have changed in this diff Show More