Documentation
¶
Index ¶
- Variables
- type Dialer
- func (d *Dialer) Close() error
- func (d *Dialer) CommandDialContext(ctx context.Context, name string, args ...string) (net.Conn, error)
- func (d *Dialer) DialContext(ctx context.Context, network, address string) (net.Conn, error)
- func (d *Dialer) Listen(ctx context.Context, network, address string) (net.Listener, error)
- func (d *Dialer) SSHClient(ctx context.Context) (*ssh.Client, error)
- type Server
- type SimpleServer
Constants ¶
This section is empty.
Variables ¶
View Source
var NewServer = sshd.NewServer
Functions ¶
This section is empty.
Types ¶
type Dialer ¶
type Dialer struct { // ProxyDial specifies the optional dial function for // establishing the transport connection. ProxyDial func(context.Context, string, string) (net.Conn, error) // contains filtered or unexported fields }
func NewDialer ¶
NewDialer returns a new Dialer that dials through the provided proxy server's network and address.
func NewDialerWithConfig ¶ added in v0.2.0
func NewDialerWithConfig(host string, config *ssh.ClientConfig) (*Dialer, error)
func (*Dialer) CommandDialContext ¶
func (*Dialer) DialContext ¶
type SimpleServer ¶
type SimpleServer struct { Server Listener net.Listener Username string Password string Network string Address string }
SimpleServer is a simplified server, which can be configured as easily as client.
func NewSimpleServer ¶
func NewSimpleServer(addr string) (*SimpleServer, error)
NewSimpleServer creates a new NewSimpleServer
func (*SimpleServer) ProxyURL ¶
func (s *SimpleServer) ProxyURL() string
ProxyURL returns the URL of the proxy
Click to show internal directories.
Click to hide internal directories.