code: func (d *DiscoveryClient) ServerResourcesForGroupVersion(groupVersion string) (resources *unversioned.APIResourceList, err error) {
  	url := url.URL{}
  	if groupVersion == "v1" {
  		url.Path = "/api/" + groupVersion
  	} else {
  		url.Path = "/apis/" + groupVersion
  	}
  	resources = &unversioned.APIResourceList{}
  	err = d.Get().AbsPath(url.String()).Do().Into(resources)
  	if err != nil {
  		// ignore 403 or 404 error to be compatible with an v1.0 server.
  		if groupVersion == "v1" && (errors.IsNotFound(err) || errors.IsForbidden(err)) {
  			return resources, nil
  		} else {
  			return nil, err
  		}
  	}
  	return resources, nil
  }
docs: // ServerResourcesForGroupVersion returns the supported resources for a group and version.