forked from soajs/soajs.golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
provision.go
74 lines (65 loc) · 3.17 KB
/
provision.go
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
package soajsGo
type Tenant struct {
Id string `json:"id"`
Code string `json:"code"`
Locked bool `json:"locked"`
Key Key `json:"key"`
Roaming interface{} `json:"roaming,omitempty"` //TODO implement struct
Application Application `json:"application,omitempty"`
}
type KeyData struct {
Config map[string]interface{} `json:"config"`
IKey string `json:"iKey"`
EKey string `json:"eKey"`
}
type Key struct {
IKey string `json:"iKey"`
EKey string `json:"eKey"`
}
type Application struct {
Product string `json:"product"`
Package string `json:"package"`
AppId string `json:"appId"`
Acl map[string]interface{} `json:"acl"`
Acl_all_env map[string]interface{} `json:"acl_all_env"`
Package_acl map[string]interface{} `json:"package_acl"`
Package_acl_all_env map[string]interface{} `json:"package_acl_all_env"`
}
type Package struct {
Acl map[string]interface{} `json:"acl"`
Acl_all_env map[string]interface{} `json:"acl_all_env"`
}
type Awareness struct {
Host string `json:"host"`
Port int `json:"port"`
}
type Urac struct {
Id string `json:"_id"`
Username string `json:"username"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Email string `json:"email"`
Groups []string `json:"groups"`
Tenant struct {
ID string `json:"id"`
Code string `json:"code"`
} `json:"tenant"`
Profile interface{} `json:"profile"`
Acl interface{} `json:"acl"`
AclAllEnv interface{} `json:"acl_AllEnv"`
}
type Param struct {
Urac_Profile bool `json:"urac_profile"`
Urac_ACL bool `json:"urac_ACL"`
}
type SOAJSData struct {
Tenant Tenant `json:"tenant"`
Key KeyData `json:"key"`
Application Application `json:"application"`
Package Package `json:"package"`
Device string `json:"device"`
Geo map[string]string `json:"geo"`
Urac Urac `json:"urac,omitempty"`
Awareness Awareness `json:"awareness"`
Param Param `json:"param"`
}