ganeti

Safe HaskellSafe-Infered

Ganeti.Hypervisor.Xen.Types

Description

Data types for Xen-specific hypervisor functionalities.

Synopsis

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 LispConfig using genConfig.

FromLispConfig [LispConfig]

Instance of FromLispConfig for [LispConfig]

data Domain Source

Data type representing a Xen Domain.

Constructors

Domain 

Fields

domId :: Int
 
domName :: String
 
domCpuTime :: Double
 
domState :: ActualState
 
domIsHung :: Maybe Bool
 

Instances

Eq Domain 
Show Domain 

class FromLispConfig a whereSource

Class representing all the types that can be extracted from LispConfig.

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

uInfoName :: String
 
uInfoID :: Int
 
uInfoUptime :: String
 

Instances

Eq UptimeInfo 
Show UptimeInfo 
Arbitrary UptimeInfo

Generates an arbitrary xm uptime output line.

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