traefik/server
Martin Baillie 9cb07d026f Refactor into dual Rancher API/Metadata providers
Introduces Rancher's metadata service as an optional provider source for
Traefik, enabled by setting `rancher.MetadataService`.

The provider uses a long polling technique to watch the metadata service and
obtain near instantaneous updates. Alternatively it can be configured to poll
the metadata service every `rancher.RefreshSeconds` by setting
`rancher.MetadataPoll`.

The refactor splits API and metadata service code into separate source
files respectively, and specific configuration is deferred to
sub-structs.

Incorporates bugfix #1414
2017-06-20 19:08:53 +02:00
..
adapters.go refactor: Logs & errors review. 2017-05-30 23:33:27 +02:00
configuration.go Refactor into dual Rancher API/Metadata providers 2017-06-20 19:08:53 +02:00
errorhandler.go retry only on real network errors 2017-06-19 20:13:46 +02:00
errorhandler_test.go retry only on real network errors 2017-06-19 20:13:46 +02:00
rules.go refactor: Logs & errors review. 2017-05-30 23:33:27 +02:00
rules_test.go test: use MustNewRequest. 2017-06-09 23:55:49 +02:00
server.go retry only on real network errors 2017-06-19 20:13:46 +02:00
server_test.go add metrics for backend_retries_total 2017-06-07 08:56:50 +02:00
web.go Add HTTP HEAD handling to /ping endpoint 2017-06-20 11:40:14 +02:00