grafana/pkg/util
Alexander Zobnin 997105c20d
Config: Support JSON list syntax (#61288)
* Config: Separate lists either by spaces or by commas.

* Simplify space separation

* use separate function for the config strings

* Change behavior only if string contains quotes

* add test for invalid string

* Use JSON list syntax

* ignore leading spaces when process list

* Add notes about using JSON lists into the docs

* Fix typo

* Apply suggestions from code review

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-01-16 16:03:20 +03:00
..
cmd Server: Switch from separate server & cli to a unified grafana binary (#58286) 2022-11-22 11:53:43 -05:00
cmputil Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
converter Loki/Prometheus: Change signature - return non-reference from ReadPrometheusStyleResult (#57209) 2023-01-13 09:00:39 +01:00
errutil Server: Write internal server error on missing write (#57813) 2022-11-07 16:14:41 +01:00
maputil
proxyutil Plugins: Forward user header (X-Grafana-User) in backend plugin requests (#58646) 2022-12-15 15:28:25 +01:00
retryer
ticker Alerting: Extract ticker into shared package (#55703) 2022-09-26 12:35:33 -05:00
xorm [Bug] Fix xorm dependency on yaml v2 2.2.3 (#61183) 2023-01-11 08:08:28 +00:00
contextutil.go Chore: Add context util that allow to provide cause of cancellation (#53918) 2022-08-24 10:24:41 -04:00
contextutil_test.go Chore: Add context util that allow to provide cause of cancellation (#53918) 2022-08-24 10:24:41 -04:00
encoding.go
encoding_test.go
encryption.go
encryption_test.go
filepath.go Remove ioutil.ReadDir from usage (#53550) 2022-08-11 07:21:12 -04:00
filepath_test.go
ip_address.go
ip_address_test.go
json.go
math.go
md5.go
md5_test.go
reverse.go Nested Folders: Add tests for store methods (#57662) 2022-11-03 14:21:41 +01:00
reverse_test.go Nested Folders: Add tests for store methods (#57662) 2022-11-03 14:21:41 +01:00
shortid_generator.go
shortid_generator_test.go
split_email.go
split_email_test.go
strings.go Config: Support JSON list syntax (#61288) 2023-01-16 16:03:20 +03:00
strings_test.go Config: Support JSON list syntax (#61288) 2023-01-16 16:03:20 +03:00
url.go
url_test.go
validation.go
validation_test.go