Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Close() error
- func (c *Client) ExecuteCommand(ctx context.Context, command string) ([]byte, error)
- func (c *Client) ExecuteCommandWithIO(ctx context.Context, command string) error
- func (c *Client) ExecuteCommandWithPTY(ctx context.Context, command string) error
- func (c *Client) LocalPortForward(ctx context.Context, localAddr, remoteAddr string) error
- func (c *Client) OpenTerminal(ctx context.Context) error
- func (c *Client) RemotePortForward(ctx context.Context, remoteAddr, localAddr string) error
- type DialOptions
Constants ¶
View Source
const ( // DefaultDaemonAddr is the default address for the NetBird daemon DefaultDaemonAddr = "unix:///var/run/netbird.sock" // DefaultDaemonAddrWindows is the default address for the NetBird daemon on Windows DefaultDaemonAddrWindows = "tcp://127.0.0.1:41731" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps crypto/ssh Client for simplified SSH operations
func (*Client) ExecuteCommand ¶
ExecuteCommand executes a command on the remote host and returns the output
func (*Client) ExecuteCommandWithIO ¶
ExecuteCommandWithIO executes a command with interactive I/O connected to local terminal
func (*Client) ExecuteCommandWithPTY ¶
ExecuteCommandWithPTY executes a command with a pseudo-terminal for interactive sessions
func (*Client) LocalPortForward ¶
LocalPortForward sets up local port forwarding, binding to localAddr and forwarding to remoteAddr
Click to show internal directories.
Click to hide internal directories.