Documentation ¶
Index ¶
- Constants
- func NewHandler(address string) (http.Handler, error)
- func NewSPDYExecutorForProtocols(transport http.RoundTripper, upgrader spdy.Upgrader, method string, ...) (remotecommand.Executor, error)
- func NewSPDYExecutorForTransports(transport http.RoundTripper, upgrader spdy.Upgrader, method string, ...) (remotecommand.Executor, error)
- func RegisterRoute(m *mux.PathRecorderMux, cfg *gatewayconfig.GatewayConfiguration) error
Constants ¶
const Path = "/webtty"
Path is the URL path for webtty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler to create a reverse proxy handler and returns it. The reverse proxy will parse the requested cookie content, get the token in it, and append it as the http request header to the backend service component.
func NewSPDYExecutorForProtocols ¶
func NewSPDYExecutorForProtocols(transport http.RoundTripper, upgrader spdy.Upgrader, method string, url *url.URL, clusterName, projectName, token string, protocols ...string) (remotecommand.Executor, error)
NewSPDYExecutorForProtocols connects to the provided server and upgrades the connection to multiplexed bidirectional streams using only the provided protocols. Exposed for testing, most callers should use NewSPDYExecutor or NewSPDYExecutorForTransports.
func NewSPDYExecutorForTransports ¶
func NewSPDYExecutorForTransports(transport http.RoundTripper, upgrader spdy.Upgrader, method string, url *url.URL, clusterName, projectName, token string) (remotecommand.Executor, error)
NewSPDYExecutorForTransports connects to the provided server using the given transport, upgrades the response using the given upgrader to multiplexed bidirectional streams.
func RegisterRoute ¶
func RegisterRoute(m *mux.PathRecorderMux, cfg *gatewayconfig.GatewayConfiguration) error
RegisterRoute is used to register prefix path routing matches for all configured backend components.
Types ¶
This section is empty.