Documentation ¶
Index ¶
- type Connection
- func (cnx *Connection) Dial() (net.Conn, error)
- func (cnx *Connection) HasSSH() bool
- func (cnx *Connection) ListenSSH(addr string) (net.Listener, error)
- func (cnx *Connection) SetupSSHConnector(addr, tunnel, user, keyFile string) error
- func (cnx *Connection) SetupTCPConnector() error
- func (cnx *Connection) SetupTLSConnector(serverName, certFile, keyFile string) error
- type Listener
- type LocalListener
- type RemoteListener
- type Tunnel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
func NewConnection ¶
func NewConnection(logger log.Logger, addr, proxy string) *Connection
func (*Connection) HasSSH ¶
func (cnx *Connection) HasSSH() bool
func (*Connection) SetupSSHConnector ¶
func (cnx *Connection) SetupSSHConnector(addr, tunnel, user, keyFile string) error
func (*Connection) SetupTCPConnector ¶
func (cnx *Connection) SetupTCPConnector() error
func (*Connection) SetupTLSConnector ¶
func (cnx *Connection) SetupTLSConnector(serverName, certFile, keyFile string) error
type LocalListener ¶
func NewListener ¶
func NewListener(addr, cert, key, ca string) *LocalListener
func (*LocalListener) Address ¶
func (l *LocalListener) Address() string
type RemoteListener ¶
type RemoteListener struct { ListenOn string ConnectTo *Connection }
func NewRemoteListener ¶
func NewRemoteListener(listen string, connect *Connection) *RemoteListener
func (*RemoteListener) Address ¶
func (l *RemoteListener) Address() string
Click to show internal directories.
Click to hide internal directories.