Move stats api types into api/types package

Move the stats structs from the api/stats package into a new package
api/types that will contain all the api structs for docker's api request
and responses.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Upstream-commit: 7fed7d7eb4d7766d9342821f2667d160c5f958eb
Component: engine
This commit is contained in:
Michael Crosby
2015-02-24 10:47:47 -08:00
parent 86eef40206
commit aab969a855
4 changed files with 18 additions and 18 deletions

View File

@ -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)