alertmanager/config
Simon Pasquier 226195308a
config: validate URLs at config load time (#1468)
* config: validate URLs at config load time

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Address Brian and Lucas comments

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Shallow copy of URL instead of reparsing it

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Unshadow net/url package

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* Make a deep-copy of URL struct

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-08-14 10:38:49 +02:00
..
testdata config: validate URLs at config load time (#1468) 2018-08-14 10:38:49 +02:00
config.go config: validate URLs at config load time (#1468) 2018-08-14 10:38:49 +02:00
config_test.go config: validate URLs at config load time (#1468) 2018-08-14 10:38:49 +02:00
notifiers.go config: validate URLs at config load time (#1468) 2018-08-14 10:38:49 +02:00
notifiers_test.go config: validate URLs at config load time (#1468) 2018-08-14 10:38:49 +02:00