Merge pull request #1038 from kolyshkin/context

Switch from x/net/context to context
Upstream-commit: fd060d2f33
Component: cli
This commit is contained in:
Brian Goff
2018-05-11 22:13:52 -04:00
committed by GitHub
171 changed files with 197 additions and 188 deletions

View File

@ -1,6 +1,7 @@
package stack
import (
"context"
"strings"
"github.com/docker/cli/cli/compose/convert"
@ -9,7 +10,6 @@ import (
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/client"
"golang.org/x/net/context"
)
type fakeClient struct {

View File

@ -1,6 +1,7 @@
package swarm
import (
"context"
"strings"
"github.com/docker/cli/cli/compose/convert"
@ -9,7 +10,6 @@ import (
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/client"
"golang.org/x/net/context"
)
type fakeClient struct {

View File

@ -1,13 +1,14 @@
package swarm
import (
"context"
"github.com/docker/cli/cli/compose/convert"
"github.com/docker/cli/opts"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/client"
"golang.org/x/net/context"
)
func getStackFilter(namespace string) filters.Args {

View File

@ -1,6 +1,7 @@
package swarm
import (
"context"
"fmt"
"github.com/docker/cli/cli/command"
@ -9,7 +10,6 @@ import (
"github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/api/types/versions"
"github.com/pkg/errors"
"golang.org/x/net/context"
)
// Resolve image constants

View File

@ -1,12 +1,11 @@
package swarm
import (
"context"
"fmt"
"io"
"os"
"golang.org/x/net/context"
"github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/bundlefile"
"github.com/docker/cli/cli/command/stack/options"

View File

@ -1,6 +1,7 @@
package swarm
import (
"context"
"fmt"
"github.com/docker/cli/cli/command"
@ -14,7 +15,6 @@ import (
apiclient "github.com/docker/docker/client"
dockerclient "github.com/docker/docker/client"
"github.com/pkg/errors"
"golang.org/x/net/context"
)
func deployCompose(ctx context.Context, dockerCli command.Cli, opts options.Deploy) error {

View File

@ -1,13 +1,13 @@
package swarm
import (
"context"
"testing"
"github.com/docker/cli/internal/test/network"
"github.com/docker/docker/api/types"
"github.com/gotestyourself/gotestyourself/assert"
"github.com/pkg/errors"
"golang.org/x/net/context"
)
type notFound struct {

View File

@ -1,6 +1,7 @@
package swarm
import (
"context"
"testing"
"github.com/docker/cli/cli/compose/convert"
@ -9,7 +10,6 @@ import (
"github.com/docker/docker/api/types/swarm"
"github.com/gotestyourself/gotestyourself/assert"
is "github.com/gotestyourself/gotestyourself/assert/cmp"
"golang.org/x/net/context"
)
func TestPruneServices(t *testing.T) {

View File

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

View File

@ -1,6 +1,7 @@
package swarm
import (
"context"
"fmt"
"github.com/docker/cli/cli/command"
@ -8,7 +9,6 @@ import (
"github.com/docker/cli/cli/command/stack/options"
"github.com/docker/cli/cli/command/task"
"github.com/docker/docker/api/types"
"golang.org/x/net/context"
)
// RunPS is the swarm implementation of docker stack ps

View File

@ -1,6 +1,7 @@
package swarm
import (
"context"
"fmt"
"sort"
"strings"
@ -11,7 +12,6 @@ import (
"github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/api/types/versions"
"github.com/pkg/errors"
"golang.org/x/net/context"
)
// RunRemove is the swarm implementation of docker stack remove

View File

@ -1,6 +1,7 @@
package swarm
import (
"context"
"fmt"
"github.com/docker/cli/cli/command"
@ -9,7 +10,6 @@ import (
"github.com/docker/cli/cli/command/stack/options"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/filters"
"golang.org/x/net/context"
)
// RunServices is the swarm implementation of docker stack services