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