Commit graph

8 commits

Author SHA1 Message Date
Manuel Stocker
4b1b0ec9e6 Use filepath when manipulating file paths ()
Automatically submitted.
2018-10-21 13:59:37 +00:00
marqc
552aab723c Configurable zone reload interval in file plugin ()
* Configurable zone reload interval in file plugin

* passing reload config from auto plugin to file plugin. removed noReload property from Zone struct. fixed tests based on short file reload hack
2018-09-29 16:50:49 +01:00
Yong Tang
54ec78c1ba Fix ineffassign ()
* Fix ineffassign

This fix tries to fix ineffassign, as was reported in:
https://goreportcard.com/report/github.com/coredns/coredns#ineffassign

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Update setup.go

Revert this one change, so this can be merged.
2018-07-28 10:32:13 +01:00
Joey Espinosa
c2780f42c4 Updating filepath in auto plugin if existing zone's file changes location () ()
Exporting Zone.File to avoid getters and setters

Updating getter and setter for Zone.File to be less racy

Renaming GetFile to File in zone plugin
2018-07-03 11:20:39 +01:00
Miek Gieben
4f3dc207a4
plugin/file: shutdown reload goroutine ()
* plugin/file: shutdown reload goroutine

Shutdown the z.Reload() routine (if started in the first place) on
shutdow and reload.

Fixes 

* Must be put in c.OnShutdown()

* up test coverage
2018-02-28 18:19:37 -08:00
Chris O'Haver
ba573c0f40 plugin/auto/file/secondary: Use new upstream resolver ()
* move file, auto, secondary to new upstream

* include context in request
2018-02-16 09:44:50 +01:00
Miek Gieben
9575789c36
plugin/secondary: don't duplicate apex records ()
See  and the discussion in that bug.

Fixes 
2018-01-23 10:35:31 +00:00
Miek Gieben
d8714e64e4 Remove the word middleware ()
* Rename middleware to plugin

first pass; mostly used 'sed', few spots where I manually changed
text.

This still builds a coredns binary.

* fmt error

* Rename AddMiddleware to AddPlugin

* Readd AddMiddleware to remain backwards compat
2017-09-14 09:36:06 +01:00
Renamed from middleware/file/zone.go (Browse further)