Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ganeti.Types
Description
Synopsis
- data AllocPolicy
- allocPolicyFromRaw :: forall m. (Monad m, MonadFail m) => String -> m AllocPolicy
- allocPolicyToRaw :: AllocPolicy -> String
- data InstanceStatus
- instanceStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m InstanceStatus
- instanceStatusToRaw :: InstanceStatus -> String
- data DiskTemplate
- = DTDiskless
- | DTFile
- | DTSharedFile
- | DTPlain
- | DTBlock
- | DTDrbd8
- | DTRbd
- | DTExt
- | DTGluster
- diskTemplateToRaw :: DiskTemplate -> String
- diskTemplateFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DiskTemplate
- diskTemplateMovable :: DiskTemplate -> Bool
- data TagKind
- tagKindToRaw :: TagKind -> String
- tagKindFromRaw :: forall m. (Monad m, MonadFail m) => String -> m TagKind
- data NonNegative a
- fromNonNegative :: NonNegative a -> a
- mkNonNegative :: (MonadFail m, Num a, Ord a, Show a) => a -> m (NonNegative a)
- data Positive a
- fromPositive :: Positive a -> a
- mkPositive :: (MonadFail m, Num a, Ord a, Show a) => a -> m (Positive a)
- data Negative a
- fromNegative :: Negative a -> a
- mkNegative :: (MonadFail m, Num a, Ord a, Show a) => a -> m (Negative a)
- data NonEmpty a
- fromNonEmpty :: NonEmpty a -> [a]
- mkNonEmpty :: MonadFail m => [a] -> m (NonEmpty a)
- type NonEmptyString = NonEmpty Char
- type QueryResultCode = Int
- data IPv4Address
- mkIPv4Address :: Monad m => String -> m IPv4Address
- data IPv4Network
- mkIPv4Network :: Monad m => String -> m IPv4Network
- data IPv6Address
- mkIPv6Address :: Monad m => String -> m IPv6Address
- data IPv6Network
- mkIPv6Network :: Monad m => String -> m IPv6Network
- data MigrationMode
- migrationModeToRaw :: MigrationMode -> String
- data VerifyOptionalChecks
- verifyOptionalChecksToRaw :: VerifyOptionalChecks -> String
- data DdmSimple
- data DdmFull
- ddmFullToRaw :: DdmFull -> String
- data CVErrorCode
- = CvECLUSTERCFG
- | CvECLUSTERCERT
- | CvECLUSTERCLIENTCERT
- | CvECLUSTERFILECHECK
- | CvECLUSTERDANGLINGNODES
- | CvECLUSTERDANGLINGINST
- | CvEINSTANCEBADNODE
- | CvEINSTANCEDOWN
- | CvEINSTANCELAYOUT
- | CvEINSTANCEMISSINGDISK
- | CvEINSTANCEFAULTYDISK
- | CvEINSTANCEWRONGNODE
- | CvEINSTANCESPLITGROUPS
- | CvEINSTANCEPOLICY
- | CvEINSTANCEUNSUITABLENODE
- | CvEINSTANCEMISSINGCFGPARAMETER
- | CvENODEDRBD
- | CvENODEDRBDVERSION
- | CvENODEDRBDHELPER
- | CvENODEFILECHECK
- | CvENODEHOOKS
- | CvENODEHV
- | CvENODELVM
- | CvENODEN1
- | CvENODENET
- | CvENODEOS
- | CvENODEORPHANINSTANCE
- | CvENODEORPHANLV
- | CvENODERPC
- | CvENODESSH
- | CvENODEVERSION
- | CvENODESETUP
- | CvENODETIME
- | CvENODEOOBPATH
- | CvENODEUSERSCRIPTS
- | CvENODEFILESTORAGEPATHS
- | CvENODEFILESTORAGEPATHUNUSABLE
- | CvENODESHAREDFILESTORAGEPATHUNUSABLE
- | CvENODEGLUSTERSTORAGEPATHUNUSABLE
- | CvEGROUPDIFFERENTPVSIZE
- | CvEEXTAGS
- cVErrorCodeToRaw :: CVErrorCode -> String
- data Hypervisor
- hypervisorFromRaw :: forall m. (Monad m, MonadFail m) => String -> m Hypervisor
- hypervisorToRaw :: Hypervisor -> String
- data OobCommand
- oobCommandToRaw :: OobCommand -> String
- data OobStatus
- oobStatusToRaw :: OobStatus -> String
- data StorageType
- storageTypeToRaw :: StorageType -> String
- data EvacMode
- evacModeToRaw :: EvacMode -> String
- data FileDriver
- fileDriverToRaw :: FileDriver -> String
- data InstCreateMode
- instCreateModeToRaw :: InstCreateMode -> String
- data RebootType
- rebootTypeToRaw :: RebootType -> String
- data ExportMode
- exportModeToRaw :: ExportMode -> String
- data IAllocatorTestDir
- iAllocatorTestDirToRaw :: IAllocatorTestDir -> String
- data IAllocatorMode
- iAllocatorModeToRaw :: IAllocatorMode -> String
- data NICMode
- nICModeToRaw :: NICMode -> String
- data JobStatus
- jobStatusToRaw :: JobStatus -> String
- jobStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m JobStatus
- data FinalizedJobStatus
- finalizedJobStatusToRaw :: FinalizedJobStatus -> String
- data JobId
- fromJobId :: JobId -> Int
- makeJobId :: MonadFail m => Int -> m JobId
- makeJobIdS :: MonadFail m => String -> m JobId
- type RelativeJobId = Negative Int
- data JobIdDep
- data JobDependency = JobDependency JobIdDep [FinalizedJobStatus]
- absoluteJobDependency :: MonadFail m => JobDependency -> JobId -> m JobDependency
- getJobIdFromDependency :: JobDependency -> [JobId]
- data OpSubmitPriority
- opSubmitPriorityToRaw :: OpSubmitPriority -> Int
- parseSubmitPriority :: MonadFail m => String -> m OpSubmitPriority
- fmtSubmitPriority :: OpSubmitPriority -> String
- data OpStatus
- opStatusToRaw :: OpStatus -> String
- opStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m OpStatus
- data ELogType
- eLogTypeToRaw :: ELogType -> String
- type ReasonElem = (String, String, Integer)
- type ReasonTrail = [ReasonElem]
- data StorageUnit
- = SUFile StorageKey
- | SUSharedFile StorageKey
- | SUGluster StorageKey
- | SULvmPv StorageKey SPExclusiveStorage
- | SULvmVg StorageKey SPExclusiveStorage
- | SUDiskless StorageKey
- | SUBlock StorageKey
- | SURados StorageKey
- | SUExt StorageKey
- data StorageUnitRaw = SURaw StorageType StorageKey
- type StorageKey = String
- addParamsToStorageUnit :: SPExclusiveStorage -> StorageUnitRaw -> StorageUnit
- diskTemplateToStorageType :: DiskTemplate -> StorageType
- data VType
- vTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m VType
- vTypeToRaw :: VType -> String
- data NodeRole
- nodeRoleToRaw :: NodeRole -> String
- roleDescription :: NodeRole -> String
- data DiskMode
- diskModeToRaw :: DiskMode -> String
- data BlockDriver = BlockDrvManual
- blockDriverToRaw :: BlockDriver -> String
- data AdminState
- adminStateFromRaw :: forall m. (Monad m, MonadFail m) => String -> m AdminState
- adminStateToRaw :: AdminState -> String
- data AdminStateSource
- adminStateSourceFromRaw :: forall m. (Monad m, MonadFail m) => String -> m AdminStateSource
- adminStateSourceToRaw :: AdminStateSource -> String
- data StorageField
- = SFUsed
- | SFName
- | SFAllocatable
- | SFFree
- | SFSize
- storageFieldToRaw :: StorageField -> String
- data DiskAccessMode
- diskAccessModeToRaw :: DiskAccessMode -> String
- data LocalDiskStatus
- localDiskStatusFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m LocalDiskStatus
- localDiskStatusToRaw :: LocalDiskStatus -> Int
- localDiskStatusName :: LocalDiskStatus -> String
- data ReplaceDisksMode
- replaceDisksModeToRaw :: ReplaceDisksMode -> String
- data RpcTimeout
- rpcTimeoutFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m RpcTimeout
- rpcTimeoutToRaw :: RpcTimeout -> Int
- data HotplugTarget
- hotplugTargetToRaw :: HotplugTarget -> String
- data HotplugAction
- hotplugActionToRaw :: HotplugAction -> String
- data SshKeyType
- sshKeyTypeToRaw :: SshKeyType -> String
- newtype Private a = Private {
- getPrivate :: a
- showPrivateJSObject :: JSON a => [(String, a)] -> JSObject (Private JSValue)
- newtype Secret a = Secret {
- getSecret :: a
- showSecretJSObject :: JSON a => [(String, a)] -> JSObject (Secret JSValue)
- revealValInJSObject :: JSObject (Secret JSValue) -> JSObject (Private JSValue)
- redacted :: String
- type HvParams = Container JSValue
- type OsParams = Container String
- type OsParamsPrivate = Container (Private String)
- class TimeStampObject a where
- class UuidObject a where
- uuidOf :: a -> String
- class ForthcomingObject a where
- isForthcoming :: a -> Bool
- class SerialNoObject a where
- serialOf :: a -> Int
- class TagsObject a where
Documentation
data AllocPolicy #
The Group allocation policy type.
Note that the order of constructors is important as the automatic Ord instance will order them in the order they are defined, so when changing this data type be careful about the interaction with the desired sorting order.
Constructors
AllocPreferred | |
AllocLastResort | |
AllocUnallocable |
Instances
allocPolicyFromRaw :: forall m. (Monad m, MonadFail m) => String -> m AllocPolicy #
allocPolicyToRaw :: AllocPolicy -> String #
data InstanceStatus #
The Instance real state type.
Constructors
StatusDown | |
StatusOffline | |
ErrorDown | |
ErrorUp | |
NodeDown | |
NodeOffline | |
Running | |
UserDown | |
WrongNode |
Instances
instanceStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m InstanceStatus #
instanceStatusToRaw :: InstanceStatus -> String #
data DiskTemplate #
Instance disk template type. The disk template is a name for the
constructor of the disk configuration DiskLogicalId
used for
serialization, configuration values, etc.
Constructors
DTDiskless | |
DTFile | |
DTSharedFile | |
DTPlain | |
DTBlock | |
DTDrbd8 | |
DTRbd | |
DTExt | |
DTGluster |
Instances
diskTemplateToRaw :: DiskTemplate -> String #
diskTemplateFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DiskTemplate #
diskTemplateMovable :: DiskTemplate -> Bool #
Predicate on disk templates indicating if instances based on this disk template can freely be moved (to any node in the node group).
Data type representing what items the tag operations apply to.
tagKindToRaw :: TagKind -> String #
tagKindFromRaw :: forall m. (Monad m, MonadFail m) => String -> m TagKind #
data NonNegative a #
Type that holds a non-negative value.
Instances
Show a => Show (NonNegative a) # | |
Defined in Ganeti.Types Methods showsPrec :: Int -> NonNegative a -> ShowS show :: NonNegative a -> String showList :: [NonNegative a] -> ShowS | |
PyValue a => PyValue (NonNegative a) # | |
Defined in Ganeti.OpCodes | |
Eq a => Eq (NonNegative a) # | |
Defined in Ganeti.Types | |
Ord a => Ord (NonNegative a) # | |
Defined in Ganeti.Types Methods compare :: NonNegative a -> NonNegative a -> Ordering (<) :: NonNegative a -> NonNegative a -> Bool (<=) :: NonNegative a -> NonNegative a -> Bool (>) :: NonNegative a -> NonNegative a -> Bool (>=) :: NonNegative a -> NonNegative a -> Bool max :: NonNegative a -> NonNegative a -> NonNegative a min :: NonNegative a -> NonNegative a -> NonNegative a | |
(JSON a, Num a, Ord a, Show a) => JSON (NonNegative a) # | |
Defined in Ganeti.Types Methods readJSON :: JSValue -> Result (NonNegative a) showJSON :: NonNegative a -> JSValue readJSONs :: JSValue -> Result [NonNegative a] showJSONs :: [NonNegative a] -> JSValue |
fromNonNegative :: NonNegative a -> a #
mkNonNegative :: (MonadFail m, Num a, Ord a, Show a) => a -> m (NonNegative a) #
Smart constructor for NonNegative
.
Type that holds a positive value.
Instances
Show a => Show (Positive a) # | |
Eq a => Eq (Positive a) # | |
Ord a => Ord (Positive a) # | |
(JSON a, Num a, Ord a, Show a) => JSON (Positive a) # | |
fromPositive :: Positive a -> a #
mkPositive :: (MonadFail m, Num a, Ord a, Show a) => a -> m (Positive a) #
Smart constructor for Positive
.
Type that holds a negative value.
Instances
Show a => Show (Negative a) # | |
Eq a => Eq (Negative a) # | |
Ord a => Ord (Negative a) # | |
(JSON a, Num a, Ord a, Show a) => JSON (Negative a) # | |
fromNegative :: Negative a -> a #
mkNegative :: (MonadFail m, Num a, Ord a, Show a) => a -> m (Negative a) #
Smart constructor for Negative
.
Type that holds a non-null list.
Instances
Show a => Show (NonEmpty a) # | |
PyValue a => PyValue (NonEmpty a) # | |
Defined in Ganeti.OpCodes | |
Eq a => Eq (NonEmpty a) # | |
Ord a => Ord (NonEmpty a) # | |
JSON a => JSON (NonEmpty a) # | |
fromNonEmpty :: NonEmpty a -> [a] #
mkNonEmpty :: MonadFail m => [a] -> m (NonEmpty a) #
Smart constructor for NonEmpty
.
type NonEmptyString = NonEmpty Char #
A simple type alias for non-empty strings.
type QueryResultCode = Int #
data IPv4Address #
Instances
Show IPv4Address # | |
Defined in Ganeti.Types Methods showsPrec :: Int -> IPv4Address -> ShowS show :: IPv4Address -> String showList :: [IPv4Address] -> ShowS | |
Eq IPv4Address # | |
Defined in Ganeti.Types | |
Ord IPv4Address # | |
Defined in Ganeti.Types Methods compare :: IPv4Address -> IPv4Address -> Ordering (<) :: IPv4Address -> IPv4Address -> Bool (<=) :: IPv4Address -> IPv4Address -> Bool (>) :: IPv4Address -> IPv4Address -> Bool (>=) :: IPv4Address -> IPv4Address -> Bool max :: IPv4Address -> IPv4Address -> IPv4Address min :: IPv4Address -> IPv4Address -> IPv4Address | |
JSON IPv4Address # | |
Defined in Ganeti.Types Methods readJSON :: JSValue -> Result IPv4Address showJSON :: IPv4Address -> JSValue readJSONs :: JSValue -> Result [IPv4Address] showJSONs :: [IPv4Address] -> JSValue |
mkIPv4Address :: Monad m => String -> m IPv4Address #
data IPv4Network #
Instances
Show IPv4Network # | |
Defined in Ganeti.Types Methods showsPrec :: Int -> IPv4Network -> ShowS show :: IPv4Network -> String showList :: [IPv4Network] -> ShowS | |
Eq IPv4Network # | |
Defined in Ganeti.Types | |
Ord IPv4Network # | |
Defined in Ganeti.Types Methods compare :: IPv4Network -> IPv4Network -> Ordering (<) :: IPv4Network -> IPv4Network -> Bool (<=) :: IPv4Network -> IPv4Network -> Bool (>) :: IPv4Network -> IPv4Network -> Bool (>=) :: IPv4Network -> IPv4Network -> Bool max :: IPv4Network -> IPv4Network -> IPv4Network min :: IPv4Network -> IPv4Network -> IPv4Network | |
JSON IPv4Network # | |
Defined in Ganeti.Types Methods readJSON :: JSValue -> Result IPv4Network showJSON :: IPv4Network -> JSValue readJSONs :: JSValue -> Result [IPv4Network] showJSONs :: [IPv4Network] -> JSValue |
mkIPv4Network :: Monad m => String -> m IPv4Network #
data IPv6Address #
Instances
Show IPv6Address # | |
Defined in Ganeti.Types Methods showsPrec :: Int -> IPv6Address -> ShowS show :: IPv6Address -> String showList :: [IPv6Address] -> ShowS | |
Eq IPv6Address # | |
Defined in Ganeti.Types | |
Ord IPv6Address # | |
Defined in Ganeti.Types Methods compare :: IPv6Address -> IPv6Address -> Ordering (<) :: IPv6Address -> IPv6Address -> Bool (<=) :: IPv6Address -> IPv6Address -> Bool (>) :: IPv6Address -> IPv6Address -> Bool (>=) :: IPv6Address -> IPv6Address -> Bool max :: IPv6Address -> IPv6Address -> IPv6Address min :: IPv6Address -> IPv6Address -> IPv6Address | |
JSON IPv6Address # | |
Defined in Ganeti.Types Methods readJSON :: JSValue -> Result IPv6Address showJSON :: IPv6Address -> JSValue readJSONs :: JSValue -> Result [IPv6Address] showJSONs :: [IPv6Address] -> JSValue |
mkIPv6Address :: Monad m => String -> m IPv6Address #
data IPv6Network #
Instances
Show IPv6Network # | |
Defined in Ganeti.Types Methods showsPrec :: Int -> IPv6Network -> ShowS show :: IPv6Network -> String showList :: [IPv6Network] -> ShowS | |
Eq IPv6Network # | |
Defined in Ganeti.Types | |
Ord IPv6Network # | |
Defined in Ganeti.Types Methods compare :: IPv6Network -> IPv6Network -> Ordering (<) :: IPv6Network -> IPv6Network -> Bool (<=) :: IPv6Network -> IPv6Network -> Bool (>) :: IPv6Network -> IPv6Network -> Bool (>=) :: IPv6Network -> IPv6Network -> Bool max :: IPv6Network -> IPv6Network -> IPv6Network min :: IPv6Network -> IPv6Network -> IPv6Network | |
JSON IPv6Network # | |
Defined in Ganeti.Types Methods readJSON :: JSValue -> Result IPv6Network showJSON :: IPv6Network -> JSValue readJSONs :: JSValue -> Result [IPv6Network] showJSONs :: [IPv6Network] -> JSValue |
mkIPv6Network :: Monad m => String -> m IPv6Network #
data MigrationMode #
Migration mode.
Constructors
MigrationLive | |
MigrationNonLive |
Instances
migrationModeToRaw :: MigrationMode -> String #
data VerifyOptionalChecks #
Verify optional checks.
Constructors
VerifyNPlusOneMem | |
VerifyHVParamAssessment |
Instances
verifyOptionalChecksToRaw :: VerifyOptionalChecks -> String #
Dynamic device modification, just add/remove version.
Constructors
DdmSimpleAdd | |
DdmSimpleAttach | |
DdmSimpleRemove | |
DdmSimpleDetach |
Instances
Bounded DdmSimple # | |
Defined in Ganeti.Types | |
Enum DdmSimple # | |
Show DdmSimple # | |
Eq DdmSimple # | |
Ord DdmSimple # | |
Defined in Ganeti.Types | |
JSON DdmSimple # | |
Dynamic device modification, all operations version.
TODO: DDM_SWAP, DDM_MOVE?
Constructors
DdmFullAdd | |
DdmFullAttach | |
DdmFullRemove | |
DdmFullDetach | |
DdmFullModify |
ddmFullToRaw :: DdmFull -> String #
data CVErrorCode #
Cluster verify error codes.
Constructors
Instances
cVErrorCodeToRaw :: CVErrorCode -> String #
data Hypervisor #
Hypervisor type definitions.
Instances
hypervisorFromRaw :: forall m. (Monad m, MonadFail m) => String -> m Hypervisor #
hypervisorToRaw :: Hypervisor -> String #
data OobCommand #
Oob command type.
Constructors
OobHealth | |
OobPowerCycle | |
OobPowerOff | |
OobPowerOn | |
OobPowerStatus |
Instances
oobCommandToRaw :: OobCommand -> String #
Oob command status
Constructors
OobStatusCritical | |
OobStatusOk | |
OobStatusUnknown | |
OobStatusWarning |
Instances
Bounded OobStatus # | |
Defined in Ganeti.Types | |
Enum OobStatus # | |
Show OobStatus # | |
Eq OobStatus # | |
Ord OobStatus # | |
Defined in Ganeti.Types | |
JSON OobStatus # | |
oobStatusToRaw :: OobStatus -> String #
data StorageType #
Storage type.
Constructors
StorageFile | |
StorageSharedFile | |
StorageGluster | |
StorageLvmPv | |
StorageLvmVg | |
StorageDiskless | |
StorageBlock | |
StorageRados | |
StorageExt |
Instances
storageTypeToRaw :: StorageType -> String #
Node evac modes.
This is part of the IAllocator
interface and it is used, for
example, in RqType
. However, it must reside
in this module, and not in Types
, because it is
also used by Constants
.
Constructors
ChangePrimary | |
ChangeSecondary | |
ChangeAll |
Instances
Bounded EvacMode # | |
Defined in Ganeti.Types | |
Enum EvacMode # | |
Defined in Ganeti.Types | |
Show EvacMode # | |
Eq EvacMode # | |
Ord EvacMode # | |
JSON EvacMode # | |
evacModeToRaw :: EvacMode -> String #
data FileDriver #
The file driver type.
Constructors
FileLoop | |
FileBlktap | |
FileBlktap2 |
Instances
fileDriverToRaw :: FileDriver -> String #
data InstCreateMode #
The instance create mode.
Constructors
InstCreate | |
InstImport | |
InstRemoteImport |
Instances
instCreateModeToRaw :: InstCreateMode -> String #
data RebootType #
Reboot type.
Constructors
RebootSoft | |
RebootHard | |
RebootFull |
Instances
rebootTypeToRaw :: RebootType -> String #
data ExportMode #
Export modes.
Constructors
ExportModeLocal | |
ExportModeRemote |
Instances
exportModeToRaw :: ExportMode -> String #
data IAllocatorTestDir #
IAllocator run types (OpTestIAllocator).
Constructors
IAllocatorDirIn | |
IAllocatorDirOut |
Instances
iAllocatorTestDirToRaw :: IAllocatorTestDir -> String #
data IAllocatorMode #
IAllocator mode. FIXME: use this in HTools.Backend.IAlloc.
Constructors
IAllocatorAlloc | |
IAllocatorAllocateSecondary | |
IAllocatorMultiAlloc | |
IAllocatorReloc | |
IAllocatorNodeEvac | |
IAllocatorChangeGroup |
Instances
iAllocatorModeToRaw :: IAllocatorMode -> String #
Network mode.
nICModeToRaw :: NICMode -> String #
The JobStatus data type. Note that this is ordered especially such that greater/lesser comparison on values of this type makes sense.
Constructors
JOB_STATUS_QUEUED | |
JOB_STATUS_WAITING | |
JOB_STATUS_CANCELING | |
JOB_STATUS_RUNNING | |
JOB_STATUS_CANCELED | |
JOB_STATUS_SUCCESS | |
JOB_STATUS_ERROR |
Instances
Bounded JobStatus # | |
Defined in Ganeti.Types | |
Enum JobStatus # | |
Show JobStatus # | |
Eq JobStatus # | |
Ord JobStatus # | |
Defined in Ganeti.Types | |
JSON JobStatus # | |
jobStatusToRaw :: JobStatus -> String #
jobStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m JobStatus #
data FinalizedJobStatus #
Finalized job status.
Constructors
JobStatusCanceled | |
JobStatusSuccessful | |
JobStatusFailed |
Instances
finalizedJobStatusToRaw :: FinalizedJobStatus -> String #
makeJobIdS :: MonadFail m => String -> m JobId #
Builds a job ID from a string.
type RelativeJobId = Negative Int #
Relative job ID type alias.
Job ID dependency.
Constructors
JobDepRelative RelativeJobId | |
JobDepAbsolute JobId |
data JobDependency #
Job Dependency type.
Constructors
JobDependency JobIdDep [FinalizedJobStatus] |
Instances
Show JobDependency # | |
Defined in Ganeti.Types Methods showsPrec :: Int -> JobDependency -> ShowS show :: JobDependency -> String showList :: [JobDependency] -> ShowS | |
Eq JobDependency # | |
Defined in Ganeti.Types | |
Ord JobDependency # | |
Defined in Ganeti.Types Methods compare :: JobDependency -> JobDependency -> Ordering (<) :: JobDependency -> JobDependency -> Bool (<=) :: JobDependency -> JobDependency -> Bool (>) :: JobDependency -> JobDependency -> Bool (>=) :: JobDependency -> JobDependency -> Bool max :: JobDependency -> JobDependency -> JobDependency min :: JobDependency -> JobDependency -> JobDependency | |
JSON JobDependency # | |
Defined in Ganeti.Types Methods readJSON :: JSValue -> Result JobDependency showJSON :: JobDependency -> JSValue readJSONs :: JSValue -> Result [JobDependency] showJSONs :: [JobDependency] -> JSValue |
absoluteJobDependency :: MonadFail m => JobDependency -> JobId -> m JobDependency #
From job dependency and job id compute an absolute job dependency.
getJobIdFromDependency :: JobDependency -> [JobId] #
From a job dependency get the absolute job id it depends on, if given absolutely.
data OpSubmitPriority #
Valid opcode priorities for submit.
Constructors
OpPrioLow | |
OpPrioNormal | |
OpPrioHigh |
Instances
opSubmitPriorityToRaw :: OpSubmitPriority -> Int #
parseSubmitPriority :: MonadFail m => String -> m OpSubmitPriority #
Parse submit priorities from a string.
fmtSubmitPriority :: OpSubmitPriority -> String #
Format a submit priority as string.
Our ADT for the OpCode status at runtime (while in a job).
Constructors
OP_STATUS_QUEUED | |
OP_STATUS_WAITING | |
OP_STATUS_CANCELING | |
OP_STATUS_RUNNING | |
OP_STATUS_CANCELED | |
OP_STATUS_SUCCESS | |
OP_STATUS_ERROR |
Instances
Bounded OpStatus # | |
Defined in Ganeti.Types | |
Enum OpStatus # | |
Defined in Ganeti.Types | |
Show OpStatus # | |
Eq OpStatus # | |
Ord OpStatus # | |
JSON OpStatus # | |
opStatusToRaw :: OpStatus -> String #
opStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m OpStatus #
Type for the job message type.
Instances
Bounded ELogType # | |
Defined in Ganeti.Types | |
Enum ELogType # | |
Defined in Ganeti.Types | |
Show ELogType # | |
Eq ELogType # | |
Ord ELogType # | |
JSON ELogType # | |
eLogTypeToRaw :: ELogType -> String #
type ReasonElem = (String, String, Integer) #
Type of one element of a reason trail, of form
(source, reason, timestamp)
.
type ReasonTrail = [ReasonElem] #
Type representing a reason trail.
data StorageUnit #
Full storage unit with storage-type-specific parameters
Constructors
SUFile StorageKey | |
SUSharedFile StorageKey | |
SUGluster StorageKey | |
SULvmPv StorageKey SPExclusiveStorage | |
SULvmVg StorageKey SPExclusiveStorage | |
SUDiskless StorageKey | |
SUBlock StorageKey | |
SURados StorageKey | |
SUExt StorageKey |
Instances
Show StorageUnit # | |
Defined in Ganeti.Types Methods showsPrec :: Int -> StorageUnit -> ShowS show :: StorageUnit -> String showList :: [StorageUnit] -> ShowS | |
Eq StorageUnit # | |
Defined in Ganeti.Types | |
JSON StorageUnit # | |
Defined in Ganeti.Types Methods readJSON :: JSValue -> Result StorageUnit showJSON :: StorageUnit -> JSValue readJSONs :: JSValue -> Result [StorageUnit] showJSONs :: [StorageUnit] -> JSValue |
data StorageUnitRaw #
Storage units without storage-type-specific parameters
Constructors
SURaw StorageType StorageKey |
type StorageKey = String #
Storage keys are identifiers for storage units. Their content varies depending on the storage type, for example a storage key for LVM storage is the volume group name.
addParamsToStorageUnit :: SPExclusiveStorage -> StorageUnitRaw -> StorageUnit #
Equips a raw storage unit with its parameters
diskTemplateToStorageType :: DiskTemplate -> StorageType #
Mapping from disk templates to storage types.
The VTYPES, a mini-type system in Python.
Constructors
VTypeString | |
VTypeMaybeString | |
VTypeBool | |
VTypeSize | |
VTypeInt | |
VTypeFloat |
vTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m VType #
vTypeToRaw :: VType -> String #
Constructors
NROffline | |
NRDrained | |
NRRegular | |
NRCandidate | |
NRMaster |
Instances
Bounded NodeRole # | |
Defined in Ganeti.Types | |
Enum NodeRole # | |
Defined in Ganeti.Types | |
Show NodeRole # | |
Eq NodeRole # | |
Ord NodeRole # | |
JSON NodeRole # | |
nodeRoleToRaw :: NodeRole -> String #
roleDescription :: NodeRole -> String #
The description of the node role.
Constructors
DiskRdOnly | |
DiskRdWr |
Instances
Bounded DiskMode # | |
Defined in Ganeti.Types | |
Enum DiskMode # | |
Defined in Ganeti.Types | |
Show DiskMode # | |
Eq DiskMode # | |
Ord DiskMode # | |
JSON DiskMode # | |
diskModeToRaw :: DiskMode -> String #
data BlockDriver #
The persistent block driver type. Currently only one type is allowed.
Constructors
BlockDrvManual |
Instances
blockDriverToRaw :: BlockDriver -> String #
data AdminState #
Constructors
AdminOffline | |
AdminDown | |
AdminUp |
Instances
adminStateFromRaw :: forall m. (Monad m, MonadFail m) => String -> m AdminState #
adminStateToRaw :: AdminState -> String #
data AdminStateSource #
Constructors
AdminSource | |
UserSource |
Instances
adminStateSourceFromRaw :: forall m. (Monad m, MonadFail m) => String -> m AdminStateSource #
adminStateSourceToRaw :: AdminStateSource -> String #
data StorageField #
Constructors
SFUsed | |
SFName | |
SFAllocatable | |
SFFree | |
SFSize |
Instances
storageFieldToRaw :: StorageField -> String #
data DiskAccessMode #
Constructors
DiskUserspace | |
DiskKernelspace |
Instances
diskAccessModeToRaw :: DiskAccessMode -> String #
data LocalDiskStatus #
Local disk status
Python code depends on: DiskStatusOk < DiskStatusUnknown < DiskStatusFaulty
Constructors
DiskStatusOk | |
DiskStatusSync | |
DiskStatusUnknown | |
DiskStatusFaulty |
Instances
localDiskStatusFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m LocalDiskStatus #
localDiskStatusToRaw :: LocalDiskStatus -> Int #
localDiskStatusName :: LocalDiskStatus -> String #
data ReplaceDisksMode #
Replace disks type.
Instances
replaceDisksModeToRaw :: ReplaceDisksMode -> String #
data RpcTimeout #
Basic timeouts for RPC calls.
Instances
Bounded RpcTimeout # | |
Defined in Ganeti.Types | |
Enum RpcTimeout # | |
Defined in Ganeti.Types Methods succ :: RpcTimeout -> RpcTimeout pred :: RpcTimeout -> RpcTimeout toEnum :: Int -> RpcTimeout fromEnum :: RpcTimeout -> Int enumFrom :: RpcTimeout -> [RpcTimeout] enumFromThen :: RpcTimeout -> RpcTimeout -> [RpcTimeout] enumFromTo :: RpcTimeout -> RpcTimeout -> [RpcTimeout] enumFromThenTo :: RpcTimeout -> RpcTimeout -> RpcTimeout -> [RpcTimeout] | |
Show RpcTimeout # | |
Defined in Ganeti.Types Methods showsPrec :: Int -> RpcTimeout -> ShowS show :: RpcTimeout -> String showList :: [RpcTimeout] -> ShowS | |
Eq RpcTimeout # | |
Defined in Ganeti.Types | |
Ord RpcTimeout # | |
Defined in Ganeti.Types Methods compare :: RpcTimeout -> RpcTimeout -> Ordering (<) :: RpcTimeout -> RpcTimeout -> Bool (<=) :: RpcTimeout -> RpcTimeout -> Bool (>) :: RpcTimeout -> RpcTimeout -> Bool (>=) :: RpcTimeout -> RpcTimeout -> Bool max :: RpcTimeout -> RpcTimeout -> RpcTimeout min :: RpcTimeout -> RpcTimeout -> RpcTimeout |
rpcTimeoutFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m RpcTimeout #
rpcTimeoutToRaw :: RpcTimeout -> Int #
data HotplugTarget #
Hotplug Device Target.
Instances
hotplugTargetToRaw :: HotplugTarget -> String #
data HotplugAction #
Hotplug action.
Instances
hotplugActionToRaw :: HotplugAction -> String #
data SshKeyType #
SSH key type.
Instances
sshKeyTypeToRaw :: SshKeyType -> String #
A container for values that should be happy to be manipulated yet refuses to be shown unless explicitly requested.
Constructors
Private | |
Fields
|
Instances
Applicative Private # | |
Functor Private # | |
Monad Private # | |
Show a => Show (Private a) # | Show the value of the field. It would be better not to implement this at all. Alas, Show OpCode requires Show Private. |
PyValue a => PyValue (Private a) # | |
Defined in Ganeti.Types | |
Eq a => Eq (Private a) # | |
Ord a => Ord (Private a) # | |
Defined in Ganeti.Types | |
(Show a, JSON a) => JSON (Private a) # | |
showPrivateJSObject :: JSON a => [(String, a)] -> JSObject (Private JSValue) #
A container for values that behaves like Private, but doesn't leak the value through showJSON
showSecretJSObject :: JSON a => [(String, a)] -> JSObject (Secret JSValue) #
We return "<redacted>" here to satisfy the idempotence of serialization and deserialization, although this will impact the meaningfulness of secret parameters within configuration tests.
revealValInJSObject :: JSObject (Secret JSValue) -> JSObject (Private JSValue) #
type HvParams = Container JSValue #
The hypervisor parameter type. This is currently a simple map, without type checking on key/value pairs.
type OsParams = Container String #
The OS parameters type. This is, and will remain, a string container, since the keys are dynamically declared by the OSes, and the values are always strings.
type OsParamsPrivate = Container (Private String) #
class TimeStampObject a where #
Class of objects that have timestamps.
class UuidObject a where #
Class of objects that have an UUID.
Instances
UuidObject Cluster # | |
Defined in Ganeti.Objects | |
UuidObject FilterRule # | |
Defined in Ganeti.Objects Methods uuidOf :: FilterRule -> String # | |
UuidObject Network # | |
Defined in Ganeti.Objects | |
UuidObject Node # | |
Defined in Ganeti.Objects | |
UuidObject NodeGroup # | |
Defined in Ganeti.Objects | |
UuidObject Disk # | |
Defined in Ganeti.Objects.Disk | |
UuidObject Instance # | |
Defined in Ganeti.Objects.Instance | |
UuidObject PartialNic # | |
Defined in Ganeti.Objects.Nic Methods uuidOf :: PartialNic -> String # |
class ForthcomingObject a where #
Class of objects that can be forthcoming.
Methods
isForthcoming :: a -> Bool #
Instances
ForthcomingObject Disk # | |
Defined in Ganeti.Objects.Disk Methods isForthcoming :: Disk -> Bool # | |
ForthcomingObject Instance # | |
Defined in Ganeti.Objects.Instance Methods isForthcoming :: Instance -> Bool # |
class SerialNoObject a where #
Class of object that have a serial number.
Instances
SerialNoObject Cluster # | |
Defined in Ganeti.Objects | |
SerialNoObject ConfigData # | |
Defined in Ganeti.Objects Methods serialOf :: ConfigData -> Int # | |
SerialNoObject Network # | |
Defined in Ganeti.Objects | |
SerialNoObject Node # | |
Defined in Ganeti.Objects | |
SerialNoObject NodeGroup # | |
Defined in Ganeti.Objects | |
SerialNoObject Disk # | |
Defined in Ganeti.Objects.Disk | |
SerialNoObject Instance # | |
Defined in Ganeti.Objects.Instance |
class TagsObject a where #
Class of objects that have tags.
Instances
TagsObject Cluster # | |
Defined in Ganeti.Objects | |
TagsObject Network # | |
Defined in Ganeti.Objects | |
TagsObject Node # | |
Defined in Ganeti.Objects | |
TagsObject NodeGroup # | |
Defined in Ganeti.Objects | |
TagsObject Instance # | |
Defined in Ganeti.Objects.Instance |