...
1
2
3
4 package types
5
6 type Cloud string
7
8 const GKE Cloud = "gke"
9
10
11 type IAMPolicyGeneratorArgs struct {
12
13 Cloud `json:"cloud" yaml:"cloud"`
14
15
16 KubernetesService `json:"kubernetesService" yaml:"kubernetesService"`
17
18
19 ServiceAccount `json:"serviceAccount" yaml:"serviceAccount"`
20 }
21
22 type KubernetesService struct {
23
24 Name string `json:"name" yaml:"name"`
25
26
27 Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
28 }
29
30 type ServiceAccount struct {
31
32 Name string `json:"name" yaml:"name"`
33
34
35 ProjectId string `json:"projectId" yaml:"projectId"`
36 }
37
View as plain text