Signed-off-by: Victor Vieux <vieux@docker.com>
| ... | ... |
@@ -1,7 +1,6 @@ |
| 1 | 1 |
package secret |
| 2 | 2 |
|
| 3 | 3 |
import ( |
| 4 |
- "context" |
|
| 5 | 4 |
"fmt" |
| 6 | 5 |
"io/ioutil" |
| 7 | 6 |
"os" |
| ... | ... |
@@ -12,6 +11,7 @@ import ( |
| 12 | 12 |
"github.com/docker/docker/opts" |
| 13 | 13 |
runconfigopts "github.com/docker/docker/runconfig/opts" |
| 14 | 14 |
"github.com/spf13/cobra" |
| 15 |
+ "golang.org/x/net/context" |
|
| 15 | 16 |
) |
| 16 | 17 |
|
| 17 | 18 |
type createOptions struct {
|
| ... | ... |
@@ -1,12 +1,11 @@ |
| 1 | 1 |
package secret |
| 2 | 2 |
|
| 3 | 3 |
import ( |
| 4 |
- "context" |
|
| 5 |
- |
|
| 6 | 4 |
"github.com/docker/docker/cli" |
| 7 | 5 |
"github.com/docker/docker/cli/command" |
| 8 | 6 |
"github.com/docker/docker/cli/command/inspect" |
| 9 | 7 |
"github.com/spf13/cobra" |
| 8 |
+ "golang.org/x/net/context" |
|
| 10 | 9 |
) |
| 11 | 10 |
|
| 12 | 11 |
type inspectOptions struct {
|
| ... | ... |
@@ -1,7 +1,6 @@ |
| 1 | 1 |
package secret |
| 2 | 2 |
|
| 3 | 3 |
import ( |
| 4 |
- "context" |
|
| 5 | 4 |
"fmt" |
| 6 | 5 |
"text/tabwriter" |
| 7 | 6 |
"time" |
| ... | ... |
@@ -11,6 +10,7 @@ import ( |
| 11 | 11 |
"github.com/docker/docker/cli/command" |
| 12 | 12 |
"github.com/docker/go-units" |
| 13 | 13 |
"github.com/spf13/cobra" |
| 14 |
+ "golang.org/x/net/context" |
|
| 14 | 15 |
) |
| 15 | 16 |
|
| 16 | 17 |
type listOptions struct {
|
| ... | ... |
@@ -1,12 +1,11 @@ |
| 1 | 1 |
package secret |
| 2 | 2 |
|
| 3 | 3 |
import ( |
| 4 |
- "context" |
|
| 5 |
- |
|
| 6 | 4 |
"github.com/docker/docker/api/types" |
| 7 | 5 |
"github.com/docker/docker/api/types/filters" |
| 8 | 6 |
"github.com/docker/docker/api/types/swarm" |
| 9 | 7 |
"github.com/docker/docker/client" |
| 8 |
+ "golang.org/x/net/context" |
|
| 10 | 9 |
) |
| 11 | 10 |
|
| 12 | 11 |
func getSecretsByName(client client.APIClient, ctx context.Context, names []string) ([]swarm.Secret, error) {
|