Use the clientForGroupVersion method on a ClientConfigFunc to generate a RESTClient configured for a specific schema.GroupVersion. This method automatically sets the APIPath to /api if the group is empty, or /apis if a group is specified. You can optionally provide a runtime.NegotiatedSerializer to handle content negotiation.
Note: This method relies on the underlying ClientConfigFunc to provide a valid *rest.Config.
// Example usage (conceptual):
// clientFn is a ClientConfigFunc
// gv is a schema.GroupVersion
// serializer is a runtime.NegotiatedSerializer
client, err := clientFn.clientForGroupVersion(gv, serializer)
if err != nil {
// handle error
}
// Use client to make requests...