type APIGroupHandler … func NewAPIGroupHandler(serializer runtime.NegotiatedSerializer, group metav1.APIGroup) *APIGroupHandler { … } func (s *APIGroupHandler) WebService() *restful.WebService { … } // handle returns a handler which will return the api.GroupAndVersion of the group. func (s *APIGroupHandler) handle(req *restful.Request, resp *restful.Response) { … } func (s *APIGroupHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { … }