-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.dhall
55 lines (48 loc) · 1.74 KB
/
plugin.dhall
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
let Prelude =
https://raw.githubusercontent.com/dhall-lang/dhall-lang/v21.1.0/Prelude/package.dhall
sha256:0fed19a88330e9a8a3fbe1e8442aa11d12e38da51eb12ba8bcb56f3c25d0854a
let Map = Prelude.Map.Type
let JSON = Prelude.JSON
let PluginConfigValue =
< L0 : Text
| L1 : Map Text Text
| L2 : Map Text (Map Text Text)
| Arbitrary : JSON.Type
>
let PluginConfig = Map Text PluginConfigValue
let Plugin = Map Text PluginConfig
let example =
{ plugins = Some
[ toMap
{ `seek-oss/aws-sm#v2.3.1` = toMap
{ env =
PluginConfigValue.L1
( toMap
{ MY_SECRET = "my-secret-id"
, MY_OTHER_SECRET = "my-other-secret-id"
}
)
, file =
PluginConfigValue.Arbitrary
( JSON.array
[ JSON.object
( toMap
{ path = JSON.string "save-my-secret-here"
, secret-id = JSON.string "my-secret-file-id"
}
)
, JSON.object
( toMap
{ path =
JSON.string "save-my-other-secret-here"
, secret-id =
JSON.string "my-other-secret-file-id"
}
)
]
)
}
}
]
}
in { Plugin, PluginConfigValue }