1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-17 15:49:53 +00:00
Files
norman/pkg/kwrapper/k8s/tunnel.go
2018-10-23 22:46:45 -07:00

17 lines
298 B
Go

package k8s
import (
"net/http"
"github.com/rancher/norman/pkg/remotedialer"
)
func newTunnel(authorizer remotedialer.Authorizer) http.Handler {
if authorizer == nil {
return nil
}
server := remotedialer.New(authorizer, remotedialer.DefaultErrorWriter)
setupK3s(server)
return server
}