Added node properties
This commit is contained in:
Родитель
b06b1ffca1
Коммит
884c9c4d3e
2
.compute
2
.compute
|
@ -1 +1 @@
|
|||
cat ../keep/test.txt
|
||||
cat ~/.snakepit/cert.pem
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
cat ~/.snakepit/key.pem
|
|
@ -235,6 +235,11 @@ const jobStateNames = [
|
|||
'ARC'
|
||||
]
|
||||
|
||||
const nodeStateNames = [
|
||||
'OFFLINE',
|
||||
'ONLINE'
|
||||
]
|
||||
|
||||
const indent = ' '
|
||||
const entityUser = 'user:<username>'
|
||||
const entityNode = 'node:<node name>'
|
||||
|
@ -253,6 +258,8 @@ const entityDescriptors = {
|
|||
'node': {
|
||||
'id': 'Node name',
|
||||
'address': 'Address',
|
||||
'state': (o, v) => ['State', nodeStateNames[v]],
|
||||
'since': 'Since',
|
||||
'port': 'Port',
|
||||
'user': 'Remote user',
|
||||
'resources': (o, v) => v && [
|
||||
|
|
Загрузка…
Ссылка в новой задаче