ganeti
Safe HaskellSafe

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

Instances details
Eq LispConfig # 
Instance details

Defined in Ganeti.Hypervisor.Xen.Types

Methods

(==) :: LispConfig -> LispConfig -> Bool

(/=) :: LispConfig -> LispConfig -> Bool

Show LispConfig # 
Instance details

Defined in Ganeti.Hypervisor.Xen.Types

Methods

showsPrec :: Int -> LispConfig -> ShowS

show :: LispConfig -> String

showList :: [LispConfig] -> ShowS

Arbitrary LispConfig

Arbitrary instance for LispConfig using genConfig.

Instance details

Defined in Test.Ganeti.Hypervisor.Xen.XmParser

FromLispConfig [LispConfig] #

Instance of FromLispConfig for [LispConfig]

Instance details

Defined in Ganeti.Hypervisor.Xen.Types

data Domain Source #

Data type representing a Xen Domain.

Constructors

Domain 

Fields

Instances

Instances details
Eq Domain # 
Instance details

Defined in Ganeti.Hypervisor.Xen.Types

Methods

(==) :: Domain -> Domain -> Bool

(/=) :: Domain -> Domain -> Bool

Show Domain # 
Instance details

Defined in Ganeti.Hypervisor.Xen.Types

Methods

showsPrec :: Int -> Domain -> ShowS

show :: Domain -> String

showList :: [Domain] -> ShowS

class FromLispConfig a where Source #

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

Instances

Instances details
FromLispConfig Double #

Instance of FromLispConfig for Double.

Instance details

Defined in Ganeti.Hypervisor.Xen.Types

FromLispConfig Int #

Instance of FromLispConfig for Int.

Instance details

Defined in Ganeti.Hypervisor.Xen.Types

FromLispConfig String #

Instance of FromLispConfig for String

Instance details

Defined in Ganeti.Hypervisor.Xen.Types

FromLispConfig [LispConfig] #

Instance of FromLispConfig for [LispConfig]

Instance details

Defined in Ganeti.Hypervisor.Xen.Types

data UptimeInfo Source #

Constructors

UptimeInfo 

Fields

Instances

Instances details
Eq UptimeInfo # 
Instance details

Defined in Ganeti.Hypervisor.Xen.Types

Methods

(==) :: UptimeInfo -> UptimeInfo -> Bool

(/=) :: UptimeInfo -> UptimeInfo -> Bool

Show UptimeInfo # 
Instance details

Defined in Ganeti.Hypervisor.Xen.Types

Methods

showsPrec :: Int -> UptimeInfo -> ShowS

show :: UptimeInfo -> String

showList :: [UptimeInfo] -> ShowS

Arbitrary UptimeInfo

Generates an arbitrary xm uptime output line.

Instance details

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

Instances details
Eq ActualState # 
Instance details

Defined in Ganeti.Hypervisor.Xen.Types

Methods

(==) :: ActualState -> ActualState -> Bool

(/=) :: ActualState -> ActualState -> Bool

Show ActualState # 
Instance details

Defined in Ganeti.Hypervisor.Xen.Types

Methods

showsPrec :: Int -> ActualState -> ShowS

show :: ActualState -> String

showList :: [ActualState] -> ShowS

JSON ActualState # 
Instance details

Defined in Ganeti.Hypervisor.Xen.Types

Methods

readJSON :: JSValue -> Result ActualState

showJSON :: ActualState -> JSValue

readJSONs :: JSValue -> Result [ActualState]

showJSONs :: [ActualState] -> JSValue