/
seeding_types.go
39 lines (33 loc) · 1.25 KB
/
seeding_types.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
package dao
// type aliases to make reading easier
type (
sourceTypeSeedMap map[string]sourceTypeSeed
applicationTypeSeedMap map[string]applicationTypeSeed
superkeyMetadataSeedMap map[string]superKeySeed
appMetadataSeedMap map[string]appMetaDataSeed
)
type sourceTypeSeed struct {
Category string `json:"category"`
ProductName string `json:"product_name"`
Schema interface{} `json:"schema"`
Vendor string `json:"vendor"`
IconURL string `json:"icon_url"`
}
type applicationTypeSeed struct {
DisplayName string `json:"display_name"`
DependentApplications interface{} `json:"dependent_applications"`
SupportedSourceTypes interface{} `json:"supported_source_types"`
SupportedAuthenticationTypes interface{} `json:"supported_authentication_types"`
ResourceOwnership *string `json:"resource_ownership"`
}
type superKeySeed struct {
Steps []superKeyStep `json:"steps"`
}
type superKeyStep struct {
Step int `json:"step"`
Name string `json:"name"`
Payload interface{} `json:"payload"`
Substitutions interface{} `json:"substitutions"`
}
// it's just key values all the way down
type appMetaDataSeed map[string]map[string]string