proxy

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ClientIDHeader is the key used in the HTTP header to identify a given incoming connection to the server
	ClientIDHeader = "rancher-wins-cli-proxy"
)

Variables

This section is empty.

Functions

func GetClientConnectAuthorizer

func GetClientConnectAuthorizer(ports []int) remotedialer.ConnectAuthorizer

GetClientConnectAuthorizer returns the client's connect authorizer based on the provided ports

func GetClientOnConnect

func GetClientOnConnect(ports []int) func(context.Context, *remotedialer.Session) error

GetClientOnConnect returns the onConnect function used by the client to set up the tcpproxy

func GetServerAuthorizer

func GetServerAuthorizer() remotedialer.Authorizer

GetServerAuthorizer returns authorizer used to get client information from the request made to the server

func NewClientDialer

func NewClientDialer(path string) (dialer *websocket.Dialer, err error)

NewClientDialer returns a websocket.Dialer that dials a named pipe

Types

This section is empty.

Jump to

Keyboard shortcuts

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