| Safe Haskell | Safe |
|---|
Ganeti.Hypervisor.Xen.Types
Description
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.
Constructors
| LCList [LispConfig] | |
| LCString String | |
| LCDouble Double |
Instances
| Eq LispConfig # | |
Defined in Ganeti.Hypervisor.Xen.Types | |
| Show LispConfig # | |
Defined in Ganeti.Hypervisor.Xen.Types Methods showsPrec :: Int -> LispConfig -> ShowS show :: LispConfig -> String showList :: [LispConfig] -> ShowS | |
| Arbitrary LispConfig | Arbitrary instance for |
Defined in Test.Ganeti.Hypervisor.Xen.XmParser | |
| FromLispConfig [LispConfig] # | Instance of FromLispConfig for [LispConfig] |
Defined in Ganeti.Hypervisor.Xen.Types Methods fromLispConfig :: LispConfig -> Result [LispConfig] Source # | |
Data type representing a Xen Domain.
Constructors
| Domain | |
Fields
| |
class FromLispConfig a where Source #
Class representing all the types that can be extracted from LispConfig.
Methods
fromLispConfig :: LispConfig -> Result a Source #
Instances
| FromLispConfig Double # | Instance of FromLispConfig for Double. |
Defined in Ganeti.Hypervisor.Xen.Types Methods fromLispConfig :: LispConfig -> Result Double Source # | |
| FromLispConfig Int # | Instance of FromLispConfig for Int. |
Defined in Ganeti.Hypervisor.Xen.Types Methods fromLispConfig :: LispConfig -> Result Int Source # | |
| FromLispConfig String # | Instance of FromLispConfig for String |
Defined in Ganeti.Hypervisor.Xen.Types Methods fromLispConfig :: LispConfig -> Result String Source # | |
| FromLispConfig [LispConfig] # | Instance of FromLispConfig for [LispConfig] |
Defined in Ganeti.Hypervisor.Xen.Types Methods fromLispConfig :: LispConfig -> Result [LispConfig] Source # | |
data UptimeInfo Source #
Constructors
| UptimeInfo | |
Fields
| |
Instances
| Eq UptimeInfo # | |
Defined in Ganeti.Hypervisor.Xen.Types | |
| Show UptimeInfo # | |
Defined in Ganeti.Hypervisor.Xen.Types Methods showsPrec :: Int -> UptimeInfo -> ShowS show :: UptimeInfo -> String showList :: [UptimeInfo] -> ShowS | |
| Arbitrary UptimeInfo | Generates an arbitrary |
Defined in Test.Ganeti.Hypervisor.Xen.XmParser | |
data ActualState Source #
Constructors
| 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 | |
| Show ActualState # | |
Defined in Ganeti.Hypervisor.Xen.Types Methods showsPrec :: Int -> ActualState -> ShowS show :: ActualState -> String showList :: [ActualState] -> ShowS | |
| JSON ActualState # | |
Defined in Ganeti.Hypervisor.Xen.Types Methods readJSON :: JSValue -> Result ActualState showJSON :: ActualState -> JSValue readJSONs :: JSValue -> Result [ActualState] showJSONs :: [ActualState] -> JSValue | |