storj/satellite/nodeselection
Márton Elek b218002752 satellite/overlay/placement: improve placement configurability with &&, placement, region and ! support in country
This patch makes it easier to configure existing placement rules only with string.

 1. placement(n) rule can be used to reuse earlier definitions
 2 .&& can be used in addition to all(n1,n2)
 3. country(c) accepts exclusions (like '!RU'), regions ('EU','EEA'), all and none

See the 'full example' unit test, which uses all of these, in a realistic example.

https://github.com/storj/storj/issues/6126

Change-Id: Ica76f016ebd002eb7ea8103d4258bacd6a6d77bf
2023-08-17 16:12:53 +00:00
..
gen satellite/nodeselection: SelectBySubnet should use placement filters for all nodes 2023-08-04 10:48:15 +02:00
common.go satellite: move satellite/nodeselection/uploadselection => satellite/nodeselection 2023-07-07 10:32:03 +02:00
filter_test.go satellite/overlay/placement: improve placement configurability with &&, placement, region and ! support in country 2023-08-17 16:12:53 +00:00
filter.go satellite/~placement: do not ignore placement check for placement=0 2023-08-16 07:06:56 +00:00
node.go satellite/nodeselection: expand SelectedNode 2023-08-07 12:44:49 +00:00
primes.go satellite/nodeselection: SelectBySubnet should use placement filters for all nodes 2023-08-04 10:48:15 +02:00
rand_test.go satellite/nodeselection: SelectBySubnet should use placement filters for all nodes 2023-08-04 10:48:15 +02:00
rand.go satellite/nodeselection: SelectBySubnet should use placement filters for all nodes 2023-08-04 10:48:15 +02:00
region.go satellite/overlay/placement: improve placement configurability with &&, placement, region and ! support in country 2023-08-17 16:12:53 +00:00
selector_test.go satellite/nodeselection: SelectBySubnet should use placement filters for all nodes 2023-08-04 10:48:15 +02:00
selector.go satellite/nodeselection: SelectBySubnet should use placement filters for all nodes 2023-08-04 10:48:15 +02:00
state_test.go satellite/nodeselection: remove stats/size from nodeselection state 2023-08-01 18:29:41 +00:00
state.go satellite/{nodeselection,overlay}: support annotations on node filters 2023-08-15 16:49:57 +00:00