Jeff Carr
|
080acc8f3c
|
remove places it would exit()
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2023-03-28 08:54:18 -05:00 |
Jeff Carr
|
146249a13d
|
add log() and go-arg
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2023-02-20 22:22:58 -06:00 |
Jeff Carr
|
d53d4f1647
|
pass all the ip addresses back
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2023-02-19 02:20:09 -06:00 |
Jeff Carr
|
a138364227
|
BUILD: fix the import paths
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2021-08-09 00:46:00 -05:00 |
Jeff Carr
|
96c44afee1
|
fix hostname with domain name and vis-a-vis
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-06-04 23:15:55 +00:00 |
Jeff Carr
|
0ef6a9b47b
|
make token incase it is empty
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-06-04 04:44:50 +00:00 |
Jeff Carr
|
00d19a95da
|
move gorilla websocket functions into their own file
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-29 08:55:41 +00:00 |
Jeff Carr
|
5357cbd7db
|
never die in fetchVMs(). Use the domain from the config file
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-29 01:14:07 +00:00 |
Jeff Carr
|
7c5b906f5f
|
ok. ADD works from the GUI
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-28 20:28:25 +00:00 |
Jeff Carr
|
1cb13782e2
|
fixed client code example.
WTF was wrong with the other code I made?
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-28 20:19:32 +00:00 |
Jeff Carr
|
34351697e3
|
working POSTbody()
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-28 20:02:05 +00:00 |
Jeff Carr
|
2b7a5fa43d
|
broken still
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-28 19:49:51 +00:00 |
Jeff Carr
|
7883c0d16d
|
add a simple client to test ADD
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-28 19:35:42 +00:00 |
Jeff Carr
|
12ef7e0dcf
|
more work on converting the JSON
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-28 06:18:44 +00:00 |
Jeff Carr
|
da12ea4087
|
start to clean code for interaction with protobuf structures
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-28 04:29:55 +00:00 |
Jeff Carr
|
82c4ac9c01
|
more debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-26 20:20:50 +00:00 |
Jeff Carr
|
88c3ef5992
|
better debugging
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-26 20:13:50 +00:00 |
Jeff Carr
|
936b2d6c91
|
more code cleanups
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-26 19:35:13 +00:00 |
Jeff Carr
|
1ef3c8f2dd
|
fail if account was not sent
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-26 17:53:02 +00:00 |
Jeff Carr
|
2d3a0a900a
|
lots of cleanups to token handling. protobuf fixes
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-26 08:04:12 +00:00 |
Jeff Carr
|
b16b4c84bb
|
cleaning up the code further
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-26 07:27:51 +00:00 |
Jeff Carr
|
deac243443
|
correctly request a new token
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-26 06:22:37 +00:00 |
Jeff Carr
|
53c9620b8a
|
write to files
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 17:11:32 -07:00 |
Jeff Carr
|
fb698301e4
|
convert JSON to protobuf
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 14:24:07 -07:00 |
Jeff Carr
|
95b4b77b27
|
final small version
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 14:09:59 -07:00 |
Jeff Carr
|
91e02c329d
|
dump the JSON body
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 14:09:02 -07:00 |
Jeff Carr
|
7110856b18
|
allow 'OPTIONS' aka 'CORS' on http sockets
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 13:10:25 -07:00 |
Jeff Carr
|
58b80b499a
|
attempt 3
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 12:30:07 -07:00 |
Jeff Carr
|
42ef854233
|
even smaller
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 12:17:07 -07:00 |
Jeff Carr
|
5ace7b049f
|
misc other tests
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 12:03:11 -07:00 |
Jeff Carr
|
280e8218ae
|
another example
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 11:37:47 -07:00 |
Jeff Carr
|
c19043cd52
|
simple daemon to listen to http requests
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-25 11:17:03 -07:00 |
Jeff Carr
|
c32f8585fa
|
disable journalhook because it doesn't build on Windows
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 21:41:19 -07:00 |
Jeff Carr
|
13af6a6273
|
start a unified json function
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 22:36:56 +00:00 |
Jeff Carr
|
19147ea950
|
respond to login attempt
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 06:43:42 +00:00 |
Jeff Carr
|
0e7cb059d4
|
an attempt at verifing the login token
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 05:46:37 +00:00 |
Jeff Carr
|
7274c5c3c3
|
merge into a single file to make it easier to work with
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 03:46:02 +00:00 |
Jeff Carr
|
e4031a68c0
|
token is in GUI
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 02:52:37 +00:00 |
Jeff Carr
|
47a5b0659c
|
recieve the token
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-24 02:33:19 +00:00 |
Jeff Carr
|
bb12949637
|
update to new token
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-23 03:09:51 +00:00 |
Jeff Carr
|
0ee9a0e661
|
maybe an alternative to look at?
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-15 20:28:59 +00:00 |
Jeff Carr
|
6ce08105ad
|
fix error on broken API or JSON networks being nil
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-14 02:21:28 +00:00 |
Jeff Carr
|
7bcbe607a0
|
convert the JSON into a google protobuf
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-12 19:19:15 +00:00 |
Jeff Carr
|
0b6d5fbac9
|
send back a protobuf
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-12 07:28:07 +00:00 |
Jeff Carr
|
1bfaaa331d
|
ready to attempt returning a protobuf
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-12 06:07:22 +00:00 |
Jeff Carr
|
0ad98fe594
|
remove all the extra stuff
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-12 05:57:19 +00:00 |
Jeff Carr
|
f2068edf09
|
start a daemon to talk to the cloud-control-panel
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-12 05:48:59 +00:00 |
Jeff Carr
|
cffb4344d0
|
s/c/conn/
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-11 20:14:37 -07:00 |
Jeff Carr
|
36a23911a8
|
successfully sent a google protobuf over a gorilla websocket in
a marshal'd binary form. echo protobuf works.
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-11 17:22:14 -07:00 |
Jeff Carr
|
46ee8a456f
|
make a seperate function to handle reading messages from the channel
Signed-off-by: Jeff Carr <jcarr@wit.com>
|
2019-05-11 17:07:28 -07:00 |