Documentation ¶
Index ¶
- Variables
- func FingerprintKey(k ssh.PublicKey) string
- func HandleTCPStream(src io.ReadWriteCloser, remote string)
- func NewSshConn(conn ssh.Conn, remote string) (net.Conn, error)
- func NewWebSocketConn(websocketConn *websocket.Conn) net.Conn
- func Pipe(src io.ReadWriteCloser, dst io.ReadWriteCloser) (int64, int64)
- type Agents
- type SshConn
- func (s *SshConn) Close() error
- func (s *SshConn) LocalAddr() net.Addr
- func (s *SshConn) Network() string
- func (s *SshConn) Read(b []byte) (n int, err error)
- func (s *SshConn) RemoteAddr() net.Addr
- func (s *SshConn) SetDeadline(t time.Time) error
- func (s *SshConn) SetReadDeadline(t time.Time) error
- func (s *SshConn) SetWriteDeadline(t time.Time) error
- func (s *SshConn) String() string
- func (s *SshConn) Write(b []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorInvalidConnection = errors.New("invalid connection")
Functions ¶
func FingerprintKey ¶
func HandleTCPStream ¶
func HandleTCPStream(src io.ReadWriteCloser, remote string)
func Pipe ¶
func Pipe(src io.ReadWriteCloser, dst io.ReadWriteCloser) (int64, int64)
Types ¶
type Agents ¶
func FakeAgents ¶
func FakeAgents() *Agents
type SshConn ¶
type SshConn struct {
// contains filtered or unexported fields
}
func (*SshConn) RemoteAddr ¶
Click to show internal directories.
Click to hide internal directories.