code: func (ctr *ContainerTaskRels) update(as agentState) {
  	rels := map[string]*TaskInfo{}
  	for _, f := range as.Frameworks {
  		for _, e := range f.Executors {
  			for _, t := range e.Tasks {
  				for _, s := range t.Statuses {
  					rels[s.ContainerStatusInfo.ID.Value] = &TaskInfo{
  						ID:     t.ID,
  						Name:   t.Name,
  						Labels: t.Labels,
  					}
  				}
  			}
  		}
  	}
  	ctr.Lock()
  	ctr.rels = rels
  	ctr.Unlock()
  }
docs: // update denormalizes the (deeply nested) /state map from the local mesos
  // agent to a list of tasks mapped to container IDs.