3 ms·
One of the fun things I recently did was re-implementing it kubectl exec in client-go following a github [1]. Fun challenge is to then convert it into a websoc
by debarshri 5y ago
One of the fun things I recently did was re-implementing it kubectl exec in client-go following a github [1].
Fun challenge is to then convert it into a websocket or http handler.
[1]https://github.com/kubernetes/client-go/issues/809 https://github.com/kubernetes/client-go/issues/809
- Deathmax 5y agoI had to do it for work for a tool to interact with remotely hosted containers. Tip for anyone trying to do this in Go, look at Docker CLI's code for all the knobs you need to turn to have an actually interactive terminal, for example, setting raw mode on the terminal, handling terminal resizes, and other things across platforms.