Documentation ¶
Index ¶
- type Session
- func (s *Session) Execute(ctx context.Context, serverConn *sshd.ServerConn, ch ssh.Channel, ...) error
- func (s *Session) Handle(ctx context.Context, newChan ssh.NewChannel, serverConn *sshd.ServerConn)
- func (s *Session) Setenv(serverConn *sshd.ServerConn, key, val string)
- func (s *Session) Shell(ctx context.Context, serverConn *sshd.ServerConn, ch ssh.Channel, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct{}
Session Handling for a single incoming connection
func (*Session) Execute ¶
func (s *Session) Execute(ctx context.Context, serverConn *sshd.ServerConn, ch ssh.Channel, cancel func(), cmd string) error
Execute a process for the channel.
func (*Session) Handle ¶
func (s *Session) Handle(ctx context.Context, newChan ssh.NewChannel, serverConn *sshd.ServerConn)
func (*Session) Shell ¶
func (s *Session) Shell(ctx context.Context, serverConn *sshd.ServerConn, ch ssh.Channel, cancel func(), ptyReq *sshd.PtyRequestMsg, winChangeChan chan *sshd.PtyWindowChangeMsg) error
Shell a process for the channel.
Click to show internal directories.
Click to hide internal directories.