client

package
v0.0.0-...-f35e637 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

func NewDialer(addr string) (*Dialer, error)

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) Close

func (d *Dialer) Close() error

func (*Dialer) CommandDialContext

func (d *Dialer) CommandDialContext(ctx context.Context, name string, args ...string) (net.Conn, error)

func (*Dialer) DialContext

func (d *Dialer) DialContext(ctx context.Context, network, address string) (net.Conn, error)

func (*Dialer) Listen

func (d *Dialer) Listen(ctx context.Context, network, address string) (net.Listener, error)

func (*Dialer) SSHClient

func (d *Dialer) SSHClient(ctx context.Context) (*ssh.Client, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL