Safe Haskell | Safe |
---|
Data types for Xen-specific hypervisor functionalities.
Synopsis
- data LispConfig
- = LCList [LispConfig]
- | LCString String
- | LCDouble Double
- data Domain = Domain {
- domId :: Int
- domName :: String
- domCpuTime :: Double
- domState :: ActualState
- domIsHung :: Maybe Bool
- class FromLispConfig a where
- fromLispConfig :: LispConfig -> Result a
- data UptimeInfo = UptimeInfo {
- uInfoName :: String
- uInfoID :: Int
- uInfoUptime :: String
- data ActualState
Documentation
data LispConfig Source #
Data type representing configuration data as produced by the
xm list --long
command.
LCList [LispConfig] | |
LCString String | |
LCDouble Double |
Instances
Eq LispConfig # | |
Defined in Ganeti.Hypervisor.Xen.Types (==) :: LispConfig -> LispConfig -> Bool (/=) :: LispConfig -> LispConfig -> Bool | |
Show LispConfig # | |
Defined in Ganeti.Hypervisor.Xen.Types showsPrec :: Int -> LispConfig -> ShowS show :: LispConfig -> String showList :: [LispConfig] -> ShowS | |
Arbitrary LispConfig | Arbitrary instance for |
Defined in Test.Ganeti.Hypervisor.Xen.XmParser arbitrary :: Gen LispConfig shrink :: LispConfig -> [LispConfig] | |
FromLispConfig [LispConfig] # | Instance of FromLispConfig for [LispConfig] |
Defined in Ganeti.Hypervisor.Xen.Types fromLispConfig :: LispConfig -> Result [LispConfig] Source # |
Data type representing a Xen Domain.
Domain | |
|
class FromLispConfig a where Source #
Class representing all the types that can be extracted from LispConfig.
fromLispConfig :: LispConfig -> Result a Source #
Instances
FromLispConfig Double # | Instance of FromLispConfig for Double. |
Defined in Ganeti.Hypervisor.Xen.Types fromLispConfig :: LispConfig -> Result Double Source # | |
FromLispConfig Int # | Instance of FromLispConfig for Int. |
Defined in Ganeti.Hypervisor.Xen.Types fromLispConfig :: LispConfig -> Result Int Source # | |
FromLispConfig String # | Instance of FromLispConfig for String |
Defined in Ganeti.Hypervisor.Xen.Types fromLispConfig :: LispConfig -> Result String Source # | |
FromLispConfig [LispConfig] # | Instance of FromLispConfig for [LispConfig] |
Defined in Ganeti.Hypervisor.Xen.Types fromLispConfig :: LispConfig -> Result [LispConfig] Source # |
data UptimeInfo Source #
UptimeInfo | |
|
Instances
Eq UptimeInfo # | |
Defined in Ganeti.Hypervisor.Xen.Types (==) :: UptimeInfo -> UptimeInfo -> Bool (/=) :: UptimeInfo -> UptimeInfo -> Bool | |
Show UptimeInfo # | |
Defined in Ganeti.Hypervisor.Xen.Types showsPrec :: Int -> UptimeInfo -> ShowS show :: UptimeInfo -> String showList :: [UptimeInfo] -> ShowS | |
Arbitrary UptimeInfo | Generates an arbitrary |
Defined in Test.Ganeti.Hypervisor.Xen.XmParser arbitrary :: Gen UptimeInfo shrink :: UptimeInfo -> [UptimeInfo] |
data ActualState Source #
ActualRunning | The instance is running |
ActualBlocked | The instance is not running or runnable |
ActualPaused | The instance has been paused |
ActualShutdown | The instance is shut down |
ActualCrashed | The instance has crashed |
ActualDying | The instance is in process of dying |
ActualHung | The instance is hung |
ActualUnknown | Unknown state. Parsing error. |
Instances
Eq ActualState # | |
Defined in Ganeti.Hypervisor.Xen.Types (==) :: ActualState -> ActualState -> Bool (/=) :: ActualState -> ActualState -> Bool | |
Show ActualState # | |
Defined in Ganeti.Hypervisor.Xen.Types showsPrec :: Int -> ActualState -> ShowS show :: ActualState -> String showList :: [ActualState] -> ShowS | |
JSON ActualState # | |
Defined in Ganeti.Hypervisor.Xen.Types readJSON :: JSValue -> Result ActualState showJSON :: ActualState -> JSValue readJSONs :: JSValue -> Result [ActualState] showJSONs :: [ActualState] -> JSValue |