proxy

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAgentReverseProxy

func CreateAgentReverseProxy(targetURL *url.URL, stream net.Conn, accessToken *string, host string) *httputil.ReverseProxy

func HandleSpacesCodeServerProxy

func HandleSpacesCodeServerProxy(w http.ResponseWriter, r *http.Request)

func HandleSpacesPortProxy

func HandleSpacesPortProxy(w http.ResponseWriter, r *http.Request)

func HandleSpacesSSHProxy

func HandleSpacesSSHProxy(w http.ResponseWriter, r *http.Request)

func HandleSpacesTerminalProxy

func HandleSpacesTerminalProxy(w http.ResponseWriter, r *http.Request)

func HandleSpacesWebPortProxy

func HandleSpacesWebPortProxy(w http.ResponseWriter, r *http.Request)

Proxy a web port for a space or pool, the transport is http and the agent works out the http / https connection.

func PortRoutes

func PortRoutes() *http.ServeMux

Setup proxying of URLs to ports within spaces

func Routes

func Routes(router *http.ServeMux, cfg *config.ServerConfig)

func RunSSHForwarderViaAgent

func RunSSHForwarderViaAgent(proxyServerURL, space, token string, skipTLSVerify bool) error

func RunTCPForwarderViaAgent

func RunTCPForwarderViaAgent(proxyServerURL, listen, space string, port int, token string, skipTLSVerify bool)

func RunTCPForwarderViaAgentWithContext added in v0.22.0

func RunTCPForwarderViaAgentWithContext(ctx context.Context, proxyServerURL, listen, space string, port int, token string, skipTLSVerify bool) net.Listener

Types

This section is empty.

Jump to

Keyboard shortcuts

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