ganeti-htoolsSource codeContentsIndex
Ganeti.OpCodes
Description
Implementation of the opcodes.
Synopsis
data ReplaceDisksMode
= ReplaceOnPrimary
| ReplaceOnSecondary
| ReplaceNewSecondary
| ReplaceAuto
data OpCode
= OpTestDelay Double Bool [String]
| OpInstanceReplaceDisks String (Maybe String) ReplaceDisksMode [Int] (Maybe String)
| OpInstanceFailover String Bool (Maybe String)
| OpInstanceMigrate String Bool Bool Bool (Maybe String)
opID :: OpCode -> String
loadOpCode :: JSValue -> Result OpCode
saveOpCode :: OpCode -> JSValue
Documentation
data ReplaceDisksMode Source
Replace disks type.
Constructors
ReplaceOnPrimary
ReplaceOnSecondary
ReplaceNewSecondary
ReplaceAuto
data OpCode Source

OpCode representation.

We only implement a subset of Ganeti opcodes, but only what we actually use in the htools codebase.

Constructors
OpTestDelay Double Bool [String]
OpInstanceReplaceDisks String (Maybe String) ReplaceDisksMode [Int] (Maybe String)
OpInstanceFailover String Bool (Maybe String)
OpInstanceMigrate String Bool Bool Bool (Maybe String)
opID :: OpCode -> StringSource
Computes the OP_ID for an OpCode.
loadOpCode :: JSValue -> Result OpCodeSource
Loads an OpCode from the JSON serialised form.
saveOpCode :: OpCode -> JSValueSource
Serialises an opcode to JSON.
Produced by Haddock version 2.6.0