Documentation
¶
Rendered for js/wasm
Index ¶
- func CreateJSInterface(client *Client) js.Value
- type Client
- func (c *Client) Close() error
- func (c *Client) Connect(host string, port int, username, jwtToken string, ipVersion int) error
- func (c *Client) Read(buffer []byte) (int, error)
- func (c *Client) Resize(cols, rows int) error
- func (c *Client) StartSession(cols, rows int) error
- func (c *Client) Write(data []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateJSInterface ¶
CreateJSInterface creates a JavaScript interface for the SSH client
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Connect ¶
Connect establishes an SSH connection through NetBird network. ipVersion may be 4, 6, or 0 for automatic selection.
func (*Client) StartSession ¶
StartSession starts an SSH session with PTY
Click to show internal directories.
Click to hide internal directories.