code: func (d *DeferredDiscoveryRESTMapper) KindsFor(resource schema.GroupVersionResource) (gvks []schema.GroupVersionKind, err error) {
  	del, err := d.getDelegate()
  	if err != nil {
  		return nil, err
  	}
  	gvks, err = del.KindsFor(resource)
  	if len(gvks) == 0 && !d.cl.Fresh() {
  		d.Reset()
  		gvks, err = d.KindsFor(resource)
  	}
  	return
  }
docs: // KindsFor takes a partial resource and returns back the list of
  // potential kinds in priority order.