code: func (d *DiscoveryClient) ServerGroupsAndResources() ([]*metav1.APIGroup, []*metav1.APIResourceList, error) {
  	return withRetries(defaultRetries, func() ([]*metav1.APIGroup, []*metav1.APIResourceList, error) {
  		return ServerGroupsAndResources(d)
  	})
  }
docs: // ServerGroupsAndResources returns the supported resources for all groups and versions.