Documentation
¶
Index ¶
- func Handler(prefix string, cfg *rest.Config, transport http.RoundTripper) (http.Handler, error)
- func HandlerWithErrorResponder(prefix string, cfg *rest.Config, transport http.RoundTripper, ...) (http.Handler, error)
- func ImpersonatingHandler(prefix string, cfg *rest.Config) http.Handler
- func StripLeaveSlash(prefix string, h http.Handler) http.Handler
- type ErrorResponder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerWithErrorResponder ¶
func HandlerWithErrorResponder(prefix string, cfg *rest.Config, transport http.RoundTripper, responder ErrorResponder) (http.Handler, error)
Mostly copied from "kubectl proxy" code
Types ¶
type ErrorResponder ¶
type ErrorResponder interface {
Error(w http.ResponseWriter, req *http.Request, err error)
}
Click to show internal directories.
Click to hide internal directories.