kaiyou
0e799d6074
Parse metadata outside of cluster.go
...
Move the calls for metadata decoding from the cluster
membership management loop to the main loop. This task
was not directly related to the cluster, and was adding
complexity, including the need for multierr structures.
2020-05-13 13:52:54 +02:00
kaiyou
366f906d5d
Do not pass the config object to newCluster
...
Decouple the config structure from the cluster management and
stop passing the config object around.
2020-05-13 13:52:54 +02:00
kaiyou
97525f4b10
Stop using wireguard in cluster.go
...
The wireguard is mostly used to compute metadata.
Metadata is now computed by main.go and encoded in
node.go, the cluster only receives a function generating
the binary metadata.
2020-05-13 13:52:54 +02:00
kaiyou
0d93439d0d
Move node related stuff to node.go
...
The cornerstone for exchanging data is the node
structure and associated metadata. Moving it to a
separate file (maybe later a separate module) will help
decoupling.
2020-05-13 13:52:54 +02:00
kaiyou
5772640cf9
Fix a simple typo
2020-05-13 13:52:54 +02:00
kaiyou
f2e53dd869
Lower the complexity of newCluster()
...
Move the computation of clusterKey and bindAddress
to separate functions.
2020-05-13 13:52:54 +02:00
Leo Antunes
d45b8321a0
bump wgctrl; switch to multierr
2020-04-19 13:37:49 +02:00
Leo Antunes
709349d121
use structured logging
2020-01-31 19:36:18 +01:00
Leo Antunes
a46d8ac18d
increase event handling buffer
...
this should mitigate a timing issue where joining larger clusters would
cause cluster.members() to deadlock.
2019-08-24 20:27:58 +02:00
Leo Antunes
aecc352e92
fix state file permissions
2019-08-24 16:51:30 +02:00
Leo Antunes
2edf641c46
add option for binding to interface
...
this effectively still bind to an address, but resolves it based on the
interface instead of explicitly.
2019-07-21 23:00:18 +02:00
Leo Antunes
f4e61df211
use wgctrl lib instead of wrapping wg-tools
...
fixes : #3
2019-07-12 11:08:14 +02:00
Leo Antunes
0165b7a504
add --init option for explicit cluster reset
2019-03-27 22:25:14 +01:00
Leo Antunes
b2a7551a53
minor: assignIP → assignOverlayAddr
2019-03-27 21:37:54 +01:00
Leo Antunes
e89a7141e5
add hosts file support
2019-03-26 23:32:36 +01:00
Leo Antunes
5e01de00c1
first working PoC
2019-03-26 23:32:36 +01:00