diff options
Diffstat (limited to 'clamav-controller.lua')
-rw-r--r-- | clamav-controller.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/clamav-controller.lua b/clamav-controller.lua new file mode 100644 index 0000000..20baa25 --- /dev/null +++ b/clamav-controller.lua @@ -0,0 +1,22 @@ +module(..., package.seeall) + +-- Load libraries +require("controllerfunctions") + +default_action = "status" + +function status(self) + return self.model.getstatus() +end + +function startstop(self) + return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.getstatus, self.clientdata) +end + +function details(self) + return self.model.getstatusdetails() +end + +function expert(self) + return controllerfunctions.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit ClamAV Config", "Configuration Set") +end |