-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathinterface.go
56 lines (43 loc) · 1.6 KB
/
interface.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
package definitions
type Config struct {
// Services is a map of ServiceName : ServiceDefinition
Services map[string]ServiceDefinition
}
type ServiceDefinition struct {
// APIVersions is a map of ApiVersion : ApiVersionDefinition
ApiVersions map[string]ApiVersionDefinition
// TerraformPackageName is the name of the associated Service Package within Terraform
TerraformPackageName string
}
type ApiVersionDefinition struct {
// Packages is a map of ResourceName : PackageDefinition
Packages map[string]PackageDefinition
}
type PackageDefinition struct {
// Definitions is a map of ResourceType : ResourceDefinition
Definitions map[string]ResourceDefinition
}
type ResourceDefinition struct {
// ID is the Resource ID which defines this Resource
ID string
// Name is the human-friendly/marketing name for this Resource
Name string
// WebsiteSubcategory is the name of the subcategory which this Resource should appear under on the website
WebsiteSubcategory string
// Description is the description for this Resource
Description string
// TestData contains specific values for the tests of this resource
TestData ResourceTestDataDefinition
}
type ResourceTestDataDefinition struct {
// BasicVariables contains key value pairs of field to test value for different variable types
BasicVariables VariablesDefinition
// CompleteVariables contains key value pairs of field to test value for different variable types
CompleteVariables VariablesDefinition
}
type VariablesDefinition struct {
Bools map[string]bool
Integers map[string]int64
Lists map[string][]string
Strings map[string]string
}