forked from kyma-project/kyma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gqlgen.yml
155 lines (150 loc) · 4.91 KB
/
gqlgen.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
schema: internal/gqlschema/*.graphql
# Let gqlgen know where to put the generated server
exec:
filename: internal/gqlschema/schema_gen.go
package: gqlschema
# Let gqlgen know where to the generated models (if any)
model:
filename: internal/gqlschema/models_gen.go
package: gqlschema
resolver:
layout: follow-schema
dir: internal/domain
package: domain
# Optional turns on binding to field names by tag provided
struct_tag: json
# Tell gqlgen about any existing models you want to reuse for
# graphql. These normally come from the db or a remote api.
models:
JSON:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.JSON"
Labels:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.Labels"
Timestamp:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.Timestamp"
Settings:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.Settings"
ApplicationMappingService:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.ApplicationMappingService"
AssetGroup:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.AssetGroup"
fields:
assets:
resolver: true
ClusterAssetGroup:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.ClusterAssetGroup"
fields:
assets:
resolver: true
Asset:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.Asset"
fields:
files:
resolver: true
ClusterAsset:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.ClusterAsset"
fields:
files:
resolver: true
ServiceInstance:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.ServiceInstance"
fields:
bindable:
resolver: true
serviceBindings:
resolver: true
serviceBindingUsages:
resolver: true
servicePlan:
resolver: true
serviceClass:
resolver: true
clusterServicePlan:
resolver: true
clusterServiceClass:
resolver: true
ServiceClass:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.ServiceClass"
fields:
plans:
resolver: true
instances:
resolver: true
activated:
resolver: true
clusterAssetGroup:
resolver: true
assetGroup:
resolver: true
ClusterServiceClass:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.ClusterServiceClass"
fields:
plans:
resolver: true
instances:
resolver: true
activated:
resolver: true
clusterAssetGroup:
resolver: true
ServicePlan:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.ServicePlan"
fields:
clusterAssetGroup:
resolver: true
assetGroup:
resolver: true
ClusterServicePlan:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.ClusterServicePlan"
fields:
clusterAssetGroup:
resolver: true
Application:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.Application"
fields:
enabledInNamespaces:
resolver: true
enabledMappingServices:
resolver: true
status:
resolver: true
ServiceBinding:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.ServiceBinding"
fields:
secret:
resolver: true
ServiceBindingUsage:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.ServiceBindingUsage"
fields:
serviceBinding:
resolver: true
Deployment:
fields:
boundServiceInstanceNames:
resolver: true
DeploymentStatus:
EventActivation:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.EventActivation"
fields:
events:
resolver: true
Namespace:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.Namespace"
fields:
applications:
resolver: true
deployments:
resolver: true
pods:
resolver: true
NamespaceListItem:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.NamespaceListItem"
fields:
applicationsCount:
resolver: true
podsCount:
resolver: true
healthyPodsCount:
resolver: true
APIRuleAccessStrategyInput:
model: "github.com/kyma-project/kyma/components/console-backend-service/internal/gqlschema.APIRuleAccessStrategyInput"