code: func (pdev podDevices) devices() map[string]sets.String {
  	ret := make(map[string]sets.String)
  	for _, containerDevices := range pdev {
  		for _, resources := range containerDevices {
  			for resource, devices := range resources {
  				if _, exists := ret[resource]; !exists {
  					ret[resource] = sets.NewString()
  				}
  				if devices.allocResp != nil {
  					ret[resource] = ret[resource].Union(devices.deviceIds)
  				}
  			}
  		}
  	}
  	return ret
  }
docs: // Returns all of devices allocated to the pods being tracked, keyed by resourceName.