Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExplorerProxy ¶
NewExplorerProxy return proxy handler for kube-explorer
func NewK8sProxy ¶ added in v0.5.0
Types ¶
type ExplorerHandler ¶
type ExplorerHandler struct { }
func (*ExplorerHandler) ServeHTTP ¶
func (ep *ExplorerHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
ServeHTTP handles the proxy request for kube-explorer
type K8sProxyHandler ¶ added in v0.5.0
type K8sProxyHandler struct{}
func (*K8sProxyHandler) ServeHTTP ¶ added in v0.5.0
func (kh *K8sProxyHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type RemoteHandler ¶
RemoteHandler handle proxy request for remote service
func (*RemoteHandler) ServeHTTP ¶
func (p *RemoteHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
ServeHTTP handles proxy request
type Transport ¶
type Transport struct { Scheme string Host string PathPrepend string http.RoundTripper }
Transport is a transport for text/html content that replaces URLs in html content with the prefix of the proxy server Borrowed from https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/util/proxy/transport.go
Click to show internal directories.
Click to hide internal directories.