code: func (p *podResourcesServer) List(ctx context.Context, req *v1alpha1.ListPodResourcesRequest) (*v1alpha1.ListPodResourcesResponse, error) {
  	pods := p.podsProvider.GetPods()
  	podResources := make([]*v1alpha1.PodResources, len(pods))
  
  	for i, pod := range pods {
  		pRes := v1alpha1.PodResources{
  			Name:       pod.Name,
  			Namespace:  pod.Namespace,
  			Containers: make([]*v1alpha1.ContainerResources, len(pod.Spec.Containers)),
  		}
  
  		for j, container := range pod.Spec.Containers {
  			pRes.Containers[j] = &v1alpha1.ContainerResources{
  				Name:    container.Name,
  				Devices: p.devicesProvider.GetDevices(string(pod.UID), container.Name),
  			}
  		}
  		podResources[i] = &pRes
  	}
  
  	return &v1alpha1.ListPodResourcesResponse{
  		PodResources: podResources,
  	}, nil
  }
docs: // List returns information about the resources assigned to pods on the node