summaryrefslogtreecommitdiffstats
path: root/squid-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'squid-controller.lua')
-rw-r--r--squid-controller.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/squid-controller.lua b/squid-controller.lua
index a651d6c..f8e5f56 100644
--- a/squid-controller.lua
+++ b/squid-controller.lua
@@ -81,3 +81,20 @@ advanced = function( self )
return ( cfe ({ option = option, service = service }) )
end
+cfilter = function( self )
+
+ local option = { script = ENV["SCRIPT_NAME"],
+ prefix = self.conf.prefix,
+ controller = self.conf.controller,
+ action = self.conf.action,
+ extra = ""
+ }
+
+ local service = { message="", status="", config="" }
+
+ service.status = self.model.get_status()
+ service.config = self.model.get_adv_config()
+
+ return ( cfe ({ option = option, service = service }) )
+end
+