Add the Stats api to driverhandle

This commit is contained in:
Diptanu Choudhury
2016-04-28 16:06:01 -07:00
parent e3f8d31b75
commit 1cae57aee9
12 changed files with 78 additions and 1 deletions

View File

@@ -2,7 +2,10 @@
package executor
import cgroupConfig "github.com/opencontainers/runc/libcontainer/configs"
import (
cstructs "github.com/hashicorp/nomad/client/driver/structs"
cgroupConfig "github.com/opencontainers/runc/libcontainer/configs"
)
func (e *UniversalExecutor) configureChroot() error {
return nil
@@ -27,3 +30,7 @@ func (e *UniversalExecutor) applyLimits(pid int) error {
func (e *UniversalExecutor) configureIsolation() error {
return nil
}
func (e *UniversalExecutor) Stats() (*cstructs.TaskResourceUsage, error) {
return nil, nil
}