Miek Gieben
0a43306871
plugin/rewrite: cleanup ( #1916 )
...
delete unused tests and fix import lines.
Signed-off-by: Miek Gieben <miek@miek.nl>
2018-06-30 21:55:38 +01:00
Eugen Kleiner
17d807f05f
plugin/metadata: add metadata plugin ( #1894 )
...
* plugin/metadata: add metadata plugin
* plugin/metadata: Add MD struct, refactor code, fix doc
* plugin/metadata: simplify metadata key
* plugin/metadata: improve setup_test
* Support of metadata by rewrite plugin. Move calculated variables to metadata.
* Move variables from metadata to pkg, add UTs, READMEs change, metadata small fixes
* Add client port validation to variables_test
* plugin/metadata: improve README
* plugin/metadata: rename methods
* plugin/metadata: Update Metadataer interface, update doc, cosmetic code changes
* plugin/metadata: move colllisions check to OnStartup(). Fix default variables metadataer.
* plugin/metadata: Fix comment for method setValue
* plugin/metadata: change variables order to fix linter warning
* plugin/metadata: rename Metadataer to Provider
2018-06-29 10:44:16 +01:00
Chris O'Haver
47b2b10209
plugin/rewrite: handle continue in response rewrite ( #1740 )
...
* handle continue in response rewrite
* add test
2018-04-27 07:05:44 +01:00
Chris O'Haver
5e06687ee5
plugin/rewrite: tweak parse error messaging, add tests ( #1737 )
...
* tweak parse error messaging, add tests
* looser err msg checking
2018-04-25 20:48:32 +01:00
Miek Gieben
0930eb8beb
all: fix plugin import ordering ( #1717 )
...
Got a bit messed up with stb lib "context" usage.
2018-04-22 08:34:35 +01:00
Miek Gieben
8722336fff
global: move to context ( #1699 )
...
* global: move to context
Move from golang.org/x/net/context to std lib's context.
Change done with:
for i in $(grep -l '/context' **/*.go); do sed -e 's|golang.org/x/net/context|context|' -i $i; echo $i; done
for i in **/*.go; do goimports -w $i; done
* drop from dns.pb.go as well
2018-04-20 11:01:06 +01:00
Paul Greenberg
258c163bb0
feature: plugin/rewrite: rewrite ANSWER SECTION ( #1318 )
...
Resolves : #1313
2018-01-18 10:41:14 -05:00
Paul Greenberg
3125381f2d
plugin/rewrite: fix flow control logic for all rule types ( #1308 )
...
Resolves : #1307
2017-12-14 13:25:36 -05:00
Paul Greenberg
d35f2c73ec
plugin/rewrite: regular expression and substring match/replace ( #1296 ) ( #1297 )
2017-12-13 11:31:19 -05:00
Yong Tang
387ceb480b
go lint/vet/misspell cleanup ( #1105 )
...
This fix address several issues related to golint/vet/misspell.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-09-22 16:13:04 -07:00
Thong Huynh
ec21f83425
Modify the rewrite plugin to write multiple EDNS0 options ( #936 ) ( #1096 )
...
* Add processing mode
* Add processing mode
* Update UTs
* Update README.md
* Change to use the constant Stop
* Fix README per review comments
2017-09-20 16:06:53 -04:00
Miek Gieben
d8714e64e4
Remove the word middleware ( #1067 )
...
* 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