Initial work to implement user script templates

This commit is contained in:
Simone Mainardi 2021-02-18 18:59:45 +01:00
parent ee8ffaca7d
commit 80ae202ad1
8 changed files with 420 additions and 8 deletions

View file

@ -0,0 +1,36 @@
--
-- (C) 2013-21 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
-- Import the classes library.
local classes = require "classes"
-- ##############################################
local user_script_template = classes.class()
-- ##############################################
function user_script_template:init()
end
-- ##############################################
function user_script_template:parseConfig(script, conf)
return true, conf
end
-- ##############################################
function user_script_template:describeConfig(script, hooks_conf)
return ''
end
-- ##############################################
return user_script_template
-- ##############################################