Documentation ¶
Index ¶
- func NewDirectForwardConn(conn ssh.Conn, channel ssh.Channel, dstAddr string) net.Conn
- func NewRemoteForwardConn(ctx context.Context, conn ssh.Conn, req *ssh.Request) net.Conn
- type DirectForwardConn
- func (c *DirectForwardConn) Close() error
- func (c *DirectForwardConn) DstAddr() string
- func (c *DirectForwardConn) LocalAddr() net.Addr
- func (c *DirectForwardConn) Read(b []byte) (n int, err error)
- func (c *DirectForwardConn) RemoteAddr() net.Addr
- func (c *DirectForwardConn) SetDeadline(t time.Time) error
- func (c *DirectForwardConn) SetReadDeadline(t time.Time) error
- func (c *DirectForwardConn) SetWriteDeadline(t time.Time) error
- func (c *DirectForwardConn) Write(b []byte) (n int, err error)
- type RemoteForwardConn
- func (c *RemoteForwardConn) Close() error
- func (c *RemoteForwardConn) Conn() ssh.Conn
- func (c *RemoteForwardConn) Done() <-chan struct{}
- func (c *RemoteForwardConn) LocalAddr() net.Addr
- func (c *RemoteForwardConn) Read(b []byte) (n int, err error)
- func (c *RemoteForwardConn) RemoteAddr() net.Addr
- func (c *RemoteForwardConn) Request() *ssh.Request
- func (c *RemoteForwardConn) SetDeadline(t time.Time) error
- func (c *RemoteForwardConn) SetReadDeadline(t time.Time) error
- func (c *RemoteForwardConn) SetWriteDeadline(t time.Time) error
- func (c *RemoteForwardConn) Write(b []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDirectForwardConn ¶
Types ¶
type DirectForwardConn ¶
type DirectForwardConn struct {
// contains filtered or unexported fields
}
func (*DirectForwardConn) Close ¶
func (c *DirectForwardConn) Close() error
func (*DirectForwardConn) DstAddr ¶
func (c *DirectForwardConn) DstAddr() string
func (*DirectForwardConn) LocalAddr ¶
func (c *DirectForwardConn) LocalAddr() net.Addr
func (*DirectForwardConn) RemoteAddr ¶
func (c *DirectForwardConn) RemoteAddr() net.Addr
func (*DirectForwardConn) SetDeadline ¶
func (c *DirectForwardConn) SetDeadline(t time.Time) error
func (*DirectForwardConn) SetReadDeadline ¶
func (c *DirectForwardConn) SetReadDeadline(t time.Time) error
func (*DirectForwardConn) SetWriteDeadline ¶
func (c *DirectForwardConn) SetWriteDeadline(t time.Time) error
type RemoteForwardConn ¶
type RemoteForwardConn struct {
// contains filtered or unexported fields
}
func (*RemoteForwardConn) Close ¶
func (c *RemoteForwardConn) Close() error
func (*RemoteForwardConn) Conn ¶
func (c *RemoteForwardConn) Conn() ssh.Conn
func (*RemoteForwardConn) Done ¶
func (c *RemoteForwardConn) Done() <-chan struct{}
func (*RemoteForwardConn) LocalAddr ¶
func (c *RemoteForwardConn) LocalAddr() net.Addr
func (*RemoteForwardConn) RemoteAddr ¶
func (c *RemoteForwardConn) RemoteAddr() net.Addr
func (*RemoteForwardConn) Request ¶
func (c *RemoteForwardConn) Request() *ssh.Request
func (*RemoteForwardConn) SetDeadline ¶
func (c *RemoteForwardConn) SetDeadline(t time.Time) error
func (*RemoteForwardConn) SetReadDeadline ¶
func (c *RemoteForwardConn) SetReadDeadline(t time.Time) error
func (*RemoteForwardConn) SetWriteDeadline ¶
func (c *RemoteForwardConn) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.