, RpcCallVersion(..)
, RpcResultVersion(..)
- , StorageType(..)
, StorageField(..)
, RpcCallStorageList(..)
, RpcResultStorageList(..)
import qualified Ganeti.Constants as C
import Ganeti.Objects
import Ganeti.THH
+import Ganeti.Types
import Ganeti.Compat
-- * Base RPC functionality and types
-- Query node version.
-- Note: We can't use THH as it does not know what to do with empty dict
data RpcCallVersion = RpcCallVersion {}
- deriving (Show, Read, Eq)
+ deriving (Show, Eq)
instance J.JSON RpcCallVersion where
showJSON _ = J.JSNull
-- ** StorageList
-- | StorageList
--- Get list of storage units.
--- FIXME: This may be moved to Objects
-$(declareSADT "StorageType"
- [ ( "STLvmPv", 'C.stLvmPv )
- , ( "STFile", 'C.stFile )
- , ( "STLvmVg", 'C.stLvmVg )
- ])
-$(makeJSONInstance ''StorageType)
-- FIXME: This may be moved to Objects
$(declareSADT "StorageField"