Documentation ¶
Index ¶
- type Addr
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) LocalAddr() net.Addr
- func (c *Conn) Read(retBuf []byte) (int, error)
- func (c *Conn) RemoteAddr() net.Addr
- func (c *Conn) SetDeadline(t time.Time) error
- func (c *Conn) SetReadDeadline(t time.Time) error
- func (c *Conn) SetWriteDeadline(t time.Time) error
- func (c *Conn) Write(b []byte) (int, error)
- type Debug
- type Listener
- type Metrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addr ¶
type Addr struct {
// contains filtered or unexported fields
}
Addr local sshnet address type
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn sshnet Conn type, wraps an ssh connection/channel in a net.Conn compatible interface
func NewConn ¶
func NewConn(sshConn *ssh.ServerConn, client ssh.Channel) Conn
NewConn takes the ssh connection/channel and wraps them in a Conn
func (*Conn) RemoteAddr ¶
RemoteAddr in compliance with net.Conn interface
func (*Conn) SetDeadline ¶
SetDeadline in compliance with net.Conn interface
func (*Conn) SetReadDeadline ¶
SetReadDeadline in compliance with net.Conn interface
func (*Conn) SetWriteDeadline ¶
SetWriteDeadline in compliance with net.Conn interface
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
Listener the public structure of the sshnet listener
type Metrics ¶
type Metrics struct { Accept prometheus.Counter Close prometheus.Counter Dialer prometheus.Counter BytesRead prometheus.Counter BytesWrittern prometheus.Counter }
The Metrics that the module produces
Click to show internal directories.
Click to hide internal directories.