type legacyRootAPIHandler … func NewLegacyRootAPIHandler(addresses Addresses, serializer runtime.NegotiatedSerializer, apiPrefix string) *legacyRootAPIHandler { … } // AddApiWebService adds a service to return the supported api versions at the legacy /api. func (s *legacyRootAPIHandler) WebService() *restful.WebService { … } func (s *legacyRootAPIHandler) restfulHandle(req *restful.Request, resp *restful.Response) { … } func (s *legacyRootAPIHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request) { … }