Use a config to generate swagger api types

Moves the resposne types to a package under api/types

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-10-14 16:20:13 -04:00
parent 0325c474b8
commit 6dc945ab36
5 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,6 @@ import (
"io" "io"
"time" "time"
volumetypes "github.com/docker/docker/api/server/types/volume"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events" "github.com/docker/docker/api/types/events"
@ -12,6 +11,7 @@ import (
"github.com/docker/docker/api/types/network" "github.com/docker/docker/api/types/network"
"github.com/docker/docker/api/types/registry" "github.com/docker/docker/api/types/registry"
"github.com/docker/docker/api/types/swarm" "github.com/docker/docker/api/types/swarm"
volumetypes "github.com/docker/docker/api/types/volume"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -3,8 +3,8 @@ package client
import ( import (
"encoding/json" "encoding/json"
volumetypes "github.com/docker/docker/api/server/types/volume"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
volumetypes "github.com/docker/docker/api/types/volume"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -9,8 +9,8 @@ import (
"strings" "strings"
"testing" "testing"
volumetypes "github.com/docker/docker/api/server/types/volume"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
volumetypes "github.com/docker/docker/api/types/volume"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"net/url" "net/url"
volumetypes "github.com/docker/docker/api/server/types/volume"
"github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/filters"
volumetypes "github.com/docker/docker/api/types/volume"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -9,9 +9,9 @@ import (
"strings" "strings"
"testing" "testing"
volumetypes "github.com/docker/docker/api/server/types/volume"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/filters"
volumetypes "github.com/docker/docker/api/types/volume"
"golang.org/x/net/context" "golang.org/x/net/context"
) )