Commit Graph

18 Commits

Author SHA1 Message Date
73af69fa04 Simplify socket file path selection, only use /tmp 2024-12-16 14:59:11 +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
190beba739 Get the entrypoint test-ready 2024-11-15 13:14:23 +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
31af39ce4c Embed default daemon.yml directly in entrypoint 2024-09-24 11:27:54 +02:00
de7aac1f25 Refactor command-line parsing, pass --network to most commands 2024-09-23 20:50:45 +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
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
56f796e3fb Implement basic secrets architecture, use it for garage RPC secret 2024-07-13 17:42:41 +02:00
c5e919dc86 Remove runtime dir locking code 2024-07-12 16:13:44 +02:00
30c8ca332a Fetch GarageClientParams from daemon 2024-07-12 16:03:37 +02:00
c808fa81b9 Move some environment variables into daemon package 2024-06-24 14:45:57 +02:00
8a1c8d2ed6 Use XDG_STATE_HOME rather than XDG_DATA_HOME for storing bootstrap 2024-06-17 17:20:26 +02:00
Brian Picciano
3c3bd8649a Fix minio-client creating config directory in user's home 2023-09-04 21:38:28 +02:00
Brian Picciano
661e2b28cb Move go code into 'go' tld, to make organization clearer 2023-08-25 15:19:31 +02:00