code: func (gc *GarbageCollector) apiResource(apiVersion, kind string) (schema.GroupVersionResource, bool, error) {
  	fqKind := schema.FromAPIVersionAndKind(apiVersion, kind)
  	mapping, err := gc.restMapper.RESTMapping(fqKind.GroupKind(), fqKind.Version)
  	if err != nil {
  		return schema.GroupVersionResource{}, false, newRESTMappingError(kind, apiVersion)
  	}
  	return mapping.Resource, mapping.Scope == meta.RESTScopeNamespace, nil
  }
docs: // apiResource consults the REST mapper to translate an <apiVersion, kind,
  // namespace> tuple to a unversioned.APIResource struct.