alertmanager/config
Simon Pasquier 0ccc7c9f74 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-07-26 12:39:33 +02:00
..
testdata config: validate URLs at config load time (#1468) 2018-07-26 12:39:33 +02:00
config_test.go config: validate URLs at config load time (#1468) 2018-07-26 12:39:33 +02:00
config.go config: validate URLs at config load time (#1468) 2018-07-26 12:39:33 +02:00
notifiers_test.go config: validate URLs at config load time (#1468) 2018-07-26 12:39:33 +02:00
notifiers.go config: validate URLs at config load time (#1468) 2018-07-26 12:39:33 +02:00