webtty

package

Documentation

Index

Constants

View Source
const Path = "/webtty"

Path is the URL path for webtty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(address string) (http.Handler, error)

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

RegisterRoute is used to register prefix path routing matches for all configured backend components.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL