mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
907407d0b2
Signed-off-by: David Calavera <david.calavera@gmail.com>
14 lines
427 B
Go
14 lines
427 B
Go
package daemon
|
|
|
|
import (
|
|
"github.com/docker/engine-api/types"
|
|
"github.com/opencontainers/runc/libcontainer"
|
|
)
|
|
|
|
// convertStatsToAPITypes converts the libcontainer.Stats to the api specific
|
|
// structs. This is done to preserve API compatibility and versioning.
|
|
func convertStatsToAPITypes(ls *libcontainer.Stats) *types.StatsJSON {
|
|
// TODO FreeBSD. Refactor accordingly to fill in stats.
|
|
s := &types.StatsJSON{}
|
|
return s
|
|
}
|