Signed-off-by: David Calavera <david.calavera@gmail.com> Upstream-commit: 907407d0b2e5863f0e1b40b93a356bbf03c7b9fb Component: engine
15 lines
427 B
Go
15 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 Windows. Refactor accordingly to fill in stats.
|
|
s := &types.StatsJSON{}
|
|
return s
|
|
}
|