Documentation ¶
Index ¶
- type TerminalSession
- func (t *TerminalSession) Close() error
- func (t *TerminalSession) Done()
- func (t *TerminalSession) Next() *remotecommand.TerminalSize
- func (t *TerminalSession) Read(p []byte) (int, error)
- func (t *TerminalSession) Stderr() io.Writer
- func (t *TerminalSession) Stdin() io.Reader
- func (t *TerminalSession) Stdout() io.Writer
- func (t *TerminalSession) Tty() bool
- func (t *TerminalSession) Write(p []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TerminalSession ¶
type TerminalSession struct {
// contains filtered or unexported fields
}
TerminalSession implements PtyHandler
func NewTerminalSession ¶
func NewTerminalSession(w http.ResponseWriter, r *http.Request, responseHeader http.Header) (*TerminalSession, error)
NewTerminalSession creates TerminalSession
func (*TerminalSession) Done ¶
func (t *TerminalSession) Done()
Done must call Done() before connection close, or Next() would not exits.
func (*TerminalSession) Next ¶
func (t *TerminalSession) Next() *remotecommand.TerminalSize
Next called in a loop from remotecommand as long as the process is running
Click to show internal directories.
Click to hide internal directories.