From 517240750be0a9eaa39035ae81c92f81f7738b20 Mon Sep 17 00:00:00 2001 From: William Zhang Date: Sat, 29 Sep 2018 14:14:44 +0800 Subject: [PATCH] fix golint errors in pkg/routes Signed-off-by: William Zhang --- hack/.golint_failures | 1 - pkg/routes/logs.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/.golint_failures b/hack/.golint_failures index 347bc3ea369..56dc027b0fe 100644 --- a/hack/.golint_failures +++ b/hack/.golint_failures @@ -336,7 +336,6 @@ pkg/registry/settings/rest pkg/registry/storage/rest pkg/registry/storage/storageclass pkg/registry/storage/storageclass/storage -pkg/routes pkg/scheduler/apis/config/v1alpha1 pkg/security/apparmor pkg/security/podsecuritypolicy diff --git a/pkg/routes/logs.go b/pkg/routes/logs.go index cfe9b27de8b..1922a381ede 100644 --- a/pkg/routes/logs.go +++ b/pkg/routes/logs.go @@ -26,6 +26,7 @@ import ( // Logs adds handlers for the /logs path serving log files from /var/log. type Logs struct{} +// Install func registers the logs handler. 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