2015-05-16 01:02:11 +03:00
|
|
|
package daemon
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/docker/docker/api/types"
|
2015-07-17 02:00:55 +03:00
|
|
|
"github.com/opencontainers/runc/libcontainer"
|
2015-05-16 01:02:11 +03:00
|
|
|
)
|
|
|
|
|
2015-06-12 18:27:39 +03:00
|
|
|
// convertStatsToAPITypes converts the libcontainer.Stats to the api specific
|
2015-08-24 12:17:15 +03:00
|
|
|
// structs. This is done to preserve API compatibility and versioning.
|
|
|
|
func convertStatsToAPITypes(ls *libcontainer.Stats) *types.StatsJSON {
|
2015-05-16 01:02:11 +03:00
|
|
|
// TODO Windows. Refactor accordingly to fill in stats.
|
2015-08-24 12:17:15 +03:00
|
|
|
s := &types.StatsJSON{}
|
2015-05-16 01:02:11 +03:00
|
|
|
return s
|
|
|
|
}
|