Safe Haskell | None |
---|
Synopsis
- newtype NonNegative a = NonNegative {
- fromNonNegative :: a
- mkNonNegative :: (MonadFail m, Num a, Ord a, Show a) => a -> m (NonNegative a)
- newtype Positive a = Positive {
- fromPositive :: a
- mkPositive :: (MonadFail m, Num a, Ord a, Show a) => a -> m (Positive a)
- newtype Negative a = Negative {
- fromNegative :: a
- mkNegative :: (MonadFail m, Num a, Ord a, Show a) => a -> m (Negative a)
- newtype NonEmpty a = NonEmpty {
- fromNonEmpty :: [a]
- mkNonEmpty :: MonadFail m => [a] -> m (NonEmpty a)
- type NonEmptyString = NonEmpty Char
- type QueryResultCode = Int
- newtype IPv4Address = IPv4Address {
- fromIPv4Address :: String
- mkIPv4Address :: Monad m => String -> m IPv4Address
- newtype IPv4Network = IPv4Network {
- fromIPv4Network :: String
- mkIPv4Network :: Monad m => String -> m IPv4Network
- newtype IPv6Address = IPv6Address {
- fromIPv6Address :: String
- mkIPv6Address :: Monad m => String -> m IPv6Address
- newtype IPv6Network = IPv6Network {
- fromIPv6Network :: String
- mkIPv6Network :: Monad m => String -> m IPv6Network
- data DiskTemplate
- = DTDiskless
- | DTFile
- | DTSharedFile
- | DTPlain
- | DTBlock
- | DTDrbd8
- | DTRbd
- | DTExt
- | DTGluster
- diskTemplateFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DiskTemplate
- diskTemplateToRaw :: DiskTemplate -> String
- diskTemplateMovable :: DiskTemplate -> Bool
- data TagKind
- tagKindFromRaw :: forall m. (Monad m, MonadFail m) => String -> m TagKind
- tagKindToRaw :: TagKind -> String
- 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 MigrationMode
- migrationModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m MigrationMode
- migrationModeToRaw :: MigrationMode -> String
- data VerifyOptionalChecks = VerifyNPlusOneMem
- verifyOptionalChecksFromRaw :: forall m. (Monad m, MonadFail m) => String -> m VerifyOptionalChecks
- verifyOptionalChecksToRaw :: VerifyOptionalChecks -> 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
- cVErrorCodeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m CVErrorCode
- cVErrorCodeToRaw :: CVErrorCode -> String
- data DdmSimple
- ddmSimpleFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DdmSimple
- ddmSimpleToRaw :: DdmSimple -> String
- data DdmFull
- ddmFullFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DdmFull
- ddmFullToRaw :: DdmFull -> String
- data Hypervisor
- hypervisorFromRaw :: forall m. (Monad m, MonadFail m) => String -> m Hypervisor
- hypervisorToRaw :: Hypervisor -> String
- data OobCommand
- oobCommandFromRaw :: forall m. (Monad m, MonadFail m) => String -> m OobCommand
- oobCommandToRaw :: OobCommand -> String
- data OobStatus
- oobStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m OobStatus
- oobStatusToRaw :: OobStatus -> String
- data StorageType
- storageTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m StorageType
- storageTypeToRaw :: StorageType -> String
- type StorageKey = String
- type SPExclusiveStorage = Bool
- data StorageUnitRaw = SURaw StorageType StorageKey
- data StorageUnit
- showSUSimple :: StorageType -> StorageKey -> String
- showSULvm :: StorageType -> StorageKey -> SPExclusiveStorage -> String
- diskTemplateToStorageType :: DiskTemplate -> StorageType
- addParamsToStorageUnit :: SPExclusiveStorage -> StorageUnitRaw -> StorageUnit
- data EvacMode
- evacModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m EvacMode
- evacModeToRaw :: EvacMode -> String
- data FileDriver
- fileDriverFromRaw :: forall m. (Monad m, MonadFail m) => String -> m FileDriver
- fileDriverToRaw :: FileDriver -> String
- data InstCreateMode
- instCreateModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m InstCreateMode
- instCreateModeToRaw :: InstCreateMode -> String
- data RebootType
- rebootTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m RebootType
- rebootTypeToRaw :: RebootType -> String
- data ExportMode
- exportModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m ExportMode
- exportModeToRaw :: ExportMode -> String
- data IAllocatorTestDir
- iAllocatorTestDirFromRaw :: forall m. (Monad m, MonadFail m) => String -> m IAllocatorTestDir
- iAllocatorTestDirToRaw :: IAllocatorTestDir -> String
- data IAllocatorMode
- iAllocatorModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m IAllocatorMode
- iAllocatorModeToRaw :: IAllocatorMode -> String
- data NICMode
- nICModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m NICMode
- nICModeToRaw :: NICMode -> String
- data JobStatus
- jobStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m JobStatus
- jobStatusToRaw :: JobStatus -> String
- data FinalizedJobStatus
- finalizedJobStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m FinalizedJobStatus
- finalizedJobStatusToRaw :: FinalizedJobStatus -> String
- newtype JobId = JobId {
- fromJobId :: Int
- makeJobId :: MonadFail m => Int -> m JobId
- makeJobIdS :: MonadFail m => String -> m JobId
- parseJobId :: MonadFail m => JSValue -> m JobId
- type RelativeJobId = Negative Int
- data JobIdDep
- absoluteJobIdDep :: MonadFail m => JobIdDep -> JobId -> m JobIdDep
- data JobDependency = JobDependency JobIdDep [FinalizedJobStatus]
- absoluteJobDependency :: MonadFail m => JobDependency -> JobId -> m JobDependency
- getJobIdFromDependency :: JobDependency -> [JobId]
- data OpSubmitPriority
- opSubmitPriorityFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m OpSubmitPriority
- opSubmitPriorityToRaw :: OpSubmitPriority -> Int
- parseSubmitPriority :: MonadFail m => String -> m OpSubmitPriority
- fmtSubmitPriority :: OpSubmitPriority -> String
- data OpStatus
- opStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m OpStatus
- opStatusToRaw :: OpStatus -> String
- data ELogType
- eLogTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m ELogType
- eLogTypeToRaw :: ELogType -> String
- type ReasonElem = (String, String, Integer)
- type ReasonTrail = [ReasonElem]
- data VType
- vTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m VType
- vTypeToRaw :: VType -> String
- data NodeRole
- nodeRoleFromRaw :: forall m. (Monad m, MonadFail m) => String -> m NodeRole
- nodeRoleToRaw :: NodeRole -> String
- roleDescription :: NodeRole -> String
- data DiskMode
- diskModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DiskMode
- diskModeToRaw :: DiskMode -> String
- data BlockDriver = BlockDrvManual
- blockDriverFromRaw :: forall m. (Monad m, MonadFail m) => String -> m BlockDriver
- 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
- storageFieldFromRaw :: forall m. (Monad m, MonadFail m) => String -> m StorageField
- storageFieldToRaw :: StorageField -> String
- data DiskAccessMode
- diskAccessModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DiskAccessMode
- diskAccessModeToRaw :: DiskAccessMode -> String
- data LocalDiskStatus
- localDiskStatusFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m LocalDiskStatus
- localDiskStatusToRaw :: LocalDiskStatus -> Int
- _DiskStatusFaulty :: Int
- _DiskStatusUnknown :: Int
- _DiskStatusSync :: Int
- _DiskStatusOk :: Int
- localDiskStatusName :: LocalDiskStatus -> String
- data ReplaceDisksMode
- replaceDisksModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m ReplaceDisksMode
- replaceDisksModeToRaw :: ReplaceDisksMode -> String
- data RpcTimeout
- rpcTimeoutFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m RpcTimeout
- rpcTimeoutToRaw :: RpcTimeout -> Int
- _OneDay :: Int
- _FourHours :: Int
- _Slow :: Int
- _Normal :: Int
- _Fast :: Int
- _Urgent :: Int
- data HotplugAction
- hotplugActionFromRaw :: forall m. (Monad m, MonadFail m) => String -> m HotplugAction
- hotplugActionToRaw :: HotplugAction -> String
- data HotplugTarget
- hotplugTargetFromRaw :: forall m. (Monad m, MonadFail m) => String -> m HotplugTarget
- hotplugTargetToRaw :: HotplugTarget -> String
- data SshKeyType
- sshKeyTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m SshKeyType
- sshKeyTypeToRaw :: SshKeyType -> String
- redacted :: 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)
- 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
Generic types
newtype NonNegative a Source #
Type that holds a non-negative value.
Instances
mkNonNegative :: (MonadFail m, Num a, Ord a, Show a) => a -> m (NonNegative a) Source #
Smart constructor for NonNegative
.
Type that holds a positive value.
Positive | |
|
mkPositive :: (MonadFail m, Num a, Ord a, Show a) => a -> m (Positive a) Source #
Smart constructor for Positive
.
Type that holds a negative value.
Negative | |
|
mkNegative :: (MonadFail m, Num a, Ord a, Show a) => a -> m (Negative a) Source #
Smart constructor for Negative
.
Type that holds a non-null list.
NonEmpty | |
|
mkNonEmpty :: MonadFail m => [a] -> m (NonEmpty a) Source #
Smart constructor for NonEmpty
.
type NonEmptyString = NonEmpty Char Source #
A simple type alias for non-empty strings.
type QueryResultCode = Int Source #
newtype IPv4Address Source #
IPv4Address | |
|
Instances
Eq IPv4Address # | |
Defined in Ganeti.Types (==) :: IPv4Address -> IPv4Address -> Bool (/=) :: IPv4Address -> IPv4Address -> Bool | |
Ord IPv4Address # | |
Defined in Ganeti.Types compare :: IPv4Address -> IPv4Address -> Ordering (<) :: IPv4Address -> IPv4Address -> Bool (<=) :: IPv4Address -> IPv4Address -> Bool (>) :: IPv4Address -> IPv4Address -> Bool (>=) :: IPv4Address -> IPv4Address -> Bool max :: IPv4Address -> IPv4Address -> IPv4Address min :: IPv4Address -> IPv4Address -> IPv4Address | |
Show IPv4Address # | |
Defined in Ganeti.Types showsPrec :: Int -> IPv4Address -> ShowS show :: IPv4Address -> String showList :: [IPv4Address] -> ShowS | |
JSON IPv4Address # | |
Defined in Ganeti.Types readJSON :: JSValue -> Result IPv4Address showJSON :: IPv4Address -> JSValue readJSONs :: JSValue -> Result [IPv4Address] showJSONs :: [IPv4Address] -> JSValue |
mkIPv4Address :: Monad m => String -> m IPv4Address Source #
newtype IPv4Network Source #
IPv4Network | |
|
Instances
Eq IPv4Network # | |
Defined in Ganeti.Types (==) :: IPv4Network -> IPv4Network -> Bool (/=) :: IPv4Network -> IPv4Network -> Bool | |
Ord IPv4Network # | |
Defined in Ganeti.Types compare :: IPv4Network -> IPv4Network -> Ordering (<) :: IPv4Network -> IPv4Network -> Bool (<=) :: IPv4Network -> IPv4Network -> Bool (>) :: IPv4Network -> IPv4Network -> Bool (>=) :: IPv4Network -> IPv4Network -> Bool max :: IPv4Network -> IPv4Network -> IPv4Network min :: IPv4Network -> IPv4Network -> IPv4Network | |
Show IPv4Network # | |
Defined in Ganeti.Types showsPrec :: Int -> IPv4Network -> ShowS show :: IPv4Network -> String showList :: [IPv4Network] -> ShowS | |
JSON IPv4Network # | |
Defined in Ganeti.Types readJSON :: JSValue -> Result IPv4Network showJSON :: IPv4Network -> JSValue readJSONs :: JSValue -> Result [IPv4Network] showJSONs :: [IPv4Network] -> JSValue |
mkIPv4Network :: Monad m => String -> m IPv4Network Source #
newtype IPv6Address Source #
IPv6Address | |
|
Instances
Eq IPv6Address # | |
Defined in Ganeti.Types (==) :: IPv6Address -> IPv6Address -> Bool (/=) :: IPv6Address -> IPv6Address -> Bool | |
Ord IPv6Address # | |
Defined in Ganeti.Types compare :: IPv6Address -> IPv6Address -> Ordering (<) :: IPv6Address -> IPv6Address -> Bool (<=) :: IPv6Address -> IPv6Address -> Bool (>) :: IPv6Address -> IPv6Address -> Bool (>=) :: IPv6Address -> IPv6Address -> Bool max :: IPv6Address -> IPv6Address -> IPv6Address min :: IPv6Address -> IPv6Address -> IPv6Address | |
Show IPv6Address # | |
Defined in Ganeti.Types showsPrec :: Int -> IPv6Address -> ShowS show :: IPv6Address -> String showList :: [IPv6Address] -> ShowS | |
JSON IPv6Address # | |
Defined in Ganeti.Types readJSON :: JSValue -> Result IPv6Address showJSON :: IPv6Address -> JSValue readJSONs :: JSValue -> Result [IPv6Address] showJSONs :: [IPv6Address] -> JSValue |
mkIPv6Address :: Monad m => String -> m IPv6Address Source #
newtype IPv6Network Source #
IPv6Network | |
|
Instances
Eq IPv6Network # | |
Defined in Ganeti.Types (==) :: IPv6Network -> IPv6Network -> Bool (/=) :: IPv6Network -> IPv6Network -> Bool | |
Ord IPv6Network # | |
Defined in Ganeti.Types compare :: IPv6Network -> IPv6Network -> Ordering (<) :: IPv6Network -> IPv6Network -> Bool (<=) :: IPv6Network -> IPv6Network -> Bool (>) :: IPv6Network -> IPv6Network -> Bool (>=) :: IPv6Network -> IPv6Network -> Bool max :: IPv6Network -> IPv6Network -> IPv6Network min :: IPv6Network -> IPv6Network -> IPv6Network | |
Show IPv6Network # | |
Defined in Ganeti.Types showsPrec :: Int -> IPv6Network -> ShowS show :: IPv6Network -> String showList :: [IPv6Network] -> ShowS | |
JSON IPv6Network # | |
Defined in Ganeti.Types readJSON :: JSValue -> Result IPv6Network showJSON :: IPv6Network -> JSValue readJSONs :: JSValue -> Result [IPv6Network] showJSONs :: [IPv6Network] -> JSValue |
mkIPv6Network :: Monad m => String -> m IPv6Network Source #
Ganeti types
data DiskTemplate Source #
Instance disk template type. The disk template is a name for the
constructor of the disk configuration DiskLogicalId
used for
serialization, configuration values, etc.
Instances
diskTemplateFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DiskTemplate Source #
diskTemplateToRaw :: DiskTemplate -> String Source #
diskTemplateMovable :: DiskTemplate -> Bool Source #
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.
tagKindFromRaw :: forall m. (Monad m, MonadFail m) => String -> m TagKind Source #
tagKindToRaw :: TagKind -> String Source #
data AllocPolicy Source #
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.
Instances
allocPolicyFromRaw :: forall m. (Monad m, MonadFail m) => String -> m AllocPolicy Source #
allocPolicyToRaw :: AllocPolicy -> String Source #
data InstanceStatus Source #
The Instance real state type.
Instances
instanceStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m InstanceStatus Source #
instanceStatusToRaw :: InstanceStatus -> String Source #
data MigrationMode Source #
Migration mode.
Instances
migrationModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m MigrationMode Source #
migrationModeToRaw :: MigrationMode -> String Source #
data VerifyOptionalChecks Source #
Verify optional checks.
Instances
verifyOptionalChecksFromRaw :: forall m. (Monad m, MonadFail m) => String -> m VerifyOptionalChecks Source #
verifyOptionalChecksToRaw :: VerifyOptionalChecks -> String Source #
data CVErrorCode Source #
Cluster verify error codes.
Instances
cVErrorCodeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m CVErrorCode Source #
cVErrorCodeToRaw :: CVErrorCode -> String Source #
Dynamic device modification, just add/remove version.
Instances
Bounded DdmSimple # | |
Defined in Ganeti.Types | |
Enum DdmSimple # | |
Eq DdmSimple # | |
Ord DdmSimple # | |
Defined in Ganeti.Types | |
Show DdmSimple # | |
JSON DdmSimple # | |
Arbitrary DdmSimple | |
ddmSimpleFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DdmSimple Source #
ddmSimpleToRaw :: DdmSimple -> String Source #
Dynamic device modification, all operations version.
TODO: DDM_SWAP, DDM_MOVE?
ddmFullFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DdmFull Source #
ddmFullToRaw :: DdmFull -> String Source #
data Hypervisor Source #
Hypervisor type definitions.
Instances
hypervisorFromRaw :: forall m. (Monad m, MonadFail m) => String -> m Hypervisor Source #
hypervisorToRaw :: Hypervisor -> String Source #
data OobCommand Source #
Oob command type.
Instances
oobCommandFromRaw :: forall m. (Monad m, MonadFail m) => String -> m OobCommand Source #
oobCommandToRaw :: OobCommand -> String Source #
Oob command status
Instances
Bounded OobStatus # | |
Defined in Ganeti.Types | |
Enum OobStatus # | |
Eq OobStatus # | |
Ord OobStatus # | |
Defined in Ganeti.Types | |
Show OobStatus # | |
JSON OobStatus # | |
oobStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m OobStatus Source #
oobStatusToRaw :: OobStatus -> String Source #
data StorageType Source #
Storage type.
StorageFile | |
StorageSharedFile | |
StorageGluster | |
StorageLvmPv | |
StorageLvmVg | |
StorageDiskless | |
StorageBlock | |
StorageRados | |
StorageExt |
Instances
storageTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m StorageType Source #
storageTypeToRaw :: StorageType -> String Source #
type StorageKey = String Source #
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.
type SPExclusiveStorage = Bool Source #
Storage parameters
data StorageUnitRaw Source #
Storage units without storage-type-specific parameters
data StorageUnit Source #
Full storage unit with storage-type-specific parameters
Instances
Eq StorageUnit # | |
Defined in Ganeti.Types (==) :: StorageUnit -> StorageUnit -> Bool (/=) :: StorageUnit -> StorageUnit -> Bool | |
Show StorageUnit # | |
Defined in Ganeti.Types showsPrec :: Int -> StorageUnit -> ShowS show :: StorageUnit -> String showList :: [StorageUnit] -> ShowS | |
JSON StorageUnit # | |
Defined in Ganeti.Types readJSON :: JSValue -> Result StorageUnit showJSON :: StorageUnit -> JSValue readJSONs :: JSValue -> Result [StorageUnit] showJSONs :: [StorageUnit] -> JSValue |
showSUSimple :: StorageType -> StorageKey -> String Source #
Composes a string representation of storage types without storage parameters
showSULvm :: StorageType -> StorageKey -> SPExclusiveStorage -> String Source #
Composes a string representation of the LVM storage types
diskTemplateToStorageType :: DiskTemplate -> StorageType Source #
Mapping from disk templates to storage types.
addParamsToStorageUnit :: SPExclusiveStorage -> StorageUnitRaw -> StorageUnit Source #
Equips a raw storage unit with its parameters
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
.
Instances
Bounded EvacMode # | |
Defined in Ganeti.Types | |
Enum EvacMode # | |
Defined in Ganeti.Types | |
Eq EvacMode # | |
Ord EvacMode # | |
Show EvacMode # | |
JSON EvacMode # | |
Arbitrary EvacMode | |
evacModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m EvacMode Source #
evacModeToRaw :: EvacMode -> String Source #
data FileDriver Source #
The file driver type.
Instances
fileDriverFromRaw :: forall m. (Monad m, MonadFail m) => String -> m FileDriver Source #
fileDriverToRaw :: FileDriver -> String Source #
data InstCreateMode Source #
The instance create mode.
Instances
instCreateModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m InstCreateMode Source #
instCreateModeToRaw :: InstCreateMode -> String Source #
data RebootType Source #
Reboot type.
Instances
rebootTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m RebootType Source #
rebootTypeToRaw :: RebootType -> String Source #
data ExportMode Source #
Export modes.
Instances
exportModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m ExportMode Source #
exportModeToRaw :: ExportMode -> String Source #
data IAllocatorTestDir Source #
IAllocator run types (OpTestIAllocator).
Instances
iAllocatorTestDirFromRaw :: forall m. (Monad m, MonadFail m) => String -> m IAllocatorTestDir Source #
iAllocatorTestDirToRaw :: IAllocatorTestDir -> String Source #
data IAllocatorMode Source #
IAllocator mode. FIXME: use this in HTools.Backend.IAlloc.
IAllocatorAlloc | |
IAllocatorAllocateSecondary | |
IAllocatorMultiAlloc | |
IAllocatorReloc | |
IAllocatorNodeEvac | |
IAllocatorChangeGroup |
Instances
iAllocatorModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m IAllocatorMode Source #
iAllocatorModeToRaw :: IAllocatorMode -> String Source #
Network mode.
nICModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m NICMode Source #
nICModeToRaw :: NICMode -> String Source #
The JobStatus data type. Note that this is ordered especially such that greater/lesser comparison on values of this type makes sense.
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 # | |
Eq JobStatus # | |
Ord JobStatus # | |
Defined in Ganeti.Types | |
Show JobStatus # | |
JSON JobStatus # | |
Arbitrary JobStatus | |
jobStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m JobStatus Source #
jobStatusToRaw :: JobStatus -> String Source #
data FinalizedJobStatus Source #
Finalized job status.
Instances
finalizedJobStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m FinalizedJobStatus Source #
finalizedJobStatusToRaw :: FinalizedJobStatus -> String Source #
makeJobIdS :: MonadFail m => String -> m JobId Source #
Builds a job ID from a string.
parseJobId :: MonadFail m => JSValue -> m JobId Source #
Parses a job ID.
type RelativeJobId = Negative Int Source #
Relative job ID type alias.
Job ID dependency.
absoluteJobIdDep :: MonadFail m => JobIdDep -> JobId -> m JobIdDep Source #
From job ID dependency and job ID, compute the absolute dependency.
data JobDependency Source #
Job Dependency type.
Instances
absoluteJobDependency :: MonadFail m => JobDependency -> JobId -> m JobDependency Source #
From job dependency and job id compute an absolute job dependency.
getJobIdFromDependency :: JobDependency -> [JobId] Source #
From a job dependency get the absolute job id it depends on, if given absolutely.
data OpSubmitPriority Source #
Valid opcode priorities for submit.
Instances
opSubmitPriorityFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m OpSubmitPriority Source #
opSubmitPriorityToRaw :: OpSubmitPriority -> Int Source #
parseSubmitPriority :: MonadFail m => String -> m OpSubmitPriority Source #
Parse submit priorities from a string.
fmtSubmitPriority :: OpSubmitPriority -> String Source #
Format a submit priority as string.
Our ADT for the OpCode status at runtime (while in a job).
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 | |
Eq OpStatus # | |
Ord OpStatus # | |
Show OpStatus # | |
JSON OpStatus # | |
Arbitrary OpStatus | |
opStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m OpStatus Source #
opStatusToRaw :: OpStatus -> String Source #
Type for the job message type.
Instances
Bounded ELogType # | |
Defined in Ganeti.Types | |
Enum ELogType # | |
Defined in Ganeti.Types | |
Eq ELogType # | |
Ord ELogType # | |
Show ELogType # | |
JSON ELogType # | |
Arbitrary ELogType | |
eLogTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m ELogType Source #
eLogTypeToRaw :: ELogType -> String Source #
type ReasonElem = (String, String, Integer) Source #
Type of one element of a reason trail, of form
(source, reason, timestamp)
.
type ReasonTrail = [ReasonElem] Source #
Type representing a reason trail.
The VTYPES, a mini-type system in Python.
vTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m VType Source #
vTypeToRaw :: VType -> String Source #
Node role type
Instances
Bounded NodeRole # | |
Defined in Ganeti.Types | |
Enum NodeRole # | |
Defined in Ganeti.Types | |
Eq NodeRole # | |
Ord NodeRole # | |
Show NodeRole # | |
JSON NodeRole # | |
nodeRoleFromRaw :: forall m. (Monad m, MonadFail m) => String -> m NodeRole Source #
nodeRoleToRaw :: NodeRole -> String Source #
roleDescription :: NodeRole -> String Source #
The description of the node role.
Disk types
Instances
Bounded DiskMode # | |
Defined in Ganeti.Types | |
Enum DiskMode # | |
Defined in Ganeti.Types | |
Eq DiskMode # | |
Ord DiskMode # | |
Show DiskMode # | |
JSON DiskMode # | |
Arbitrary DiskMode | |
diskModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DiskMode Source #
diskModeToRaw :: DiskMode -> String Source #
data BlockDriver Source #
The persistent block driver type. Currently only one type is allowed.
Instances
blockDriverFromRaw :: forall m. (Monad m, MonadFail m) => String -> m BlockDriver Source #
blockDriverToRaw :: BlockDriver -> String Source #
Instance types
data AdminState Source #
Instances
adminStateFromRaw :: forall m. (Monad m, MonadFail m) => String -> m AdminState Source #
adminStateToRaw :: AdminState -> String Source #
data AdminStateSource Source #
Instances
adminStateSourceFromRaw :: forall m. (Monad m, MonadFail m) => String -> m AdminStateSource Source #
adminStateSourceToRaw :: AdminStateSource -> String Source #
Storage field type
data StorageField Source #
Instances
storageFieldFromRaw :: forall m. (Monad m, MonadFail m) => String -> m StorageField Source #
storageFieldToRaw :: StorageField -> String Source #
Disk access protocol
data DiskAccessMode Source #
Instances
diskAccessModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DiskAccessMode Source #
diskAccessModeToRaw :: DiskAccessMode -> String Source #
data LocalDiskStatus Source #
Local disk status
Python code depends on: DiskStatusOk < DiskStatusUnknown < DiskStatusFaulty
Instances
localDiskStatusFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m LocalDiskStatus Source #
localDiskStatusToRaw :: LocalDiskStatus -> Int Source #
_DiskStatusFaulty :: Int Source #
_DiskStatusUnknown :: Int Source #
_DiskStatusSync :: Int Source #
_DiskStatusOk :: Int Source #
localDiskStatusName :: LocalDiskStatus -> String Source #
data ReplaceDisksMode Source #
Replace disks type.
Instances
replaceDisksModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m ReplaceDisksMode Source #
replaceDisksModeToRaw :: ReplaceDisksMode -> String Source #
data RpcTimeout Source #
Basic timeouts for RPC calls.
Instances
rpcTimeoutFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m RpcTimeout Source #
rpcTimeoutToRaw :: RpcTimeout -> Int Source #
_FourHours :: Int Source #
data HotplugAction Source #
Hotplug action.
Instances
hotplugActionFromRaw :: forall m. (Monad m, MonadFail m) => String -> m HotplugAction Source #
hotplugActionToRaw :: HotplugAction -> String Source #
data HotplugTarget Source #
Hotplug Device Target.
Instances
hotplugTargetFromRaw :: forall m. (Monad m, MonadFail m) => String -> m HotplugTarget Source #
hotplugTargetToRaw :: HotplugTarget -> String Source #
data SshKeyType Source #
SSH key type.
Instances
sshKeyTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m SshKeyType Source #
sshKeyTypeToRaw :: SshKeyType -> String Source #
Private type and instances
A container for values that should be happy to be manipulated yet refuses to be shown unless explicitly requested.
Private | |
|
Instances
Monad Private # | |
Functor Private # | |
Applicative Private # | |
Arbitrary ClusterOsParamsPrivate | |
Defined in Test.Ganeti.Objects | |
Eq a => Eq (Private a) # | |
Ord a => Ord (Private a) # | |
Defined in Ganeti.Types | |
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. |
(Show a, JSON a) => JSON (Private a) # | |
PyValue a => PyValue (Private a) # | |
Defined in Ganeti.Types | |
Arbitrary a => Arbitrary (Private a) | |
showPrivateJSObject :: JSON a => [(String, a)] -> JSObject (Private JSValue) Source #
Secret type and instances
A container for values that behaves like Private, but doesn't leak the value through showJSON
showSecretJSObject :: JSON a => [(String, a)] -> JSObject (Secret JSValue) Source #
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) Source #
type HvParams = Container JSValue Source #
The hypervisor parameter type. This is currently a simple map, without type checking on key/value pairs.
type OsParams = Container String Source #
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) Source #
class TimeStampObject a where Source #
Class of objects that have timestamps.
Instances
TimeStampObject Instance # | |
TimeStampObject Disk # | |
TimeStampObject Network # | |
TimeStampObject Node # | |
TimeStampObject NodeGroup # | |
TimeStampObject Cluster # | |
TimeStampObject ConfigData # | |
Defined in Ganeti.Objects cTimeOf :: ConfigData -> ClockTime Source # mTimeOf :: ConfigData -> ClockTime Source # |
class UuidObject a where Source #
Class of objects that have an UUID.
Instances
UuidObject PartialNic # | |
Defined in Ganeti.Objects.Nic uuidOf :: PartialNic -> String Source # | |
UuidObject Instance # | |
Defined in Ganeti.Objects.Instance | |
UuidObject Disk # | |
Defined in Ganeti.Objects.Disk | |
UuidObject Network # | |
Defined in Ganeti.Objects | |
UuidObject Node # | |
Defined in Ganeti.Objects | |
UuidObject NodeGroup # | |
Defined in Ganeti.Objects | |
UuidObject FilterRule # | |
Defined in Ganeti.Objects uuidOf :: FilterRule -> String Source # | |
UuidObject Cluster # | |
Defined in Ganeti.Objects |
class ForthcomingObject a where Source #
Class of objects that can be forthcoming.
isForthcoming :: a -> Bool Source #
Instances
ForthcomingObject Instance # | |
Defined in Ganeti.Objects.Instance isForthcoming :: Instance -> Bool Source # | |
ForthcomingObject Disk # | |
Defined in Ganeti.Objects.Disk isForthcoming :: Disk -> Bool Source # |
class SerialNoObject a where Source #
Class of object that have a serial number.
Instances
SerialNoObject Instance # | |
Defined in Ganeti.Objects.Instance | |
SerialNoObject Disk # | |
Defined in Ganeti.Objects.Disk | |
SerialNoObject Network # | |
Defined in Ganeti.Objects | |
SerialNoObject Node # | |
Defined in Ganeti.Objects | |
SerialNoObject NodeGroup # | |
Defined in Ganeti.Objects | |
SerialNoObject Cluster # | |
Defined in Ganeti.Objects | |
SerialNoObject ConfigData # | |
Defined in Ganeti.Objects serialOf :: ConfigData -> Int Source # |
class TagsObject a where Source #
Class of objects that have tags.