@tablecraft-app/plugin-redis 0.0.0-stage → 1.3.0
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/LICENSE +21 -0
- package/README.md +9 -2
- package/index.js +55615 -0
- package/package.json +27 -4
- package/table-craft-plugin.json +203 -0
package/package.json
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tablecraft-app/plugin-redis",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "The Redis 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
|
+
"redis"
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/tranphucbol/table-craft.git",
|
|
20
|
+
"directory": "plugins/redis"
|
|
21
|
+
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"tableCraft": {
|
|
26
|
+
"id": "redis",
|
|
27
|
+
"apiVersion": "1.2.0"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "redis",
|
|
3
|
+
"name": "Redis",
|
|
4
|
+
"version": "1.3.0",
|
|
5
|
+
"apiVersion": "1.2.0",
|
|
6
|
+
"entry": "index.js",
|
|
7
|
+
"capabilities": [
|
|
8
|
+
"commands",
|
|
9
|
+
"cancel",
|
|
10
|
+
"keepAlive",
|
|
11
|
+
"keyValue",
|
|
12
|
+
"nodes",
|
|
13
|
+
"serverInfo",
|
|
14
|
+
"sessions"
|
|
15
|
+
],
|
|
16
|
+
"highlight": "redis",
|
|
17
|
+
"connection": {
|
|
18
|
+
"fields": [
|
|
19
|
+
{
|
|
20
|
+
"key": "mode",
|
|
21
|
+
"label": "Mode",
|
|
22
|
+
"kind": "select",
|
|
23
|
+
"default": "standalone",
|
|
24
|
+
"required": true,
|
|
25
|
+
"options": [
|
|
26
|
+
{
|
|
27
|
+
"value": "standalone",
|
|
28
|
+
"label": "Standalone"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"value": "cluster",
|
|
32
|
+
"label": "Cluster"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"key": "host",
|
|
38
|
+
"label": "Host",
|
|
39
|
+
"kind": "text",
|
|
40
|
+
"default": "localhost",
|
|
41
|
+
"required": true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"key": "port",
|
|
45
|
+
"label": "Port",
|
|
46
|
+
"kind": "number",
|
|
47
|
+
"default": 6379,
|
|
48
|
+
"required": true
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"key": "user",
|
|
52
|
+
"label": "Username",
|
|
53
|
+
"kind": "text"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"key": "password",
|
|
57
|
+
"label": "Password",
|
|
58
|
+
"kind": "password",
|
|
59
|
+
"secret": true
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"key": "database",
|
|
63
|
+
"label": "Database",
|
|
64
|
+
"kind": "number",
|
|
65
|
+
"default": 0,
|
|
66
|
+
"required": true,
|
|
67
|
+
"visibleWhen": {
|
|
68
|
+
"key": "mode",
|
|
69
|
+
"equals": "standalone"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"key": "nodeAddressMap",
|
|
74
|
+
"label": "Node address map",
|
|
75
|
+
"kind": "text",
|
|
76
|
+
"group": "advanced",
|
|
77
|
+
"placeholder": "10.0.1.5:6379=127.0.0.1:7001, …",
|
|
78
|
+
"visibleWhen": {
|
|
79
|
+
"key": "mode",
|
|
80
|
+
"equals": "cluster"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"key": "tlsMode",
|
|
85
|
+
"label": "TLS mode",
|
|
86
|
+
"kind": "select",
|
|
87
|
+
"default": "disable",
|
|
88
|
+
"group": "advanced",
|
|
89
|
+
"options": [
|
|
90
|
+
{
|
|
91
|
+
"value": "disable",
|
|
92
|
+
"label": "Disable"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"value": "require",
|
|
96
|
+
"label": "Require"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"value": "verify-ca",
|
|
100
|
+
"label": "Verify CA"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"value": "verify-full",
|
|
104
|
+
"label": "Verify full"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"key": "tlsCa",
|
|
110
|
+
"label": "CA certificate",
|
|
111
|
+
"kind": "file",
|
|
112
|
+
"group": "advanced"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"key": "tlsCert",
|
|
116
|
+
"label": "Client certificate",
|
|
117
|
+
"kind": "file",
|
|
118
|
+
"group": "advanced"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"key": "tlsKey",
|
|
122
|
+
"label": "Client key",
|
|
123
|
+
"kind": "file",
|
|
124
|
+
"group": "advanced"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"key": "tlsKeyPassphrase",
|
|
128
|
+
"label": "Client key passphrase",
|
|
129
|
+
"kind": "password",
|
|
130
|
+
"secret": true,
|
|
131
|
+
"group": "advanced"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"key": "clientName",
|
|
135
|
+
"label": "Client name",
|
|
136
|
+
"kind": "text",
|
|
137
|
+
"default": "TableCraft",
|
|
138
|
+
"group": "advanced"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"key": "keyDelimiter",
|
|
142
|
+
"label": "Key delimiter",
|
|
143
|
+
"kind": "text",
|
|
144
|
+
"default": ":",
|
|
145
|
+
"group": "advanced"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"key": "scanBatch",
|
|
149
|
+
"label": "SCAN batch",
|
|
150
|
+
"kind": "number",
|
|
151
|
+
"default": 1000,
|
|
152
|
+
"group": "advanced"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"key": "connectTimeout",
|
|
156
|
+
"label": "Connect timeout (s)",
|
|
157
|
+
"kind": "number",
|
|
158
|
+
"default": 10,
|
|
159
|
+
"group": "advanced"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"url": {
|
|
163
|
+
"schemes": [
|
|
164
|
+
"redis",
|
|
165
|
+
"rediss"
|
|
166
|
+
],
|
|
167
|
+
"form": "server",
|
|
168
|
+
"parts": {
|
|
169
|
+
"host": "host",
|
|
170
|
+
"port": "port",
|
|
171
|
+
"database": "database",
|
|
172
|
+
"user": "user",
|
|
173
|
+
"password": "password"
|
|
174
|
+
},
|
|
175
|
+
"params": [],
|
|
176
|
+
"sets": {
|
|
177
|
+
"redis": {
|
|
178
|
+
"mode": "standalone"
|
|
179
|
+
},
|
|
180
|
+
"rediss": {
|
|
181
|
+
"mode": "standalone",
|
|
182
|
+
"tlsMode": "require"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"network": {
|
|
187
|
+
"host": "host",
|
|
188
|
+
"port": "port",
|
|
189
|
+
"connectTimeout": "connectTimeout"
|
|
190
|
+
},
|
|
191
|
+
"tls": {
|
|
192
|
+
"mode": "tlsMode",
|
|
193
|
+
"verifyModes": [
|
|
194
|
+
"verify-ca",
|
|
195
|
+
"verify-full"
|
|
196
|
+
],
|
|
197
|
+
"caFile": "tlsCa",
|
|
198
|
+
"certFile": "tlsCert",
|
|
199
|
+
"keyFile": "tlsKey",
|
|
200
|
+
"keyPassphrase": "tlsKeyPassphrase"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|