mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
fix golint errors in pkg/routes
Signed-off-by: William Zhang <zhang.wanmin@zte.com.cn>
This commit is contained in:
parent
b1e15b4d98
commit
517240750b
@ -336,7 +336,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 (
|
|||||||
// 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
|
||||||
|
Loading…
Reference in New Issue
Block a user