Documentation ¶
Index ¶
- type TerminalSession
- func (t *TerminalSession) Close() error
- 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 create TerminalSession
func (*TerminalSession) Next ¶
func (t *TerminalSession) Next() *remotecommand.TerminalSize
Next called in a loop from remotecommand as long as the process is running doneChan is closed when the process exits, otherwise it may block
Click to show internal directories.
Click to hide internal directories.