refactor names for the apiserver handling chain

This commit is contained in:
deads2k
2017-05-04 14:18:38 -04:00
parent 3a81a86034
commit 4389f71576
26 changed files with 230 additions and 285 deletions

View File

@@ -21,14 +21,12 @@ import (
"path"
"github.com/emicklei/go-restful"
"k8s.io/apiserver/pkg/server/mux"
)
// Logs adds handlers for the /logs path serving log files from /var/log.
type Logs struct{}
func (l Logs) Install(c *mux.APIContainer) {
func (l Logs) Install(c *restful.Container) {
// use restful: ws.Route(ws.GET("/logs/{logpath:*}").To(fileHandler))
// See github.com/emicklei/go-restful/blob/master/examples/restful-serve-static.go
ws := new(restful.WebService)