code: func (d *DiscoveryClient) ServerResources() (map[string]*unversioned.APIResourceList, error) {
  	apiGroups, err := d.ServerGroups()
  	if err != nil {
  		return nil, err
  	}
  	groupVersions := ExtractGroupVersions(apiGroups)
  	result := map[string]*unversioned.APIResourceList{}
  	for _, groupVersion := range groupVersions {
  		resources, err := d.ServerResourcesForGroupVersion(groupVersion)
  		if err != nil {
  			return nil, err
  		}
  		result[groupVersion] = resources
  	}
  	return result, nil
  }
docs: // ServerResources returns the supported resources for all groups and versions.