commit | 230fb55f318b9e7c2fb88a3e75f597978d2c56af | [log] [tgz] |
---|---|---|
author | Benjamin Prosnitz <bprosnitz@google.com> | Wed Mar 09 22:39:13 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Mar 09 22:39:13 2016 +0000 |
tree | c4b0527239a6a3130ca2a56c6d5ca83e9137b1a1 | |
parent | fba0fc7cee21e7fe64a0a4fcf8b008621407c140 [diff] | |
parent | cc9479a098c98ba37dfe7fcbb56d9b7c9e65de60 [diff] |
Merge "p2b: Update vdl for 2 pass gen"
This Vanadium application makes it possible to pipe anything from any Unix-like console to the browser using the shell's regular pipe functionality. Data being piped to the browser then is displayed in a graphical and formatted way by a viewer. Viewers are pluggable pieces of code that know how to handle and display a stream of data.
For example:
echo "Hi!" | p2b users/jane@google.com/chrome/p2b/jane/console
or
cat cat.jpg | p2b users/jane@google.com/chrome/p2b/jane/image
where users/jane@google.com/chrome/p2b/jane is the object name where p2b service is running in the browser. The suffix console or image specifies what viewer should be used to display the data.
P2B supports several built-in plugins such as console, image viewer, log viewer, git status viewer and dev/null. Users can create their own plugins and plug them remotely as well.
Users can also redirect pipes of data to other instances of P2B.
Use of the Vanadium Security Model ensures that all data between the console and browser is encrypted and authorized.
Please see the help page inside the P2B application for detailed tutorials.
# build everything and start a web server at 8000 make start
Navigate to http://localhost:8000 and publish under a name such as ‘foo’ then setup a shell (bash) running with your Vanadium credentials:
make shell
and then run p2b
cli client, for instance:
# run a sample p2b command echo "Hello World" | go/bin/p2b users/<<email-address>>/chrome/p2b/foo/console
To stop simply Ctrl-C the console that started it
To clean make clean