ganeti-htoolsSource codeContentsIndex
Ganeti.OpCodes
Description
Implementation of the opcodes.
Synopsis
data ReplaceDisksMode
= ReplaceOnPrimary
| ReplaceOnSecondary
| ReplaceNewSecondary
| ReplaceAuto
replaceDisksModeFromRaw :: forall m[aAYB]. Monad m[aAYB] => String -> m[aAYB] ReplaceDisksMode
replaceDisksModeToRaw :: ReplaceDisksMode -> String
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)
saveOpCode :: OpCode -> JSValue
loadOpCode :: JSValue -> Result OpCode
opID :: OpCode -> String
Documentation
data ReplaceDisksMode Source
Replace disks type.
Constructors
ReplaceOnPrimary
ReplaceOnSecondary
ReplaceNewSecondary
ReplaceAuto
replaceDisksModeFromRaw :: forall m[aAYB]. Monad m[aAYB] => String -> m[aAYB] ReplaceDisksModeSource
replaceDisksModeToRaw :: ReplaceDisksMode -> StringSource
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)
saveOpCode :: OpCode -> JSValueSource
loadOpCode :: JSValue -> Result OpCodeSource
opID :: OpCode -> StringSource
Produced by Haddock version 2.6.0