-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.go
120 lines (108 loc) · 1.59 KB
/
config.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
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
package resources
var loadGeneratorTypes = []string{
"AUCTION",
"MARKETING",
"COUNTER",
"TPCH",
"KEY VALUE",
}
// https://materialize.com/docs/sql/create-cluster-replica/#sizes
var replicaSizes = []string{
"3xsmall",
"2xsmall",
"xsmall",
"small",
"medium",
"large",
"xlarge",
"2xlarge",
"3xlarge",
"4xlarge",
"5xlarge",
"6xlarge",
"25cc",
"50cc",
"100cc",
"200cc",
"300cc",
"400cc",
"600cc",
"800cc",
"1200cc",
"1600cc",
"3200cc",
"6400cc",
"128C",
"256C",
"512C",
}
var saslMechanisms = []string{
"PLAIN",
"SCRAM-SHA-256",
"SCRAM-SHA-512",
}
var sourceSizes = []string{
"3xsmall",
"2xsmall",
"xsmall",
"small",
"medium",
"large",
"xlarge",
}
var strategy = []string{
"INLINE",
"ID",
"LATEST",
}
var aliases = map[string]string{
"int8": "bigint",
"bool": "boolean",
"float": "double precision",
"float8": "double precision",
"double": "double precision",
"int": "integer",
"int4": "integer",
"json": "jsonb",
"decimal": "numeric",
"real": "float4",
"int2": "smallint",
"uint": "uint4",
}
var securityProtocols = []string{
"PLAINTEXT",
"SASL_PLAINTEXT",
"SSL",
"SASL_SSL",
}
var compressionTypes = []string{
"none",
"gzip",
"snappy",
"lz4",
"ztsd",
}
var ssoConfigTypes = []string{
"saml",
"oidc",
}
var scim2ConfigSources = []string{
"okta",
"azure-ad",
"other",
}
var mysqlSSLMode = []string{
"disabled",
"required",
"verify-ca",
"verify-identity",
}
var sinkFormatCompatibilityLevels = []string{
"BACKWARD",
"BACKWARD_TRANSITIVE",
"FORWARD",
"FORWARD_TRANSITIVE",
"FULL",
"FULL_TRANSITIVE",
"NONE",
}