Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 #
Data type representing configuration data as produced by the
xl list --long
command.
Constructors
LCList [LispConfig] | |
LCString String | |
LCDouble Double |
Instances
Show LispConfig # | |
Defined in Ganeti.Hypervisor.Xen.Types Methods showsPrec :: Int -> LispConfig -> ShowS show :: LispConfig -> String showList :: [LispConfig] -> ShowS | |
Eq LispConfig # | |
Defined in Ganeti.Hypervisor.Xen.Types | |
FromLispConfig [LispConfig] # | Instance of FromLispConfig for [LispConfig] |
Defined in Ganeti.Hypervisor.Xen.Types Methods fromLispConfig :: LispConfig -> Result [LispConfig] # |
Data type representing a Xen Domain.
Constructors
Domain | |
Fields
|
class FromLispConfig a where #
Class representing all the types that can be extracted from LispConfig.
Methods
fromLispConfig :: LispConfig -> Result a #
Instances
FromLispConfig String # | Instance of FromLispConfig for String |
Defined in Ganeti.Hypervisor.Xen.Types Methods fromLispConfig :: LispConfig -> Result String # | |
FromLispConfig Double # | Instance of FromLispConfig for Double. |
Defined in Ganeti.Hypervisor.Xen.Types Methods fromLispConfig :: LispConfig -> Result Double # | |
FromLispConfig Int # | Instance of FromLispConfig for Int. |
Defined in Ganeti.Hypervisor.Xen.Types Methods fromLispConfig :: LispConfig -> Result Int # | |
FromLispConfig [LispConfig] # | Instance of FromLispConfig for [LispConfig] |
Defined in Ganeti.Hypervisor.Xen.Types Methods fromLispConfig :: LispConfig -> Result [LispConfig] # |
data UptimeInfo #
Constructors
UptimeInfo | |
Fields
|
Instances
Show UptimeInfo # | |
Defined in Ganeti.Hypervisor.Xen.Types Methods showsPrec :: Int -> UptimeInfo -> ShowS show :: UptimeInfo -> String showList :: [UptimeInfo] -> ShowS | |
Eq UptimeInfo # | |
Defined in Ganeti.Hypervisor.Xen.Types |
data ActualState #
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
Show ActualState # | |
Defined in Ganeti.Hypervisor.Xen.Types Methods showsPrec :: Int -> ActualState -> ShowS show :: ActualState -> String showList :: [ActualState] -> ShowS | |
Eq ActualState # | |
Defined in Ganeti.Hypervisor.Xen.Types | |
JSON ActualState # | |
Defined in Ganeti.Hypervisor.Xen.Types Methods readJSON :: JSValue -> Result ActualState showJSON :: ActualState -> JSValue readJSONs :: JSValue -> Result [ActualState] showJSONs :: [ActualState] -> JSValue |