From 1e4c9aed912c099b8938339583a71ec359483b3b Mon Sep 17 00:00:00 2001 From: Paul Nasrat Date: Mon, 20 Jan 2014 16:23:02 -0500 Subject: [PATCH] Don't expose cgroups via the execdriver API. Use Resources to represent container limits rather than a cgroup specific field. Docker-DCO-1.1-Signed-off-by: Paul Nasrat (github: pnasrat) --- cgroups/cgroups.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cgroups/cgroups.go b/cgroups/cgroups.go index 07867a6..de7b079 100644 --- a/cgroups/cgroups.go +++ b/cgroups/cgroups.go @@ -12,12 +12,6 @@ import ( "strings" ) -type Values struct { - Memory int64 `json:"memory"` - MemorySwap int64 `json:"memory_swap"` - CpuShares int64 `json:"cpu_shares"` -} - // https://www.kernel.org/doc/Documentation/cgroups/cgroups.txt func FindCgroupMountpoint(subsystem string) (string, error) { mounts, err := mount.GetMounts()