session

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) Setenv

func (s *Session) Setenv(serverConn *sshd.ServerConn, key, val string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL