storj/satellite/overlay
Márton Elek c3fbac2e7a satellite/overlay/placement: better error message for placement parsing
Given the placement.txt with the content:

```
9:exclude(placement(10))
10:country("DE")
```

Without patch:

```
placement-test --placement=/tmp/placement.txt countrycode=DE
Error: type mismatch: reflect: Call using zero Value argument
```

With the patch:

```
placement-test --placement=/tmp/placement.txt countrycode=DE
Error: Error in line 'exclude(placement(10))' when placement rule is parsed: Placement 10 is referenced before defined. Please define it first!
```

Change-Id: I9ad81016d4a57fdb32f3ff9031b5591f9a7cd2a6
2023-10-16 09:28:45 +00:00
..
offlinenodes satellite/overlay/offlinenodes: insert offline nodes into node events 2022-11-18 12:10:06 -05:00
straynodes satellite/overlay: insert DQ node events for stray nodes 2022-11-04 15:48:17 +00:00
benchmark_test.go satellite/overlay: fix placement selection config parsing 2023-09-21 14:31:41 +00:00
checkin_test.go mod: bump common to fetch latest placement type changes 2021-11-16 12:42:25 +00:00
config.go satellite/overlay: add AOST to GetParticipatingNodes method 2023-09-27 12:00:10 +00:00
db_test.go storj: upgrade to use latest storj/common NodeAddress 2023-01-25 01:37:26 +00:00
downloadselection_test.go satellite/overlay: fix placement selection config parsing 2023-09-21 14:31:41 +00:00
downloadselection.go satellite/nodeselection: rename (NodeFilter).MatchInclude to Match 2023-08-31 16:17:52 +02:00
peeridentities_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
peeridentities.go all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
piececount_test.go storj: upgrade to use latest storj/common NodeAddress 2023-01-25 01:37:26 +00:00
placement_test.go satellite/overlay/placement: better error message for placement parsing 2023-10-16 09:28:45 +00:00
placement.go satellite/overlay/placement: better error message for placement parsing 2023-10-16 09:28:45 +00:00
selection_test.go satellite/overlay: fix placement selection config parsing 2023-09-21 14:31:41 +00:00
service_test.go satellite/overlay: fix placement selection config parsing 2023-09-21 14:31:41 +00:00
service.go satellite/overlay: add AOST to GetParticipatingNodes method 2023-09-27 12:00:10 +00:00
statdb_test.go satellite/overlay: change Reliable and KnownReliable 2023-09-02 23:34:50 +00:00
uploadselection_test.go satellite/overlay: fix placement selection config parsing 2023-09-21 14:31:41 +00:00
uploadselection.go satellite/overlay: remove/deprecate NodeSelectionCache.Disabled 2023-08-31 09:46:29 +00:00