Unverified Commit c0775786 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #69250 from warmchang/lint-pkg/routes

fix golint errors in pkg/routes
parents 97f52666 51724075
...@@ -334,7 +334,6 @@ pkg/registry/settings/rest ...@@ -334,7 +334,6 @@ pkg/registry/settings/rest
pkg/registry/storage/rest pkg/registry/storage/rest
pkg/registry/storage/storageclass pkg/registry/storage/storageclass
pkg/registry/storage/storageclass/storage pkg/registry/storage/storageclass/storage
pkg/routes
pkg/scheduler/apis/config/v1alpha1 pkg/scheduler/apis/config/v1alpha1
pkg/security/apparmor pkg/security/apparmor
pkg/security/podsecuritypolicy pkg/security/podsecuritypolicy
......
...@@ -26,6 +26,7 @@ import ( ...@@ -26,6 +26,7 @@ import (
// Logs adds handlers for the /logs path serving log files from /var/log. // Logs adds handlers for the /logs path serving log files from /var/log.
type Logs struct{} type Logs struct{}
// Install func registers the logs handler.
func (l Logs) Install(c *restful.Container) { func (l Logs) Install(c *restful.Container) {
// use restful: ws.Route(ws.GET("/logs/{logpath:*}").To(fileHandler)) // use restful: ws.Route(ws.GET("/logs/{logpath:*}").To(fileHandler))
// See github.com/emicklei/go-restful/blob/master/examples/restful-serve-static.go // See github.com/emicklei/go-restful/blob/master/examples/restful-serve-static.go
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment