@tablecraft-app/plugin-etcd 0.0.0-stage → 1.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,29 @@
1
1
  {
2
2
  "name": "@tablecraft-app/plugin-etcd",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.18.2",
4
+ "description": "The etcd datasource plugin for TableCraft, downloaded by the app when a data source needs it.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "index.js",
8
+ "files": [
9
+ "index.js",
10
+ "table-craft-plugin.json"
11
+ ],
12
+ "keywords": [
13
+ "table-craft-plugin",
14
+ "tablecraft",
15
+ "etcd"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/tranphucbol/table-craft.git",
20
+ "directory": "plugins/etcd"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "tableCraft": {
26
+ "id": "etcd",
27
+ "apiVersion": "1.8.0"
28
+ }
29
+ }
@@ -0,0 +1,286 @@
1
+ {
2
+ "id": "etcd",
3
+ "name": "etcd",
4
+ "version": "1.18.2",
5
+ "apiVersion": "1.8.0",
6
+ "entry": "index.js",
7
+ "capabilities": [
8
+ "commands",
9
+ "keepAlive",
10
+ "keyValue",
11
+ "nodes",
12
+ "serverInfo",
13
+ "revisions",
14
+ "watch",
15
+ "leases",
16
+ "access",
17
+ "members",
18
+ "maintenance",
19
+ "coordination",
20
+ "bulkTransfer"
21
+ ],
22
+ "highlight": "etcd",
23
+ "brands": [
24
+ {
25
+ "id": "etcd",
26
+ "name": "etcd"
27
+ }
28
+ ],
29
+ "connection": {
30
+ "fields": [
31
+ {
32
+ "key": "host",
33
+ "label": "Host",
34
+ "kind": "text",
35
+ "default": "localhost",
36
+ "required": true
37
+ },
38
+ {
39
+ "key": "port",
40
+ "label": "Port",
41
+ "kind": "number",
42
+ "default": 2379,
43
+ "required": true
44
+ },
45
+ {
46
+ "key": "user",
47
+ "label": "Username",
48
+ "kind": "text"
49
+ },
50
+ {
51
+ "key": "password",
52
+ "label": "Password",
53
+ "kind": "password",
54
+ "secret": true
55
+ },
56
+ {
57
+ "key": "endpoints",
58
+ "label": "Endpoints (host:port, comma-separated)",
59
+ "kind": "text",
60
+ "group": "advanced"
61
+ },
62
+ {
63
+ "key": "namespace",
64
+ "label": "Namespace prefix",
65
+ "kind": "text",
66
+ "group": "advanced"
67
+ },
68
+ {
69
+ "key": "namespaceEncoding",
70
+ "label": "Namespace encoding",
71
+ "kind": "select",
72
+ "default": "utf8",
73
+ "group": "advanced",
74
+ "options": [
75
+ {
76
+ "value": "utf8",
77
+ "label": "UTF-8"
78
+ },
79
+ {
80
+ "value": "base64",
81
+ "label": "Base64 (exact bytes)"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "key": "authMode",
87
+ "label": "Authentication",
88
+ "kind": "select",
89
+ "default": "auto",
90
+ "group": "advanced",
91
+ "options": [
92
+ {
93
+ "value": "auto",
94
+ "label": "Automatic"
95
+ },
96
+ {
97
+ "value": "none",
98
+ "label": "None"
99
+ },
100
+ {
101
+ "value": "password",
102
+ "label": "Username and password"
103
+ },
104
+ {
105
+ "value": "clientCN",
106
+ "label": "Client certificate CN"
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "key": "serverName",
112
+ "label": "TLS server name (SNI)",
113
+ "kind": "text",
114
+ "group": "advanced"
115
+ },
116
+ {
117
+ "key": "requestTimeout",
118
+ "label": "Request timeout (s)",
119
+ "kind": "number",
120
+ "default": 10,
121
+ "group": "advanced"
122
+ },
123
+ {
124
+ "key": "maxRequestBytes",
125
+ "label": "Max request bytes",
126
+ "kind": "number",
127
+ "default": 1572864,
128
+ "group": "advanced"
129
+ },
130
+ {
131
+ "key": "readMode",
132
+ "label": "Default read consistency",
133
+ "kind": "select",
134
+ "default": "linearizable",
135
+ "group": "advanced",
136
+ "options": [
137
+ {
138
+ "value": "linearizable",
139
+ "label": "Linearizable"
140
+ },
141
+ {
142
+ "value": "serializable",
143
+ "label": "Serializable (may be stale)"
144
+ }
145
+ ]
146
+ },
147
+ {
148
+ "key": "lockPrefix",
149
+ "label": "Lock inspection prefix",
150
+ "kind": "text",
151
+ "default": "/locks/",
152
+ "group": "advanced"
153
+ },
154
+ {
155
+ "key": "electionPrefix",
156
+ "label": "Election inspection prefix",
157
+ "kind": "text",
158
+ "default": "/elections/",
159
+ "group": "advanced"
160
+ },
161
+ {
162
+ "key": "autoSyncInterval",
163
+ "label": "Configured endpoint health refresh (s; 0 disables)",
164
+ "kind": "number",
165
+ "default": 0,
166
+ "group": "advanced"
167
+ },
168
+ {
169
+ "key": "tlsMode",
170
+ "label": "TLS mode",
171
+ "kind": "select",
172
+ "default": "disable",
173
+ "group": "advanced",
174
+ "options": [
175
+ {
176
+ "value": "disable",
177
+ "label": "Disable"
178
+ },
179
+ {
180
+ "value": "require",
181
+ "label": "Require"
182
+ },
183
+ {
184
+ "value": "verify-ca",
185
+ "label": "Verify CA"
186
+ },
187
+ {
188
+ "value": "verify-full",
189
+ "label": "Verify full"
190
+ }
191
+ ]
192
+ },
193
+ {
194
+ "key": "tlsCa",
195
+ "label": "CA certificate",
196
+ "kind": "file",
197
+ "group": "advanced"
198
+ },
199
+ {
200
+ "key": "tlsCert",
201
+ "label": "Client certificate",
202
+ "kind": "file",
203
+ "group": "advanced"
204
+ },
205
+ {
206
+ "key": "tlsKey",
207
+ "label": "Client key",
208
+ "kind": "file",
209
+ "group": "advanced"
210
+ },
211
+ {
212
+ "key": "tlsKeyPassphrase",
213
+ "label": "Client key passphrase",
214
+ "kind": "password",
215
+ "secret": true,
216
+ "group": "advanced"
217
+ },
218
+ {
219
+ "key": "keyDelimiter",
220
+ "label": "Key delimiter",
221
+ "kind": "text",
222
+ "default": "/",
223
+ "group": "advanced"
224
+ },
225
+ {
226
+ "key": "scanBatch",
227
+ "label": "Scan batch",
228
+ "kind": "number",
229
+ "default": 1000,
230
+ "group": "advanced"
231
+ },
232
+ {
233
+ "key": "connectTimeout",
234
+ "label": "Connect timeout (s)",
235
+ "kind": "number",
236
+ "default": 10,
237
+ "group": "advanced"
238
+ },
239
+ {
240
+ "key": "maxMessageMb",
241
+ "label": "Max message size (MiB)",
242
+ "kind": "number",
243
+ "default": 16,
244
+ "group": "advanced"
245
+ }
246
+ ],
247
+ "url": {
248
+ "schemes": [
249
+ "etcd",
250
+ "etcds"
251
+ ],
252
+ "form": "server",
253
+ "parts": {
254
+ "host": "host",
255
+ "port": "port",
256
+ "user": "user",
257
+ "password": "password"
258
+ },
259
+ "params": [],
260
+ "sets": {
261
+ "etcd": {
262
+ "tlsMode": "disable"
263
+ },
264
+ "etcds": {
265
+ "tlsMode": "require"
266
+ }
267
+ }
268
+ },
269
+ "network": {
270
+ "host": "host",
271
+ "port": "port",
272
+ "connectTimeout": "connectTimeout"
273
+ },
274
+ "tls": {
275
+ "mode": "tlsMode",
276
+ "verifyModes": [
277
+ "verify-ca",
278
+ "verify-full"
279
+ ],
280
+ "caFile": "tlsCa",
281
+ "certFile": "tlsCert",
282
+ "keyFile": "tlsKey",
283
+ "keyPassphrase": "tlsKeyPassphrase"
284
+ }
285
+ }
286
+ }