code: func NewCgroupResource(taskARN string,
  	control control.Control,
  	ioutil ioutilwrapper.IOUtil,
  	cgroupRoot string,
  	cgroupMountPath string,
  	resourceSpec specs.LinuxResources) *CgroupResource {
  	c := &CgroupResource{
  		taskARN:         taskARN,
  		control:         control,
  		ioutil:          ioutil,
  		cgroupRoot:      cgroupRoot,
  		cgroupMountPath: cgroupMountPath,
  		resourceSpec:    resourceSpec,
  	}
  	c.initializeResourceStatusToTransitionFunction()
  	return c
  }
docs: // NewCgroupResource is used to return an object that implements the Resource interface