| 142 | } |
| 143 | |
| 144 | type SessionWrap struct { |
| 145 | Session *ssh.Session |
| 146 | StartCmd string |
| 147 | Tty pty.Tty |
| 148 | WaitOnce *sync.Once |
| 149 | WaitErr error |
| 150 | pty.Pty |
| 151 | } |
| 152 | |
| 153 | func MakeSessionWrap(session *ssh.Session, startCmd string, sessionPty pty.Pty) SessionWrap { |
| 154 | return SessionWrap{ |
nothing calls this directly
no outgoing calls
no test coverage detected