diff options
author | Gaëtan <36162164+gaetanfl@users.noreply.github.com> | 2018-11-20 20:32:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-20 20:32:43 +0100 |
commit | 66401fc939cd73628561d4832c3e219f0b44d8de (patch) | |
tree | ca5b2bc2ea4c15d91476436ca4376108f5a78d88 /dhall/server/service/plugin/mkIPRestriction.dhall | |
parent | 6bbc5a167fb43110a5b16746c112298f392be2b8 (diff) | |
parent | 77e27a11c31fee82c2ff30613bc832f5171fa845 (diff) | |
download | ansible-kong-app-66401fc939cd73628561d4832c3e219f0b44d8de.tar.gz ansible-kong-app-66401fc939cd73628561d4832c3e219f0b44d8de.tar.zst ansible-kong-app-66401fc939cd73628561d4832c3e219f0b44d8de.zip |
Merge pull request #7 from haitlahcen/dhall-interfacev0.5
add dhall interface
Diffstat (limited to 'dhall/server/service/plugin/mkIPRestriction.dhall')
-rw-r--r-- | dhall/server/service/plugin/mkIPRestriction.dhall | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dhall/server/service/plugin/mkIPRestriction.dhall b/dhall/server/service/plugin/mkIPRestriction.dhall new file mode 100644 index 0000000..f803769 --- /dev/null +++ b/dhall/server/service/plugin/mkIPRestriction.dhall | |||
@@ -0,0 +1,11 @@ | |||
1 | let Plugin = ./Plugin.dhall | ||
2 | |||
3 | in let config = constructors ./Config.dhall | ||
4 | |||
5 | in λ(whiteList : Text) | ||
6 | → { name = | ||
7 | "ip-restriction" | ||
8 | , config = | ||
9 | config.IPRestriction { whitelist = whiteList } | ||
10 | } | ||
11 | : Plugin | ||