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
}
// apiResource consults the REST mapper to translate an <apiVersion, kind,
// namespace> tuple to a unversioned.APIResource struct.
apiResource consults the REST mapper to translate an  tuple to a unversioned.APIResource struct.
// apiResource consults the REST mapper to translate an <apiVersion kind // namespace > tuple to a unversioned . APIResource struct .
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
}
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 }
apiResource consults the REST mapper to translate an  tuple to a unversioned.APIResource struct.
apiResource consults the REST mapper to translate an tuple to a unversioned . APIResource struct .