Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.
gravitationalPublic archive

About

Simplest possible implementation of web-based terminal for Golang backend

Resources

Security policy

Stars

23 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Web-Based Console Demo

This demo was built for the Gitlab team.

It opens a web-based console connected to a /bin/bash running in a virtual terminal on the server side.

Build

Simply type make.

Run

Simply run ./demo and then open http://localhost:5000 You will get a web-based terminal.

TODO

See main.go and replace the path of /bin/bash with the given kubectl command.

That's the simplest implementation of this.

Possible "nice to have" improvements

Detect "window resize" in a browser and pass the new window size into the server via AJAx.

On the server side, call SetSize() on the virtual TTY.

About

Simplest possible implementation of web-based terminal for Golang backend

Resources

Security policy

Stars

23 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址