-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflows.json
311 lines (311 loc) · 9.18 KB
/
flows.json
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
[
{
"id": "18c5680886df4529",
"type": "subflow",
"name": "OSCAR Info",
"info": "\n \n<main>\n <!--Contenido fundamental de la pagina-->\n <section>\n <h2>Description</h2>\n <article>\n <h3>General</h3> \n <p> OSCAR is a framework to efficiently support on-premises FaaS (Functions as a Service)for general-purpose file-processing computing applications. It represents the porting to an on-premises scenario of the SCAR framework, which supports a High Throughput Computing Programming Model to create highly-parallel event-driven file-processing serverless applications that execute on customized runtime environments provided by Docker containers run on AWS Lambda.</p>\n <p>For more information about this platform: </p>\n <ul>\n <li>\n <a rel=\"stylesheet\" href=\"https://docs.oscar.grycap.net/\">OSCAR </a>\n </li>\n </ul>\n </article>\n <article>\n <h3>Inputs</h3> \n <p>The input variables will be the url of the OSCAR server and the authentication credentials. With these variables a get request is made to the server (GET /system/services)</p>\n <ul>\n <li>\n <a rel=\"stylesheet\" href=\"https://docs.oscar.grycap.net/api/\">Services </a>\n </li>\n </ul>\n </article>\n <article>\n <h3>Outputs</h3>\n <p>The OSCAR info node returns the information of the OSCAR platform on which it is working.The server returns in <code> msg.payload </code> a list of the services that are implemented.</p>\n </article>\n </section>\n \n</main>\n<footer>\n GRyCAP (Grupo de Grid y Computación de Altas Prestaciones) - UPV\n</footer>",
"category": "",
"in": [
{
"x": 140,
"y": 260,
"wires": [
{
"id": "ba47979fa8ed9e6f"
}
]
}
],
"out": [
{
"x": 1280,
"y": 260,
"wires": [
{
"id": "66dd8260482588b0",
"port": 0
}
]
}
],
"env": [
{
"name": "Server",
"type": "str",
"value": "",
"ui": {
"icon": "font-awesome/fa-globe",
"type": "input",
"opts": {
"types": [
"str",
"num",
"bool",
"json",
"bin"
]
}
}
},
{
"name": "User",
"type": "str",
"value": "",
"ui": {
"icon": "font-awesome/fa-user-circle-o"
}
},
{
"name": "Password",
"type": "cred",
"ui": {
"icon": "font-awesome/fa-key"
}
}
],
"meta": {
"module": "node-red-contrib-oscar-info",
"version": "1.0.0",
"author": "Vicente Rodriguez Benitez <[email protected], [email protected]>",
"desc": "OSCAR information",
"keywords": "node-red,oscar, information",
"license": "Apache-2.0"
},
"credentials": {
"Password": ""
},
"color": "#3FADB5",
"icon": "font-awesome/fa-info-circle",
"status": {
"x": 1280,
"y": 120,
"wires": [
{
"id": "aa2b0745049a4949",
"port": 0
},
{
"id": "a84ad47e452bfd1a",
"port": 0
}
]
}
},
{
"id": "3e166e2201f70924",
"type": "http request",
"z": "18c5680886df4529",
"name": "",
"method": "GET",
"ret": "txt",
"paytoqs": "ignore",
"url": "",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "basic",
"senderr": true,
"headers": [],
"x": 770,
"y": 260,
"wires": [
[
"66dd8260482588b0"
]
]
},
{
"id": "ba47979fa8ed9e6f",
"type": "change",
"z": "18c5680886df4529",
"name": "",
"rules": [
{
"t": "set",
"p": "oscar_server",
"pt": "msg",
"to": "Server",
"tot": "env"
},
{
"t": "set",
"p": "username",
"pt": "msg",
"to": "User",
"tot": "env"
},
{
"t": "set",
"p": "pass",
"pt": "msg",
"to": "Password",
"tot": "env"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 280,
"y": 260,
"wires": [
[
"faf4af791add3bb1",
"a84ad47e452bfd1a"
]
]
},
{
"id": "061e30d466c6710b",
"type": "change",
"z": "18c5680886df4529",
"name": "",
"rules": [
{
"t": "set",
"p": "headers",
"pt": "msg",
"to": "{\t \"Authorization\": 'Basic ' & $base64encode(\t payload.username & ':' & payload.password\t ) \t}",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 600,
"y": 260,
"wires": [
[
"3e166e2201f70924"
]
]
},
{
"id": "faf4af791add3bb1",
"type": "function",
"z": "18c5680886df4529",
"name": "Load Log",
"func": "var server=msg.oscar_server;\nmsg.payload={\n\"username\":msg.username,\n\"password\":msg.pass\n\n}\nmsg.url = server +\"/system/services\";\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 440,
"y": 260,
"wires": [
[
"061e30d466c6710b"
]
]
},
{
"id": "a84ad47e452bfd1a",
"type": "change",
"z": "18c5680886df4529",
"name": "Start Service",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "Processing....",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 490,
"y": 120,
"wires": [
[]
]
},
{
"id": "aa2b0745049a4949",
"type": "change",
"z": "18c5680886df4529",
"name": "End Service",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "Finished....",
"tot": "str"
},
{
"t": "set",
"p": "pass",
"pt": "msg",
"to": "",
"tot": "str"
},
{
"t": "set",
"p": "username",
"pt": "msg",
"to": "",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1130,
"y": 200,
"wires": [
[]
]
},
{
"id": "66dd8260482588b0",
"type": "change",
"z": "18c5680886df4529",
"name": "Clear data",
"rules": [
{
"t": "set",
"p": "pass",
"pt": "msg",
"to": "",
"tot": "str"
},
{
"t": "set",
"p": "username",
"pt": "msg",
"to": "",
"tot": "str"
},
{
"t": "set",
"p": "oscar_server",
"pt": "msg",
"to": "",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 950,
"y": 260,
"wires": [
[
"aa2b0745049a4949"
]
]
}
]