func validateCgroupSpec(cgroupSpec *Spec) error {
	if cgroupSpec == nil {
		return errors.New("cgroup spec validator: empty cgroup spec")
	}

	if cgroupSpec.Root == "" {
		return errors.New("cgroup spec validator: invalid cgroup root")
	}

	// Validate the linux resource specs
	if cgroupSpec.Specs == nil {
		return errors.New("cgroup spec validator: empty linux resource spec")
	}
	return nil
}
func validateCgroupSpec(cgroupSpec *Spec) error {
	if cgroupSpec == nil {
		return errors.New("cgroup spec validator: empty cgroup spec")
	}

	if cgroupSpec.Root == "" {
		return errors.New("cgroup spec validator: invalid cgroup root")
	}

	
	if cgroupSpec.Specs == nil {
		return errors.New("cgroup spec validator: empty linux resource spec")
	}
	return nil
}
func validateCgroupSpec ( cgroupSpec * Spec ) error { if cgroupSpec == nil { return errors . New ( " " ) } if cgroupSpec . Root == " " { return errors . New ( " " ) } // Validate the linux resource specs if cgroupSpec . Specs == nil { return errors . New ( " " ) } return nil }
// validateCgroupSpec checks the cgroup spec for valid path and specifications
validateCgroupSpec checks the cgroup spec for valid path and specifications