(ID string)
| 276 | } |
| 277 | |
| 278 | func (rc *ResourceControl) ContainerResourceStats(ID string) (stats *api.ResourceStats, err error) { |
| 279 | if !rc.cgroupManager.Exists(cgroup.CgroupName(ID)) { |
| 280 | return nil, runtimeErr.ErrCgroupNotExist{ID: ID} |
| 281 | } |
| 282 | return rc.cgroupManager.GetResourceStats(cgroup.CgroupName(ID)) |
| 283 | } |
| 284 | |
| 285 | func (rc *ResourceControl) UpdateContainerResource(ID string, config *runtimeapi.ResourceConfig) error { |
| 286 | cgName := cgroup.CgroupName(ID) |
nothing calls this directly
no test coverage detected