containerd/cmd/ctr/commands
Kir Kolyshkin bbe14f0a2e Switch from x/net/context to context
Since Go 1.7, context is a standard package, superceding the
"x/net/context". Since Go 1.9, the latter only provides a few type
aliases from the former. Therefore, it makes sense to switch to the
standard package.

This commit was generated by the following script (with a couple of
minor fixups to remove extra changes done by goimports):

	#!/bin/bash

	if [ $# -ge 1 ]; then
		FILES=$*
	else
		FILES=$(git ls-files \*.go | grep -vF ".pb.go" | grep -v
	^vendor/)
	fi

	for f in $FILES; do
		printf .
		sed -i -e 's|"golang.org/x/net/context"$|"context"|' $f
		goimports -w $f
		awk '	/^$/ {e=1; next;}
			/[[:space:]]"context"$/ {e=0;}
			{if (e) {print ""; e=0}; print;}' < $f > $f.new && \
				mv $f.new $f
		goimports -w $f
	done
	echo

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2018-04-24 14:33:34 -07:00
..
containers Licence header added 2018-02-19 10:32:26 +09:00
content allow content to be pulled for specific platform(s), all platforms 2018-03-12 17:31:42 -07:00
events Add service plugin and support in process integration. 2018-03-12 18:03:50 +00:00
images Merge pull request #2200 from jessvalarezo/multiarch-pulls 2018-03-14 14:46:30 -07:00
namespaces Licence header added 2018-02-19 10:32:26 +09:00
plugins Licence header added 2018-02-19 10:32:26 +09:00
pprof Licence header added 2018-02-19 10:32:26 +09:00
run ctr: fix --mount help message 2018-04-17 18:29:33 -07:00
shim Switch from x/net/context to context 2018-04-24 14:33:34 -07:00
snapshots Pass in context to lease done function in client 2018-03-22 14:09:24 -07:00
tasks Update ctr tasks list usage for quiet flag 2018-04-23 14:53:35 -04:00
version Licence header added 2018-02-19 10:32:26 +09:00
client.go Licence header added 2018-02-19 10:32:26 +09:00
commands.go Add --pid-file to ctr 2018-02-20 15:10:50 -05:00
resolver.go Licence header added 2018-02-19 10:32:26 +09:00
signal_map_linux.go Licence header added 2018-02-19 10:32:26 +09:00
signal_map_unix.go Licence header added 2018-02-19 10:32:26 +09:00
signal_map_windows.go Licence header added 2018-02-19 10:32:26 +09:00
signals.go Licence header added 2018-02-19 10:32:26 +09:00