Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSSHClient ¶
func NewSSHClient(u *url.URL, config *ssh.ClientConfig, isUptermClient bool, proxyURL *url.URL) (*ssh.Client, error)
NewSSHClient creates a ssh client via ws. The url must include username as session id and password as encoded node address. isUptermClient indicates whether the client is host client or client client. proxyURL, when non-nil, is the HTTP proxy to dial through (see NewWSConn).
func NewWSConn ¶
NewWSConn creates a ws net.Conn. The url must include username as session id and password as encoded node address. isUptermClient indicates whether the client is host client or client client. proxyURL, when non-nil, is the HTTP proxy to dial through; when nil, the proxy comes from the environment (HTTPS_PROXY, HTTP_PROXY, NO_PROXY).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.