ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ganeti.JQueue.Objects

Description

Objects in the job queue.

Synopsis

Documentation

type Timestamp = (Int, Int) #

The ganeti queue timestamp type. It represents the time as the pair of seconds since the epoch and microseconds since the beginning of the second.

data InputOpCode #

An input opcode.

Constructors

ValidOpCode MetaOpCode

OpCode was parsed successfully

InvalidOpCode JSValue

Invalid opcode

Instances

Instances details
Show InputOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

showsPrec :: Int -> InputOpCode -> ShowS

show :: InputOpCode -> String

showList :: [InputOpCode] -> ShowS

Eq InputOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

(==) :: InputOpCode -> InputOpCode -> Bool

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

Ord InputOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

JSON InputOpCode #

JSON instance for InputOpCode, trying to parse it and if failing, keeping the original JSValue.

Instance details

Defined in Ganeti.JQueue.Objects

Methods

readJSON :: JSValue -> Result InputOpCode

showJSON :: InputOpCode -> JSValue

readJSONs :: JSValue -> Result [InputOpCode]

showJSONs :: [InputOpCode] -> JSValue

data QueuedOpCode #

Constructors

QueuedOpCode 

Fields

Instances

Instances details
Show QueuedOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

showsPrec :: Int -> QueuedOpCode -> ShowS

show :: QueuedOpCode -> String

showList :: [QueuedOpCode] -> ShowS

ArrayObject QueuedOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

toJSArray :: QueuedOpCode -> [JSValue] #

fromJSArray :: [JSValue] -> Result QueuedOpCode #

DictObject QueuedOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

toDict :: QueuedOpCode -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result QueuedOpCode #

fromDict :: [(String, JSValue)] -> Result QueuedOpCode #

Eq QueuedOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

(==) :: QueuedOpCode -> QueuedOpCode -> Bool

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

Ord QueuedOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

JSON QueuedOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

readJSON :: JSValue -> Result QueuedOpCode

showJSON :: QueuedOpCode -> JSValue

readJSONs :: JSValue -> Result [QueuedOpCode]

showJSONs :: [QueuedOpCode] -> JSValue

data QueuedJob #

Constructors

QueuedJob 

Fields

Instances

Instances details
Show QueuedJob # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

showsPrec :: Int -> QueuedJob -> ShowS

show :: QueuedJob -> String

showList :: [QueuedJob] -> ShowS

ArrayObject QueuedJob # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

toJSArray :: QueuedJob -> [JSValue] #

fromJSArray :: [JSValue] -> Result QueuedJob #

DictObject QueuedJob # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

toDict :: QueuedJob -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result QueuedJob #

fromDict :: [(String, JSValue)] -> Result QueuedJob #

Eq QueuedJob # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

(==) :: QueuedJob -> QueuedJob -> Bool

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

Ord QueuedJob # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

compare :: QueuedJob -> QueuedJob -> Ordering

(<) :: QueuedJob -> QueuedJob -> Bool

(<=) :: QueuedJob -> QueuedJob -> Bool

(>) :: QueuedJob -> QueuedJob -> Bool

(>=) :: QueuedJob -> QueuedJob -> Bool

max :: QueuedJob -> QueuedJob -> QueuedJob

min :: QueuedJob -> QueuedJob -> QueuedJob

JSON QueuedJob # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

readJSON :: JSValue -> Result QueuedJob

showJSON :: QueuedJob -> JSValue

readJSONs :: JSValue -> Result [QueuedJob]

showJSONs :: [QueuedJob] -> JSValue