2015-07-29 14:25:56 -04:00
|
|
|
package daemon
|
|
|
|
|
|
|
|
import (
|
2016-01-04 19:05:26 -05:00
|
|
|
"github.com/docker/engine-api/types"
|
2015-07-29 14:25:56 -04:00
|
|
|
"github.com/opencontainers/runc/libcontainer"
|
|
|
|
)
|
|
|
|
|
|
|
|
// convertStatsToAPITypes converts the libcontainer.Stats to the api specific
|
2015-08-24 05:17:15 -04:00
|
|
|
// structs. This is done to preserve API compatibility and versioning.
|
|
|
|
func convertStatsToAPITypes(ls *libcontainer.Stats) *types.StatsJSON {
|
2015-07-29 14:25:56 -04:00
|
|
|
// TODO FreeBSD. Refactor accordingly to fill in stats.
|
2015-08-24 05:17:15 -04:00
|
|
|
s := &types.StatsJSON{}
|
2015-07-29 14:25:56 -04:00
|
|
|
return s
|
|
|
|
}
|