func SlAMatch(task *registry.Task, offer *mesosproto.Offer) bool { for _, attribute := range offer.GetAttributes() { if attribute.GetName() == "SLATasks" { items := attribute.GetSet().GetItem() for _, item := range items { if item == task.Parse() { return false } } return true } } return true }