code: func getExitStatuses(p *pkgPod.Pod) (map[string]int, error) {
  	_, manifest, err := p.PodManifest()
  	if err != nil {
  		return nil, err
  	}
  
  	stats := make(map[string]int)
  	for _, app := range manifest.Apps {
  		exitCode, err := p.AppExitCode(app.Name.String())
  		if err != nil {
  			continue
  		}
  		stats[app.Name.String()] = exitCode
  	}
  	return stats, nil
  }
docs: // getExitStatuses returns a map of the statuses of the pod.