Skip to content

Commit 91e197d

Browse files
committed
Add engine-api types to docker
This moves the types for the `engine-api` repo to the existing types package. Signed-off-by: Michael Crosby <[email protected]>
1 parent a6daa94 commit 91e197d

File tree

289 files changed

+4465
-366
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

289 files changed

+4465
-366
lines changed

api/client/container/attach.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99

1010
"github.com/Sirupsen/logrus"
1111
"github.com/docker/docker/api/client"
12+
"github.com/docker/docker/api/types"
1213
"github.com/docker/docker/cli"
1314
"github.com/docker/docker/pkg/signal"
14-
"github.com/docker/engine-api/types"
1515
"github.com/spf13/cobra"
1616
)
1717

api/client/container/commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"golang.org/x/net/context"
77

88
"github.com/docker/docker/api/client"
9+
"github.com/docker/docker/api/types"
910
"github.com/docker/docker/cli"
1011
dockeropts "github.com/docker/docker/opts"
11-
"github.com/docker/engine-api/types"
1212
"github.com/spf13/cobra"
1313
)
1414

api/client/container/cp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import (
1010
"golang.org/x/net/context"
1111

1212
"github.com/docker/docker/api/client"
13+
"github.com/docker/docker/api/types"
1314
"github.com/docker/docker/cli"
1415
"github.com/docker/docker/pkg/archive"
1516
"github.com/docker/docker/pkg/system"
16-
"github.com/docker/engine-api/types"
1717
"github.com/spf13/cobra"
1818
)
1919

api/client/container/create.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import (
1111
"github.com/docker/docker/cli"
1212
"github.com/docker/docker/pkg/jsonmessage"
1313
// FIXME migrate to docker/distribution/reference
14+
"github.com/docker/docker/api/types"
15+
"github.com/docker/docker/api/types/container"
16+
networktypes "github.com/docker/docker/api/types/network"
1417
"github.com/docker/docker/reference"
1518
"github.com/docker/docker/registry"
1619
runconfigopts "github.com/docker/docker/runconfig/opts"
1720
apiclient "github.com/docker/engine-api/client"
18-
"github.com/docker/engine-api/types"
19-
"github.com/docker/engine-api/types/container"
20-
networktypes "github.com/docker/engine-api/types/network"
2121
"github.com/spf13/cobra"
2222
"github.com/spf13/pflag"
2323
)

api/client/container/exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88

99
"github.com/Sirupsen/logrus"
1010
"github.com/docker/docker/api/client"
11+
"github.com/docker/docker/api/types"
1112
"github.com/docker/docker/cli"
1213
"github.com/docker/docker/pkg/promise"
13-
"github.com/docker/engine-api/types"
1414
"github.com/spf13/cobra"
1515
)
1616

api/client/container/exec_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package container
33
import (
44
"testing"
55

6-
"github.com/docker/engine-api/types"
6+
"github.com/docker/docker/api/types"
77
)
88

99
type arguments struct {

api/client/container/logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"golang.org/x/net/context"
88

99
"github.com/docker/docker/api/client"
10+
"github.com/docker/docker/api/types"
1011
"github.com/docker/docker/cli"
1112
"github.com/docker/docker/pkg/stdcopy"
12-
"github.com/docker/engine-api/types"
1313
"github.com/spf13/cobra"
1414
)
1515

api/client/container/ps.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55

66
"github.com/docker/docker/api/client"
77
"github.com/docker/docker/api/client/formatter"
8+
"github.com/docker/docker/api/types"
9+
"github.com/docker/docker/api/types/filters"
810
"github.com/docker/docker/cli"
9-
"github.com/docker/engine-api/types"
10-
"github.com/docker/engine-api/types/filters"
1111

1212
"io/ioutil"
1313

api/client/container/rm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"golang.org/x/net/context"
88

99
"github.com/docker/docker/api/client"
10+
"github.com/docker/docker/api/types"
1011
"github.com/docker/docker/cli"
11-
"github.com/docker/engine-api/types"
1212
"github.com/spf13/cobra"
1313
)
1414

api/client/container/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import (
1313

1414
"github.com/Sirupsen/logrus"
1515
"github.com/docker/docker/api/client"
16+
"github.com/docker/docker/api/types"
1617
"github.com/docker/docker/cli"
1718
opttypes "github.com/docker/docker/opts"
1819
"github.com/docker/docker/pkg/promise"
1920
"github.com/docker/docker/pkg/signal"
2021
runconfigopts "github.com/docker/docker/runconfig/opts"
21-
"github.com/docker/engine-api/types"
2222
"github.com/docker/libnetwork/resolvconf/dns"
2323
"github.com/spf13/cobra"
2424
"github.com/spf13/pflag"

api/client/container/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
"golang.org/x/net/context"
1010

1111
"github.com/docker/docker/api/client"
12+
"github.com/docker/docker/api/types"
1213
"github.com/docker/docker/cli"
1314
"github.com/docker/docker/pkg/promise"
1415
"github.com/docker/docker/pkg/signal"
15-
"github.com/docker/engine-api/types"
1616
"github.com/spf13/cobra"
1717
)
1818

api/client/container/stats.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import (
1313
"github.com/Sirupsen/logrus"
1414
"github.com/docker/docker/api/client"
1515
"github.com/docker/docker/api/client/system"
16+
"github.com/docker/docker/api/types"
17+
"github.com/docker/docker/api/types/events"
18+
"github.com/docker/docker/api/types/filters"
1619
"github.com/docker/docker/cli"
17-
"github.com/docker/engine-api/types"
18-
"github.com/docker/engine-api/types/events"
19-
"github.com/docker/engine-api/types/filters"
2020
"github.com/spf13/cobra"
2121
)
2222

api/client/container/stats_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"time"
1111

1212
"github.com/Sirupsen/logrus"
13+
"github.com/docker/docker/api/types"
1314
"github.com/docker/engine-api/client"
14-
"github.com/docker/engine-api/types"
1515
"github.com/docker/go-units"
1616
"golang.org/x/net/context"
1717
)

api/client/container/stats_unit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"testing"
66

7-
"github.com/docker/engine-api/types"
7+
"github.com/docker/docker/api/types"
88
)
99

1010
func TestDisplay(t *testing.T) {

api/client/container/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"golang.org/x/net/context"
88

99
"github.com/docker/docker/api/client"
10+
containertypes "github.com/docker/docker/api/types/container"
1011
"github.com/docker/docker/cli"
1112
runconfigopts "github.com/docker/docker/runconfig/opts"
12-
containertypes "github.com/docker/engine-api/types/container"
1313
"github.com/docker/go-units"
1414
"github.com/spf13/cobra"
1515
)

api/client/container/utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
"github.com/Sirupsen/logrus"
1010
"github.com/docker/docker/api/client"
1111
"github.com/docker/docker/api/client/system"
12+
"github.com/docker/docker/api/types"
13+
"github.com/docker/docker/api/types/events"
14+
"github.com/docker/docker/api/types/filters"
1215
clientapi "github.com/docker/engine-api/client"
13-
"github.com/docker/engine-api/types"
14-
"github.com/docker/engine-api/types/events"
15-
"github.com/docker/engine-api/types/filters"
1616
)
1717

1818
func waitExitOrRemoved(dockerCli *client.DockerCli, ctx context.Context, containerID string, waitRemove bool) (chan int, error) {

api/client/credentials.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package client
22

33
import (
4+
"github.com/docker/docker/api/types"
45
"github.com/docker/docker/cliconfig/configfile"
56
"github.com/docker/docker/cliconfig/credentials"
6-
"github.com/docker/engine-api/types"
77
)
88

99
// GetCredentials loads the user credentials from a credentials store.

api/client/formatter/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"time"
99

1010
"github.com/docker/docker/api"
11+
"github.com/docker/docker/api/types"
1112
"github.com/docker/docker/pkg/stringid"
1213
"github.com/docker/docker/pkg/stringutils"
13-
"github.com/docker/engine-api/types"
1414
"github.com/docker/go-units"
1515
)
1616

api/client/formatter/container_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88
"time"
99

10+
"github.com/docker/docker/api/types"
1011
"github.com/docker/docker/pkg/stringid"
11-
"github.com/docker/engine-api/types"
1212
)
1313

1414
func TestContainerPsContext(t *testing.T) {

api/client/formatter/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"strings"
66
"time"
77

8+
"github.com/docker/docker/api/types"
89
"github.com/docker/docker/pkg/stringid"
910
"github.com/docker/docker/reference"
10-
"github.com/docker/engine-api/types"
1111
"github.com/docker/go-units"
1212
)
1313

api/client/formatter/image_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88
"time"
99

10+
"github.com/docker/docker/api/types"
1011
"github.com/docker/docker/pkg/stringid"
11-
"github.com/docker/engine-api/types"
1212
)
1313

1414
func TestImageContext(t *testing.T) {

api/client/formatter/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"fmt"
66
"strings"
77

8+
"github.com/docker/docker/api/types"
89
"github.com/docker/docker/pkg/stringid"
9-
"github.com/docker/engine-api/types"
1010
)
1111

1212
const (

api/client/formatter/network_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"strings"
66
"testing"
77

8+
"github.com/docker/docker/api/types"
89
"github.com/docker/docker/pkg/stringid"
9-
"github.com/docker/engine-api/types"
1010
)
1111

1212
func TestNetworkContext(t *testing.T) {

api/client/formatter/volume.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"strings"
77

8-
"github.com/docker/engine-api/types"
8+
"github.com/docker/docker/api/types"
99
)
1010

1111
const (

api/client/formatter/volume_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"strings"
66
"testing"
77

8+
"github.com/docker/docker/api/types"
89
"github.com/docker/docker/pkg/stringid"
9-
"github.com/docker/engine-api/types"
1010
)
1111

1212
func TestVolumeContext(t *testing.T) {

api/client/hijack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"golang.org/x/net/context"
88

99
"github.com/Sirupsen/logrus"
10+
"github.com/docker/docker/api/types"
1011
"github.com/docker/docker/pkg/stdcopy"
11-
"github.com/docker/engine-api/types"
1212
)
1313

1414
// HoldHijackedConnection handles copying input to and output from streams to the

api/client/idresolver/idresolver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55

66
"golang.org/x/net/context"
77

8+
"github.com/docker/docker/api/types/swarm"
89
"github.com/docker/engine-api/client"
9-
"github.com/docker/engine-api/types/swarm"
1010
)
1111

1212
// IDResolver provides ID to Name resolution.

api/client/image/build.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import (
1515

1616
"github.com/docker/docker/api"
1717
"github.com/docker/docker/api/client"
18+
"github.com/docker/docker/api/types"
19+
"github.com/docker/docker/api/types/container"
1820
"github.com/docker/docker/builder"
1921
"github.com/docker/docker/builder/dockerignore"
2022
"github.com/docker/docker/cli"
@@ -27,8 +29,6 @@ import (
2729
"github.com/docker/docker/pkg/urlutil"
2830
"github.com/docker/docker/reference"
2931
runconfigopts "github.com/docker/docker/runconfig/opts"
30-
"github.com/docker/engine-api/types"
31-
"github.com/docker/engine-api/types/container"
3232
"github.com/docker/go-units"
3333
"github.com/spf13/cobra"
3434
)

api/client/image/images.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55

66
"github.com/docker/docker/api/client"
77
"github.com/docker/docker/api/client/formatter"
8+
"github.com/docker/docker/api/types"
9+
"github.com/docker/docker/api/types/filters"
810
"github.com/docker/docker/cli"
9-
"github.com/docker/engine-api/types"
10-
"github.com/docker/engine-api/types/filters"
1111
"github.com/spf13/cobra"
1212
)
1313

api/client/image/import.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"golang.org/x/net/context"
88

99
"github.com/docker/docker/api/client"
10+
"github.com/docker/docker/api/types"
1011
"github.com/docker/docker/cli"
1112
dockeropts "github.com/docker/docker/opts"
1213
"github.com/docker/docker/pkg/jsonmessage"
1314
"github.com/docker/docker/pkg/urlutil"
14-
"github.com/docker/engine-api/types"
1515
"github.com/spf13/cobra"
1616
)
1717

api/client/image/remove.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"golang.org/x/net/context"
88

99
"github.com/docker/docker/api/client"
10+
"github.com/docker/docker/api/types"
1011
"github.com/docker/docker/cli"
11-
"github.com/docker/engine-api/types"
1212
"github.com/spf13/cobra"
1313
)
1414

api/client/image/search.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import (
99
"golang.org/x/net/context"
1010

1111
"github.com/docker/docker/api/client"
12+
"github.com/docker/docker/api/types"
13+
"github.com/docker/docker/api/types/filters"
14+
registrytypes "github.com/docker/docker/api/types/registry"
1215
"github.com/docker/docker/cli"
1316
"github.com/docker/docker/pkg/stringutils"
1417
"github.com/docker/docker/registry"
15-
"github.com/docker/engine-api/types"
16-
"github.com/docker/engine-api/types/filters"
17-
registrytypes "github.com/docker/engine-api/types/registry"
1818
"github.com/spf13/cobra"
1919
)
2020

api/client/network/connect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"golang.org/x/net/context"
55

66
"github.com/docker/docker/api/client"
7+
"github.com/docker/docker/api/types/network"
78
"github.com/docker/docker/cli"
89
"github.com/docker/docker/opts"
910
runconfigopts "github.com/docker/docker/runconfig/opts"
10-
"github.com/docker/engine-api/types/network"
1111
"github.com/spf13/cobra"
1212
)
1313

api/client/network/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
"golang.org/x/net/context"
99

1010
"github.com/docker/docker/api/client"
11+
"github.com/docker/docker/api/types"
12+
"github.com/docker/docker/api/types/network"
1113
"github.com/docker/docker/cli"
1214
"github.com/docker/docker/opts"
1315
runconfigopts "github.com/docker/docker/runconfig/opts"
14-
"github.com/docker/engine-api/types"
15-
"github.com/docker/engine-api/types/network"
1616
"github.com/spf13/cobra"
1717
)
1818

0 commit comments

Comments
 (0)