Commit Graph

172 Commits

Author SHA1 Message Date
guardrails[bot] e1ca4c1db6 docs(readme): add GuardRails badge 2018-10-19 08:54:24 +00:00
Manfred Touron e5589f6df3
Merge pull request #64 from Sh4d1/containerd-console
Change dependencies moby/pkg/term to containerd/console
2018-05-26 09:54:33 +02:00
Patrik Cyvoct a9a660a943
Change dependencies moby/pkg/term to containerd/console
Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
2018-05-18 16:46:58 +02:00
Manfred Touron c1b82f1af3
Merge pull request #63 from Sh4d1/fix-ping
Fix ping message
2018-05-10 00:47:37 +02:00
Patrik Cyvoct cb2bebbabc
Fix ping message
Init message type before calling ping loop

Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
2018-05-08 20:40:00 +02:00
Manfred Touron dfc14ad646 Update Changelog 2018-05-08 17:48:02 +02:00
Manfred Touron 27b7919a8d
Merge pull request #62 from Sh4d1/master
Fixes #61 by restoring terminal on exit
2018-05-08 17:40:01 +02:00
Patrik Cyvoct d8aafdbe17
Fixes #61 by restoring terminal on exit
Use of moby/pkg/term to set to raw terminal and restore after
Replaces terminal of ssh package

Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
2018-05-01 19:22:46 +02:00
Manfred Touron 7fd03d89df
Merge pull request #60 from Sh4d1/master
Add test to check if escapeKeys is empty
2018-04-30 18:00:40 +02:00
Patrik Cyvoct e1cfb29255
Add test to check if escapeKeys is empty
Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
2018-04-30 13:27:21 +02:00
Manfred Touron cb5d9e68d1
Merge pull request #59 from Sh4d1/master
Bump dependenices to solve scaleway/scaleway-cli #497
2018-04-30 12:30:40 +02:00
Patrik Cyvoct f1f25b8d14
Bump dependenices to solve scaleway/scaleway-cli #497
Signed-off-by: Patrik Cyvoct <patrik@ptrk.io>
2018-04-30 12:14:48 +02:00
Manfred Touron 19bef27353 Post-release version bump 2018-04-11 16:59:21 +02:00
Manfred Touron 746e56304a v1.7.0 2018-04-11 16:55:47 +02:00
Manfred Touron fd4c8fbf9c Update CHANGELOG 2018-04-11 16:38:36 +02:00
Manfred Touron fed84849f1
Merge pull request #58 from byung2/support-gotty-v2
support for gotty v2.0 and ws-origin
2018-04-11 16:35:23 +02:00
Manfred Touron f4e7938ff5
Merge pull request #56 from byung2/fix-resize
Fix bugs when resizing a terminal
2018-04-11 16:33:20 +02:00
byung2 47b4beb173 Add --ws-origin option to allow cross origin requests to WS endpoint 2018-04-10 21:05:19 +09:00
byung2 7ffe9b2b6f Add --v2 option for gotty v2.0 support 2018-04-10 21:00:25 +09:00
byung2 6e830102b9 Fix 'inappropriate ioctl for device' 2018-04-10 14:51:39 +09:00
byung2 a7be1467bf Fix bug when resizing terminal 2018-04-10 14:50:09 +09:00
Manfred Touron b26a57ebc2
Merge pull request #55 from dimtion/cross-build
Cross build on Solaris for the sdk
2018-03-27 20:02:12 +02:00
Loïc Carr 9e68842593 Move escape proxy to another file 2018-03-27 14:58:16 +02:00
Loïc Carr 989a803a5b Replace SYS_IOCTL by cross platform version 2018-03-27 14:58:16 +02:00
Loïc Carr 3b96b5a830 Bump dependencies 2018-03-27 14:56:15 +02:00
Manfred Touron fdaa7034e2 Bump dependencies 2018-02-23 14:54:43 +01:00
Manfred Touron 1f3b6c8a8f
Merge pull request #54 from moul/dev/moul/detach-keys
Add `--detach-keys` option
2017-12-13 17:02:16 +01:00
Manfred Touron d6705baf85 Add --detach-keys option (fix #52) 2017-12-13 16:56:02 +01:00
Manfred Touron 2749f47e93 Switch to govendor 2017-12-13 16:56:02 +01:00
Manfred Touron 16eff5c512 Switch to more standard project Dockerization 2017-12-13 16:56:00 +01:00
Manfred Touron 1dc981dde2
Merge pull request #48 from moul/dev/moul/go18
Test on go1.8
2017-11-07 09:40:56 +01:00
Manfred Touron b47f2c128b
Merge pull request #53 from tamalsaha/master
Update github.com/sirupsen/logrus dependency to v1.0.3
2017-11-07 09:40:47 +01:00
tamal 990fa23220 Update github.com/sirupsen/logrus dependency to v1.0.3
ref: https://github.com/sirupsen/logrus/issues/543
2017-10-21 18:28:05 -07:00
Manfred Touron 8991b77be4 Merge pull request #51 from fossabot/master
Add license scan report and status
2017-07-20 10:32:12 +02:00
fossabot c1750d63f2 Add license scan report and status 2017-07-20 01:20:27 -07:00
Manfred Touron 154c4573b9
Test on more Travis versions 2017-04-22 23:52:19 +02:00
Manfred Touron c71d7dd40c
Improve build speed 2017-04-22 23:52:04 +02:00
Manfred Touron bd8ea918f9
Test on go1.8 2017-03-10 09:34:06 +01:00
Manfred Touron 99224eea32 Bump golang version for travis 2017-02-05 10:54:39 +01:00
Manfred Touron 2f20ad058c Bump dependencies 2017-02-04 23:04:11 +01:00
Manfred Touron feb2274736 Switch to glide 2017-02-04 23:03:11 +01:00
Manfred Touron dcae3e13d9 Merge pull request #46 from davidfetter/master
Fixed incorrect URL for homebrew installation
2017-01-19 23:55:15 +01:00
David Fetter 920301a0ea Fixed incorrect URL for homebrew installation 2017-01-19 14:00:50 -08:00
Manfred Touron fd2d4f12dc Bump homebrew@1.6.1 2017-01-19 05:46:18 +01:00
Manfred Touron ad9464963b Post-release version bump 2017-01-19 05:39:43 +01:00
Manfred Touron ab578adf86 v1.6.1 2017-01-19 05:35:41 +01:00
Manfred Touron ce15e256e9 Merge pull request #45 from gurjeet/master
Do not exit on EOF
2017-01-05 14:57:25 +01:00
Gurjeet Singh e153cff9c8 Implement poison-pill method to exit infinite loops
All cooperating goroutines regularly try to read from the shared "poison"
channel.  If the read succeeds, they exit by calling die(), assuming
somebody else cracked open the poison pill.

When any of these goroutines is done with its job, it signals other
goroutines to exit by calling open_poison() on the shared channel.

This approach takes advantage of the fact that reads from a closed
channel always succeed.

The driving goroutine (Client.Loop() in this case), is called from the
"main" goroutine. And because when the "main" goroutine exits, the whole
program exit (using os.Exit()) irrepective of liveness of other goroutines,
we could not use the same "poison" channel to wait in the driving goroutine.

Instead, we use sync.WaitGroup to wait for spawned goroutines, because
we want the spawned goroutines to cleanup and exit cleanly.
2016-12-17 14:00:47 -08:00
Gurjeet Singh 3e895cf209 Do not exit on EOF
Forward the EOF to GoTTY, and let the server-side decide if it wants to
terminate the connection. The server closes the connection, and in
response we terminate the readLoop which in turn signals writeLoop to
terminate via the QuitChan.

This allows for the user to pipe commands to gotty-client, and capture
all the result sent by the server. For eg. when gotty is launched as
`gotty -w bash`, the following command would now wait to capture all
output from the server.

for (( i = 0 ; i < 2; ++i )); do echo echo $i; echo sleep 2; done | ./gotty-client https://gotty.example.com

Before this patch, gotty-client used to exit on encountering EOF from
the left side of the pipe.
2016-11-07 15:36:48 -08:00
Manfred Touron 037503a6fd
Add 'make install' target
Signed-off-by: Manfred Touron <m@42.am>
2016-09-28 10:14:36 +02:00