summaryrefslogtreecommitdiffstats
path: root/lvm2-controller.lua
blob: cda4d1612bfc5f46da5fa3454616a7b2cd42f439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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