| Safe Haskell | Safe-Infered |
|---|
Ganeti.Hypervisor.Xen.Types
Description
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.
Constructors
| LCList [LispConfig] | |
| LCString String | |
| LCDouble Double |
Instances
| Eq LispConfig | |
| Show LispConfig | |
| Arbitrary LispConfig | Arbitrary instance for |
| FromLispConfig [LispConfig] | Instance of FromLispConfig for [LispConfig] |
Data type representing a Xen Domain.
Constructors
| Domain | |
Fields
| |
class FromLispConfig a whereSource
Class representing all the types that can be extracted from LispConfig.
Methods
fromLispConfig :: LispConfig -> Result aSource
Instances
| 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
Constructors
| UptimeInfo | |
Fields
| |
Instances
| Eq UptimeInfo | |
| Show UptimeInfo | |
| Arbitrary UptimeInfo | Generates an arbitrary |
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 | |
| Show ActualState | |
| JSON ActualState |