Commit Graph

93 Commits

Author SHA1 Message Date
86db5fb5ba Don't use AppImage in arch package install 2024-12-19 20:57:09 +01:00
279b70124c Implement 'network leave' 2024-12-17 16:50:07 +01:00
3111d2ca74 Allow creating a network without configuring it in daemon.yml 2024-12-17 11:33:19 +01:00
73af69fa04 Simplify socket file path selection, only use /tmp 2024-12-16 14:59:11 +01:00
03b19df115 Implement 'vpn public-address' subcommands 2024-12-16 12:19:48 +01:00
5669123c99 Move storage allocation sub-commands under 'storage allocation(s)' 2024-12-13 15:49:04 +01:00
aac7b30cf0 Clean up logging namespaces in daemon a bit 2024-12-13 15:35:15 +01:00
5e8049c8d0 Don't create cache directory in daemon 2024-12-13 10:56:43 +01:00
37d436a428 Move certain sub-command optional fields to options on flag parsing method call 2024-12-10 22:07:25 +01:00
81cfdd5030 Refactor how daemon.RPC is passed through sub-commands 2024-12-10 22:00:55 +01:00
be7844f658 Move most TODOs into task files, introduce busiless to explore them 2024-12-10 21:36:56 +01:00
1c1b05db06 Small cleanup to cli formatting 2024-12-10 16:35:14 +01:00
10758f11a2 Implement 'vpn firewall reset' and 'vpn firewall commit' 2024-12-10 16:14:48 +01:00
9b27676521 Don't error from 'vpn firewall show --staged' if nothing is staged, return the live config instead 2024-12-10 15:35:13 +01:00
dd847cafe1 Implement 'vpn firewall remove' 2024-12-10 15:17:07 +01:00
a5829a6493 Rename 'vpn firewall list' to 'vpn firewall show' 2024-12-10 13:55:03 +01:00
cf968ff883 Implement 'vpn firewall add' 2024-12-10 13:52:57 +01:00
1608031103 Give 'vpn firewall list' a --staged flag 2024-12-09 18:09:45 +01:00
b38d780bdf Implement 'vpn firewall list', and move 'nebula create-cert' to 'vpn create-cert' 2024-12-08 16:59:01 +01:00
a984ffc724 Make 'host list' output match config field naming better 2024-12-07 22:23:49 +01:00
723642e13b Remove 'nebula show' subcmd and add that data to 'network list' 2024-12-07 22:11:29 +01:00
df5ece950a Implement GetBootstrap to replace other redundant methods 2024-12-07 20:39:13 +01:00
a696f0ded6 Add debug logging to all HTTP requests 2024-11-19 14:12:17 +01:00
32cc38ab08 Implement 'storage add-allocation' 2024-11-18 22:11:14 +01:00
cedd9f2c99 Implement 'storage remove-allocation' 2024-11-18 21:16:47 +01:00
8eb3b1d98f Add test for 'storage list-allocation(s)' command 2024-11-16 11:50:55 +01:00
190beba739 Get the entrypoint test-ready 2024-11-15 13:14:23 +01:00
1d02c1f6a0 Implement 'storage list-allocation(s)' 2024-11-14 20:55:15 +01:00
070524f686 Add network get-config command 2024-11-12 18:18:47 +01:00
f0cb29b553 Implement network.Loader, will be helpful for testing Daemon 2024-11-10 22:13:06 +01:00
335867644b Output command-line results in either yaml or json, based on a flag 2024-11-09 17:40:02 +01:00
06d85ca961 Make log level configurable, remove custom log message handler 2024-11-09 17:11:10 +01:00
53a06af9ba Use the term 'role' or 'node' rather than 'peer' in the context of garage 2024-11-08 17:46:44 +01:00
7274815cfd Manage child processes individually, not via Pmux. Also route child logs through mlog 2024-10-29 17:49:24 +01:00
31af39ce4c Embed default daemon.yml directly in entrypoint 2024-09-24 11:27:54 +02:00
64fdba0a48 Implement network(s) list sub-command 2024-09-24 11:03:18 +02:00
de7aac1f25 Refactor command-line parsing, pass --network to most commands 2024-09-23 20:50:45 +02:00
df4eae8a5c Support configuring more than one network 2024-09-10 22:51:33 +02:00
8c3e6a2845 Separate Daemon and Network logic into separate packages
In a world where the daemon can manage more than one network, the Daemon
is really responsible only for knowing which networks are currently
joined, creating/joining/leaving networks, and routing incoming RPC
requests to the correct network handler as needed.

The new network package, with its Network interface, inherits most of
the logic that Daemon used to have, leaving Daemon only the parts needed
for the functionality just described. There's a lot of cleanup done here
in order to really nail down the separation of concerns between the two,
especially around directory creation.
2024-09-09 16:34:00 +02:00
a840d0e701 Move common daemon types and values into daecommon 2024-09-07 15:11:04 +02:00
ef86c1bbd1 Make Daemon into a concrete type which implements RPC directly 2024-09-07 14:05:07 +02:00
8d3b17e1cb Remove extraneous empty struct returns from RPC interface 2024-09-05 17:28:10 +02:00
038a28bb02 Remove remaining extraneous 'Result' RPC-related struct types 2024-09-04 22:46:38 +02:00
06a345ecd1 Embed context directly into subCmdCtx 2024-09-04 22:35:29 +02:00
6c185f6263 Allow variadic number of parameters on RPC calls 2024-09-04 22:25:38 +02:00
53ad8a91b4 Generate RPC client wrapper 2024-09-04 21:24:45 +02:00
5138ed7c6a Attempt to delete socket file before listening on the path 2024-09-04 19:44:58 +02:00
4f6a89ced0 Roadmap has been moved to micropelago.net 2024-09-01 12:20:37 +02:00
39e12f6ebd disallow -h and --help as flags in sub-commands 2024-07-22 16:37:22 +02:00
d31be8455b Pluralize 'host(s)' subcommands 2024-07-22 15:52:51 +02:00