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
}
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
}
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 }
// NewCgroupResource is used to return an object that implements the Resource interface
NewCgroupResource is used to return an object that implements the Resource interface