Documentation
¶
Index ¶
- Constants
- func NewDefaultRemoteDialer(mux bool, ts oauth2.TokenSource, url *url.URL) remotedialer.Dialer
- func NewIAPRemoteDialer(mux bool, ts oauth2.TokenSource, instance string, port int, ...) remotedialer.Dialer
- func StartProxy(ctx context.Context, addr string, c ProxyConfig) error
- func StartServer(addr string, timeout time.Duration, allowedUpstreams []string) error
- func StartTcpForward(ctx context.Context, addr string, c TcpForwardConfig) error
- type ProxyConfig
- type Rule
- type TcpForwardConfig
- type Tunnel
Constants ¶
View Source
const ( DefaultTimeout = 5 * time.Second DefaultServerPort = 7654 )
Variables ¶
This section is empty.
Functions ¶
func NewDefaultRemoteDialer ¶ added in v0.6.0
func NewDefaultRemoteDialer(mux bool, ts oauth2.TokenSource, url *url.URL) remotedialer.Dialer
func NewIAPRemoteDialer ¶ added in v0.3.0
func NewIAPRemoteDialer(mux bool, ts oauth2.TokenSource, instance string, port int, project, zone string) remotedialer.Dialer
func StartProxy ¶ added in v0.5.0
func StartProxy(ctx context.Context, addr string, c ProxyConfig) error
func StartServer ¶
func StartTcpForward ¶ added in v0.5.0
func StartTcpForward(ctx context.Context, addr string, c TcpForwardConfig) error
Types ¶
type ProxyConfig ¶ added in v0.5.0
type TcpForwardConfig ¶
Click to show internal directories.
Click to hide internal directories.