diff options
| author | Kir Kolyshkin <kolyshkin@gmail.com> | 2018-04-19 15:30:59 -0700 |
|---|---|---|
| committer | Kir Kolyshkin <kolyshkin@gmail.com> | 2018-04-23 13:52:44 -0700 |
| commit | 7d62e40f7e4f3c17d229a7687d6fcca5448de813 (patch) | |
| tree | dbba5821b6d9b9f9bdd414248bfbfcff932b77cb /api/server/router/plugin | |
| parent | 5c233cf4315747785b27d4b0f0631d220556205f (diff) | |
| download | docker-7d62e40f7e4f3c17d229a7687d6fcca5448de813.tar.gz | |
Switch from x/net/context -> context
Since Go 1.7, context is a standard package. Since Go 1.9, everything
that is provided by "x/net/context" is a couple of type aliases to
types in "context".
Many vendored packages still use x/net/context, so vendor entry remains
for now.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Diffstat (limited to 'api/server/router/plugin')
| -rw-r--r-- | api/server/router/plugin/backend.go | 2 | ||||
| -rw-r--r-- | api/server/router/plugin/plugin_routes.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/api/server/router/plugin/backend.go b/api/server/router/plugin/backend.go index 7f8a71ce1f..d885ebb33a 100644 --- a/api/server/router/plugin/backend.go +++ b/api/server/router/plugin/backend.go @@ -1,6 +1,7 @@ package plugin // import "github.com/docker/docker/api/server/router/plugin" import ( + "context" "io" "net/http" @@ -8,7 +9,6 @@ import ( enginetypes "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" "github.com/docker/docker/plugin" - "golang.org/x/net/context" ) // Backend for Plugin diff --git a/api/server/router/plugin/plugin_routes.go b/api/server/router/plugin/plugin_routes.go index 5a3ab99fd3..4e816391d1 100644 --- a/api/server/router/plugin/plugin_routes.go +++ b/api/server/router/plugin/plugin_routes.go @@ -1,6 +1,7 @@ package plugin // import "github.com/docker/docker/api/server/router/plugin" import ( + "context" "encoding/base64" "encoding/json" "net/http" @@ -14,7 +15,6 @@ import ( "github.com/docker/docker/pkg/ioutils" "github.com/docker/docker/pkg/streamformatter" "github.com/pkg/errors" - "golang.org/x/net/context" ) func parseHeaders(headers http.Header) (map[string][]string, *types.AuthConfig) { |
