Commit Graph

11 Commits

Author SHA1 Message Date
Jeff Lindsay
9b56478e13 contexts (#29)
* context: working mostly tested context implementation and refactoring to go with it
* _example/ssh-publickey: updating new context based callbacks
* godocs related to public api changes for contexts
* context: converting []bytes to strings before putting into context

Signed-off-by: Jeff Lindsay <progrium@gmail.com>
2017-03-14 14:13:03 -05:00
Jeff Lindsay
edf30fc0aa Fix short write (#28)
* session: pty normalization hack needs to return expected bytes written or chaos ensues, such as short write errors
* _example: renaming to avoid editors that auto-install from making docker binaries in your path that aren't docker
* session: keep extra calculations limited to pty case

Signed-off-by: Jeff Lindsay <progrium@gmail.com>
2017-02-16 15:59:07 -06:00
Jeff Lindsay
a2a474964c fixed/finished basic pty support, added an example, and included tests (#25)
* fixed/finished basic pty support, added an example, and included tests
* session: make the window channel have buffer of 1 and send initial window size on it
* _example/docker: added an ssh to docker-run example
* changes from review: let Reply handle WantReply, only allow setting sess.pty once
* circle: hopefully a working circleci config
2017-02-15 18:08:25 -06:00
Jeff Lindsay
39bc88bc6d Merge pull request #15 from atlassian/belak/always-send-pty-response
Always respond to PTY requests
2017-02-03 18:42:23 -06:00
Jeff Lindsay
d6ddd5d5dc Merge pull request #18 from atlassian/belak/ensure-exit-only-called-once
Ensure Session.Exit can only be called once
2017-02-03 18:19:25 -06:00
Kaleb Elwert
71d4b985d1 Ensure Session.Exit can only be called once 2017-02-03 16:00:28 -08:00
Kaleb Elwert
b9687a28f0 Always respond to PTY requests
Fixes #13
2017-02-03 15:26:58 -08:00
Kaleb Elwert
8fb939fd33 Send the exec/shell reply before starting the session
Fixes #8
2017-02-03 15:25:07 -08:00
Jeff Lindsay
c3f37d4334 more docs, license, readme.
Signed-off-by: Jeff Lindsay <progrium@gmail.com>
2016-11-30 16:06:57 -06:00
Jeff Lindsay
7f8cc2a19a docs and examples
Signed-off-by: Jeff Lindsay <progrium@gmail.com>
2016-11-29 17:23:42 -06:00
Jeff Lindsay
adbd4da93a initial commit 2016-10-03 16:54:17 -05:00