Commit Graph

27 Commits

Author SHA1 Message Date
pancho horrillo
41be4f9344 refactor: use a common logger for consistency
All kapow messages will end up in stderr (incl. debug mode).
stdout is reserved for the access logs.

Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2020-12-16 17:29:26 +01:00
pancho horrillo
4546fc65b6 fix: honor global flag --debug
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
2020-12-15 18:59:29 +01:00
Héctor Hurtado
248f7d1fcc Added stderr output management to jaillover.
Added Spawn support for stderr redirection.
Added --debug option to server cmd.
Added debug information to documentation.
Finnished script logger.
2020-04-20 10:18:16 +02:00
Héctor Hurtado
4988c48e03 Correct typo assigning KAPOW_CONTROL_URL env variable 2020-04-06 19:38:43 +02:00
Héctor Hurtado
e6e25f25c7 Fix #102 2020-04-06 18:02:29 +02:00
Héctor Hurtado
73ef493f04 cmd/server sets now environment variables KAPOW_DATA_URL and KAPOW_CONTROL_URL
Remove golinter error S1036: unnecessary guard around map access in 
spawn package
2020-04-03 21:42:42 +02:00
Héctor Hurtado
cddc5ff351 Fixes #45: Added Support fot Mutual TLS Authentication 2020-01-23 17:39:58 +01:00
Héctor Hurtado
493e6be78c Added support fot https in user server 2020-01-22 17:27:24 +01:00
pancho horrillo
2d5743af84 Add blank line between legal header and package declaration
Otherwise, the legal header is rendered as package documentation.
2019-11-13 18:18:44 +01:00
Héctor Hurtado
19c4e8d482 Changed user server bind address to 0.0.0.0 to allow listen on a container 2019-10-31 15:22:56 +01:00
pancho horrillo
c29a17d7e4 Fix handling of arguments
Closes: #67
2019-10-25 18:54:52 +02:00
pancho horrillo
ae3bd76434 Leverage ioutil.ReadAll() and ioutil.ReadFile() to simplify logic
Related to: #46
2019-10-23 18:01:58 +02:00
pancho horrillo
7674725658 Drop TODO line of solved issue
Related to #46
2019-10-23 17:59:37 +02:00
Héctor Hurtado
723e4787b3 Added legal header to all Go source files 2019-10-23 13:35:01 +02:00
César Gallego Rodríguez
aa6d59fa56 Fix for - and file adding a route. Move null routes to their own issue.
Closes: #46
2019-10-23 13:20:31 +02:00
Roberto Abdelkader Martínez Pérez
28a0be1d87 Allow kapow server to run without .pow file and non-interactive
Co-authored-by: pancho horrillo <pedrofelipe.horrillo@bbva.com>
2019-10-22 11:56:18 +02:00
Roberto Abdelkader Martínez Pérez
fa394ce997 Call server.StartServer() from cmd
Co-authored-by: Hector Hurtado <hector.hurtado@bbva.com>
2019-10-22 10:23:12 +02:00
pancho horrillo
5bbc341e10 Update internal/cmd/server.go
- Honour --bind, --control-bind, --data-bind
- Drop unused params (--interactive, --url, --control-url, --data-url)
- Minimize environment for running the powfile shell script
- Drop debug code

TODO: actual key and cert handling for https
2019-10-20 18:39:50 +02:00
pancho horrillo
341768ace8 internal/cmd/server.go: sort imports 2019-10-20 18:38:29 +02:00
pancho horrillo
bb5843ec35 Fix lowercase ID in human-readable messages 2019-10-20 18:32:46 +02:00
pancho horrillo
b14ea93a64 Minor fixes on error handling
Co-authored-by: César Gallego <gallego.cesar@gmail.com>
2019-10-17 17:11:19 +02:00
pancho horrillo
ee00a7bccc Fix param names to use the right URL
Co-authored-by: César Gallego <gallego.cesar@gmail.com>
2019-10-17 17:04:59 +02:00
pancho horrillo
4638bec5fe Gather binding vars for each server and run them
Co-authored-by: César Gallego <gallego.cesar@gmail.com>
2019-10-17 17:03:45 +02:00
Roberto Abdelkader Martínez Pérez
47bd2be882 Some fixes suggested by golangci-lint 2019-10-07 08:53:48 +02:00
Héctor Hurtado
feaa836093 Connect set command. TODOs in route command 2019-10-04 14:32:39 +02:00
pancho horrillo
57d1aabb66 internal/cmd/route.go: replace dummies with calls to client code
Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
2019-10-04 06:46:40 +02:00
pancho horrillo
23128026c7 Rework directory structure
Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
2019-10-03 12:05:53 +02:00