MCPcopy
hub / github.com/gliderlabs/ssh / session

Struct session

session.go:109–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109type session struct {
110 sync.Mutex
111 gossh.Channel
112 conn *gossh.ServerConn
113 handler Handler
114 subsystemHandlers map[string]SubsystemHandler
115 handled bool
116 exited bool
117 pty *Pty
118 winch chan Window
119 env []string
120 ptyCb PtyCallback
121 sessReqCb SessionRequestCallback
122 rawCmd string
123 subsystem string
124 ctx Context
125 sigCh chan<- Signal
126 sigBuf []Signal
127 breakCh chan<- bool
128}
129
130func (sess *session) Write(p []byte) (n int, err error) {
131 if sess.pty != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected