aboutsummaryrefslogtreecommitdiffhomepage
path: root/dhall/ServiceDependency.dhall
diff options
context:
space:
mode:
authorClément Delafargue <39330590+clementd-fretlink@users.noreply.github.com>2020-07-03 15:16:54 +0200
committerGitHub <noreply@github.com>2020-07-03 15:16:54 +0200
commit315c7f51af48b54719bd793d9d28a4bb396a926a (patch)
treea9e2e081805d89fa1b924d6b2f85be342fd0cc54 /dhall/ServiceDependency.dhall
parent90634ee04cc1a4ab983de6bf142f25978463bc4a (diff)
parent3d3287e0767d13b0a81e5936ce9376d58f42e34c (diff)
downloadansible-clever-315c7f51af48b54719bd793d9d28a4bb396a926a.tar.gz
ansible-clever-315c7f51af48b54719bd793d9d28a4bb396a926a.tar.zst
ansible-clever-315c7f51af48b54719bd793d9d28a4bb396a926a.zip
Merge pull request #74 from clementd-fretlink/service-dependenciesv2.7
Service dependencies
Diffstat (limited to 'dhall/ServiceDependency.dhall')
-rw-r--r--dhall/ServiceDependency.dhall9
1 files changed, 9 insertions, 0 deletions
diff --git a/dhall/ServiceDependency.dhall b/dhall/ServiceDependency.dhall
new file mode 100644
index 0000000..9cad9b4
--- /dev/null
+++ b/dhall/ServiceDependency.dhall
@@ -0,0 +1,9 @@
1let ServiceDependency =
2 < Addon : { addon_id : Text } | Application : { app_id : Text } >
3
4let addon = λ(addon_id : Text) → ServiceDependency.Addon { addon_id = addon_id }
5
6let application =
7 λ(app_id : Text) → ServiceDependency.Application { app_id = app_id }
8
9in { Type = ServiceDependency, addon = addon, application = application }