Safe Haskell | Safe-Infered |
---|
Data types for Xen-specific hypervisor functionalities.
- 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 |
Eq LispConfig | |
Show LispConfig | |
Arbitrary LispConfig | Arbitrary instance for |
FromLispConfig [LispConfig] | Instance of FromLispConfig for [LispConfig] |
Data type representing a Xen Domain.
Domain | |
|
class FromLispConfig a whereSource
Class representing all the types that can be extracted from LispConfig.
fromLispConfig :: LispConfig -> Result aSource
FromLispConfig Double | Instance of FromLispConfig for Double. |
FromLispConfig Int | Instance of FromLispConfig for Int. |
FromLispConfig String | Instance of FromLispConfig for String |
FromLispConfig [LispConfig] | Instance of FromLispConfig for [LispConfig] |
data UptimeInfo Source
UptimeInfo | |
|
Eq UptimeInfo | |
Show UptimeInfo | |
Arbitrary UptimeInfo | Generates an arbitrary |
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. |
Eq ActualState | |
Show ActualState | |
JSON ActualState |