ganeti
Safe HaskellNone

Ganeti.JQueue.Objects

Description

Objects in the job queue.

Synopsis

Documentation

type Timestamp = (Int, Int) Source #

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 Source #

An input opcode.

Constructors

ValidOpCode MetaOpCode

OpCode was parsed successfully

InvalidOpCode JSValue

Invalid opcode

Instances

Instances details
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

Show InputOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

showsPrec :: Int -> InputOpCode -> ShowS

show :: InputOpCode -> String

showList :: [InputOpCode] -> ShowS

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 Source #

Constructors

QueuedOpCode 

Fields

Instances

Instances details
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

Show QueuedOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

showsPrec :: Int -> QueuedOpCode -> ShowS

show :: QueuedOpCode -> String

showList :: [QueuedOpCode] -> ShowS

JSON QueuedOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

readJSON :: JSValue -> Result QueuedOpCode

showJSON :: QueuedOpCode -> JSValue

readJSONs :: JSValue -> Result [QueuedOpCode]

showJSONs :: [QueuedOpCode] -> JSValue

ArrayObject QueuedOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

toJSArray :: QueuedOpCode -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result QueuedOpCode Source #

DictObject QueuedOpCode # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

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

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

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

loadQueuedOpCode :: JSValue -> Result QueuedOpCode Source #

data QueuedJob Source #

Constructors

QueuedJob 

Fields

Instances

Instances details
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

Show QueuedJob # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

showsPrec :: Int -> QueuedJob -> ShowS

show :: QueuedJob -> String

showList :: [QueuedJob] -> ShowS

JSON QueuedJob # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

readJSON :: JSValue -> Result QueuedJob

showJSON :: QueuedJob -> JSValue

readJSONs :: JSValue -> Result [QueuedJob]

showJSONs :: [QueuedJob] -> JSValue

ArrayObject QueuedJob # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

toJSArray :: QueuedJob -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result QueuedJob Source #

DictObject QueuedJob # 
Instance details

Defined in Ganeti.JQueue.Objects

Methods

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

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

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

Arbitrary QueuedJob 
Instance details

Defined in Test.Ganeti.JQScheduler

loadQueuedJob :: JSValue -> Result QueuedJob Source #