-
Notifications
You must be signed in to change notification settings - Fork 6
/
types.dhall
36 lines (29 loc) · 940 Bytes
/
types.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
-- Terraform
let TF/GithubUserRole : Type = < admin: {} | member: {} >
in let TF/GithubMembership : Type =
{ mapKey : Text
, mapValue :
{ role : Text, username : Text }
}
in let TF/GithubTeam : Type =
{ mapKey : Text
, mapValue : { name: Text, description: Text, privacy: Text}
}
in let TF/GithubTeamMembership : Type =
{ mapKey : Text
, mapValue :
{ team_id : Text, username : Text, role: Text }
}
-- Config
in let GithubUser : Type = {login: Text, role: TF/GithubUserRole, teams: List Text}
in let Team : Type = {name: Text, description: Text, privacy: Text}
in let Config : Type = {teams: List Team, users : List GithubUser}
in {
TF/GithubUserRole = TF/GithubUserRole,
TF/GithubMembership = TF/GithubMembership,
TF/GithubTeam = TF/GithubTeam,
TF/GithubTeamMembership = TF/GithubTeamMembership,
GithubUser = GithubUser,
Team = Team,
Config = Config
}