Documentation ¶
Index ¶
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 ¶
func NewDialerWithConfig(host string, config *ssh.ClientConfig) (*Dialer, error)
func (*Dialer) CommandDialContext ¶
func (*Dialer) DialContext ¶
Click to show internal directories.
Click to hide internal directories.