diff options
author | Hussein Ait-Lahcen <hussein.ait-lahcen@fretlink.com> | 2019-04-24 15:28:10 +0200 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2020-01-02 13:43:35 +0100 |
commit | 80320193527d24c33ce67da99521a4cdd6631edc (patch) | |
tree | 8a3991b1e4e9ffcb3ba8ec350ad7ff2f5e81f653 /dhall/server/service/plugin/mkPreFunction.dhall | |
parent | 027a2fa61a6044b2e967b29195312e4d98a96078 (diff) | |
download | ansible-kong-app-80320193527d24c33ce67da99521a4cdd6631edc.tar.gz ansible-kong-app-80320193527d24c33ce67da99521a4cdd6631edc.tar.zst ansible-kong-app-80320193527d24c33ce67da99521a4cdd6631edc.zip |
add(dhall): introduce pre-function plugin
Diffstat (limited to 'dhall/server/service/plugin/mkPreFunction.dhall')
-rw-r--r-- | dhall/server/service/plugin/mkPreFunction.dhall | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dhall/server/service/plugin/mkPreFunction.dhall b/dhall/server/service/plugin/mkPreFunction.dhall new file mode 100644 index 0000000..ff4f734 --- /dev/null +++ b/dhall/server/service/plugin/mkPreFunction.dhall | |||
@@ -0,0 +1,9 @@ | |||
1 | let Plugin = ./Plugin.dhall | ||
2 | |||
3 | let config = ./Config.dhall | ||
4 | |||
5 | in λ(functions : List Text) | ||
6 | → { name = "pre-function" | ||
7 | , config = config.PreFunction { functions = functions } | ||
8 | } | ||
9 | : Plugin | ||