Merge pull request #10986 from crosbymichael/create-api-type

Create api types package for structured responses
This commit is contained in:
Jessie Frazelle
2015-03-02 12:22:02 -08:00
6 changed files with 71 additions and 68 deletions
@@ -9,7 +9,7 @@ import (
"testing"
"time"
"github.com/docker/docker/api/stats"
"github.com/docker/docker/api/types"
"github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
)
@@ -311,7 +311,7 @@ func TestGetContainerStats(t *testing.T) {
}
dec := json.NewDecoder(bytes.NewBuffer(sr.body))
var s *stats.Stats
var s *types.Stats
// decode only one object from the stream
if err := dec.Decode(&s); err != nil {
t.Fatal(err)