mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-06-18 01:47:07 +08:00
mongodb plugin
This commit is contained in:
@@ -6,3 +6,5 @@ module.exports =
|
||||
set_size:
|
||||
mode: 'number'
|
||||
callback: ->
|
||||
|
||||
widget: ->
|
||||
|
||||
@@ -3,7 +3,7 @@ service = require './service'
|
||||
monitor = require './monitor'
|
||||
|
||||
module.exports =
|
||||
name: 'ssh'
|
||||
name: 'memcached'
|
||||
type: 'service'
|
||||
version: '0.1.0'
|
||||
|
||||
@@ -13,14 +13,3 @@ module.exports =
|
||||
|
||||
panel_widget:
|
||||
content: action.widget
|
||||
|
||||
static: './static'
|
||||
|
||||
inject:
|
||||
script: [
|
||||
'panel'
|
||||
]
|
||||
|
||||
resources: [
|
||||
'storage', 'transfer', 'cpu', 'memory', 'diskio'
|
||||
]
|
||||
|
||||
0
plugin/mongodb/INSTALL.md
Normal file
0
plugin/mongodb/INSTALL.md
Normal file
18
plugin/mongodb/action.coffee
Normal file
18
plugin/mongodb/action.coffee
Normal file
@@ -0,0 +1,18 @@
|
||||
module.exports =
|
||||
update_passwd:
|
||||
mode: 'passwd'
|
||||
callback: ->
|
||||
|
||||
create_db:
|
||||
mode: 'text'
|
||||
callback: ->
|
||||
|
||||
delete_db:
|
||||
mode: 'select'
|
||||
source: ->
|
||||
callback: ->
|
||||
|
||||
reset_db_permission:
|
||||
mode: 'select'
|
||||
source: ->
|
||||
callback: ->
|
||||
19
plugin/mongodb/index.coffee
Normal file
19
plugin/mongodb/index.coffee
Normal file
@@ -0,0 +1,19 @@
|
||||
action = require './action'
|
||||
service = require './service'
|
||||
monitor = require './monitor'
|
||||
|
||||
module.exports =
|
||||
name: 'mongodb'
|
||||
type: 'service'
|
||||
version: '0.1.0'
|
||||
|
||||
action: action
|
||||
service: service
|
||||
monitor: monitor
|
||||
|
||||
panel_widget:
|
||||
content: action.widget
|
||||
|
||||
resources: [
|
||||
'storage'
|
||||
]
|
||||
0
plugin/mongodb/monitor.coffee
Normal file
0
plugin/mongodb/monitor.coffee
Normal file
6
plugin/mongodb/service.coffee
Normal file
6
plugin/mongodb/service.coffee
Normal file
@@ -0,0 +1,6 @@
|
||||
module.exports =
|
||||
enable: ->
|
||||
|
||||
pause: ->
|
||||
|
||||
delete: ->
|
||||
@@ -2,3 +2,5 @@ module.exports =
|
||||
update_passwd:
|
||||
mode: 'passwd'
|
||||
callback: ->
|
||||
|
||||
widget: ->
|
||||
|
||||
@@ -11,7 +11,8 @@ module.exports =
|
||||
service: service
|
||||
monitor: monitor
|
||||
|
||||
static: './static'
|
||||
panel_widget:
|
||||
content: action.widget
|
||||
|
||||
resources: [
|
||||
'storage', 'cpu', 'memory'
|
||||
|
||||
@@ -7,7 +7,7 @@ module.exports =
|
||||
mode: 'alert'
|
||||
callback: ->
|
||||
|
||||
resetPermission:
|
||||
reset_permission:
|
||||
mode: 'alert'
|
||||
callback: ->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user