ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ganeti.Types

Description

Some common Ganeti types.

This holds types common to both core work, and to htools. Types that are very core specific (e.g. configuration objects) should go in Objects, while types that are specific to htools in-memory representation should go into Types.

Synopsis

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.

Instances

Instances details
Bounded AllocPolicy # 
Instance details

Defined in Ganeti.Types

Enum AllocPolicy # 
Instance details

Defined in Ganeti.Types

Show AllocPolicy # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> AllocPolicy -> ShowS

show :: AllocPolicy -> String

showList :: [AllocPolicy] -> ShowS

Eq AllocPolicy # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: AllocPolicy -> AllocPolicy -> Bool

(/=) :: AllocPolicy -> AllocPolicy -> Bool

Ord AllocPolicy # 
Instance details

Defined in Ganeti.Types

JSON AllocPolicy # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result AllocPolicy

showJSON :: AllocPolicy -> JSValue

readJSONs :: JSValue -> Result [AllocPolicy]

showJSONs :: [AllocPolicy] -> JSValue

allocPolicyFromRaw :: forall m. (Monad m, MonadFail m) => String -> m AllocPolicy #

data InstanceStatus #

The Instance real state type.

Instances

Instances details
Bounded InstanceStatus # 
Instance details

Defined in Ganeti.Types

Enum InstanceStatus # 
Instance details

Defined in Ganeti.Types

Show InstanceStatus # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> InstanceStatus -> ShowS

show :: InstanceStatus -> String

showList :: [InstanceStatus] -> ShowS

Eq InstanceStatus # 
Instance details

Defined in Ganeti.Types

Ord InstanceStatus # 
Instance details

Defined in Ganeti.Types

JSON InstanceStatus # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result InstanceStatus

showJSON :: InstanceStatus -> JSValue

readJSONs :: JSValue -> Result [InstanceStatus]

showJSONs :: [InstanceStatus] -> JSValue

instanceStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m InstanceStatus #

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.

Instances

Instances details
Bounded DiskTemplate # 
Instance details

Defined in Ganeti.Types

Enum DiskTemplate # 
Instance details

Defined in Ganeti.Types

Show DiskTemplate # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> DiskTemplate -> ShowS

show :: DiskTemplate -> String

showList :: [DiskTemplate] -> ShowS

HasStringRepr DiskTemplate # 
Instance details

Defined in Ganeti.Types

Methods

fromStringRepr :: MonadFail m => String -> m DiskTemplate #

toStringRepr :: DiskTemplate -> String #

PyValue DiskTemplate # 
Instance details

Defined in Ganeti.Types

Methods

showValue :: DiskTemplate -> String #

showValueList :: [DiskTemplate] -> String #

Eq DiskTemplate # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: DiskTemplate -> DiskTemplate -> Bool

(/=) :: DiskTemplate -> DiskTemplate -> Bool

Ord DiskTemplate # 
Instance details

Defined in Ganeti.Types

JSON DiskTemplate # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result DiskTemplate

showJSON :: DiskTemplate -> JSValue

readJSONs :: JSValue -> Result [DiskTemplate]

showJSONs :: [DiskTemplate] -> JSValue

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

Data type representing what items the tag operations apply to.

Instances

Instances details
Bounded TagKind # 
Instance details

Defined in Ganeti.Types

Enum TagKind # 
Instance details

Defined in Ganeti.Types

Show TagKind # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> TagKind -> ShowS

show :: TagKind -> String

showList :: [TagKind] -> ShowS

Eq TagKind # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: TagKind -> TagKind -> Bool

(/=) :: TagKind -> TagKind -> Bool

Ord TagKind # 
Instance details

Defined in Ganeti.Types

Methods

compare :: TagKind -> TagKind -> Ordering

(<) :: TagKind -> TagKind -> Bool

(<=) :: TagKind -> TagKind -> Bool

(>) :: TagKind -> TagKind -> Bool

(>=) :: TagKind -> TagKind -> Bool

max :: TagKind -> TagKind -> TagKind

min :: TagKind -> TagKind -> TagKind

JSON TagKind # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result TagKind

showJSON :: TagKind -> JSValue

readJSONs :: JSValue -> Result [TagKind]

showJSONs :: [TagKind] -> JSValue

tagKindToRaw :: TagKind -> String #

tagKindFromRaw :: forall m. (Monad m, MonadFail m) => String -> m TagKind #

data NonNegative a #

Type that holds a non-negative value.

Instances

Instances details
Show a => Show (NonNegative a) # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> NonNegative a -> ShowS

show :: NonNegative a -> String

showList :: [NonNegative a] -> ShowS

PyValue a => PyValue (NonNegative a) # 
Instance details

Defined in Ganeti.OpCodes

Methods

showValue :: NonNegative a -> String #

showValueList :: [NonNegative a] -> String #

Eq a => Eq (NonNegative a) # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: NonNegative a -> NonNegative a -> Bool

(/=) :: NonNegative a -> NonNegative a -> Bool

Ord a => Ord (NonNegative a) # 
Instance details

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) # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result (NonNegative a)

showJSON :: NonNegative a -> JSValue

readJSONs :: JSValue -> Result [NonNegative a]

showJSONs :: [NonNegative a] -> JSValue

mkNonNegative :: (MonadFail m, Num a, Ord a, Show a) => a -> m (NonNegative a) #

Smart constructor for NonNegative.

data Positive a #

Type that holds a positive value.

Instances

Instances details
Show a => Show (Positive a) # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> Positive a -> ShowS

show :: Positive a -> String

showList :: [Positive a] -> ShowS

Eq a => Eq (Positive a) # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: Positive a -> Positive a -> Bool

(/=) :: Positive a -> Positive a -> Bool

Ord a => Ord (Positive a) # 
Instance details

Defined in Ganeti.Types

Methods

compare :: Positive a -> Positive a -> Ordering

(<) :: Positive a -> Positive a -> Bool

(<=) :: Positive a -> Positive a -> Bool

(>) :: Positive a -> Positive a -> Bool

(>=) :: Positive a -> Positive a -> Bool

max :: Positive a -> Positive a -> Positive a

min :: Positive a -> Positive a -> Positive a

(JSON a, Num a, Ord a, Show a) => JSON (Positive a) # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result (Positive a)

showJSON :: Positive a -> JSValue

readJSONs :: JSValue -> Result [Positive a]

showJSONs :: [Positive a] -> JSValue

mkPositive :: (MonadFail m, Num a, Ord a, Show a) => a -> m (Positive a) #

Smart constructor for Positive.

data Negative a #

Type that holds a negative value.

Instances

Instances details
Show a => Show (Negative a) # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> Negative a -> ShowS

show :: Negative a -> String

showList :: [Negative a] -> ShowS

Eq a => Eq (Negative a) # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: Negative a -> Negative a -> Bool

(/=) :: Negative a -> Negative a -> Bool

Ord a => Ord (Negative a) # 
Instance details

Defined in Ganeti.Types

Methods

compare :: Negative a -> Negative a -> Ordering

(<) :: Negative a -> Negative a -> Bool

(<=) :: Negative a -> Negative a -> Bool

(>) :: Negative a -> Negative a -> Bool

(>=) :: Negative a -> Negative a -> Bool

max :: Negative a -> Negative a -> Negative a

min :: Negative a -> Negative a -> Negative a

(JSON a, Num a, Ord a, Show a) => JSON (Negative a) # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result (Negative a)

showJSON :: Negative a -> JSValue

readJSONs :: JSValue -> Result [Negative a]

showJSONs :: [Negative a] -> JSValue

mkNegative :: (MonadFail m, Num a, Ord a, Show a) => a -> m (Negative a) #

Smart constructor for Negative.

data NonEmpty a #

Type that holds a non-null list.

Instances

Instances details
Show a => Show (NonEmpty a) # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> NonEmpty a -> ShowS

show :: NonEmpty a -> String

showList :: [NonEmpty a] -> ShowS

PyValue a => PyValue (NonEmpty a) # 
Instance details

Defined in Ganeti.OpCodes

Methods

showValue :: NonEmpty a -> String #

showValueList :: [NonEmpty a] -> String #

Eq a => Eq (NonEmpty a) # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: NonEmpty a -> NonEmpty a -> Bool

(/=) :: NonEmpty a -> NonEmpty a -> Bool

Ord a => Ord (NonEmpty a) # 
Instance details

Defined in Ganeti.Types

Methods

compare :: NonEmpty a -> NonEmpty a -> Ordering

(<) :: NonEmpty a -> NonEmpty a -> Bool

(<=) :: NonEmpty a -> NonEmpty a -> Bool

(>) :: NonEmpty a -> NonEmpty a -> Bool

(>=) :: NonEmpty a -> NonEmpty a -> Bool

max :: NonEmpty a -> NonEmpty a -> NonEmpty a

min :: NonEmpty a -> NonEmpty a -> NonEmpty a

JSON a => JSON (NonEmpty a) # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result (NonEmpty a)

showJSON :: NonEmpty a -> JSValue

readJSONs :: JSValue -> Result [NonEmpty a]

showJSONs :: [NonEmpty a] -> JSValue

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

Instances details
Show IPv4Address # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> IPv4Address -> ShowS

show :: IPv4Address -> String

showList :: [IPv4Address] -> ShowS

Eq IPv4Address # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: IPv4Address -> IPv4Address -> Bool

(/=) :: IPv4Address -> IPv4Address -> Bool

Ord IPv4Address # 
Instance details

Defined in Ganeti.Types

JSON IPv4Address # 
Instance details

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

Instances details
Show IPv4Network # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> IPv4Network -> ShowS

show :: IPv4Network -> String

showList :: [IPv4Network] -> ShowS

Eq IPv4Network # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: IPv4Network -> IPv4Network -> Bool

(/=) :: IPv4Network -> IPv4Network -> Bool

Ord IPv4Network # 
Instance details

Defined in Ganeti.Types

JSON IPv4Network # 
Instance details

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

Instances details
Show IPv6Address # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> IPv6Address -> ShowS

show :: IPv6Address -> String

showList :: [IPv6Address] -> ShowS

Eq IPv6Address # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: IPv6Address -> IPv6Address -> Bool

(/=) :: IPv6Address -> IPv6Address -> Bool

Ord IPv6Address # 
Instance details

Defined in Ganeti.Types

JSON IPv6Address # 
Instance details

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

Instances details
Show IPv6Network # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> IPv6Network -> ShowS

show :: IPv6Network -> String

showList :: [IPv6Network] -> ShowS

Eq IPv6Network # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: IPv6Network -> IPv6Network -> Bool

(/=) :: IPv6Network -> IPv6Network -> Bool

Ord IPv6Network # 
Instance details

Defined in Ganeti.Types

JSON IPv6Network # 
Instance details

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.

Instances

Instances details
Bounded MigrationMode # 
Instance details

Defined in Ganeti.Types

Enum MigrationMode # 
Instance details

Defined in Ganeti.Types

Show MigrationMode # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> MigrationMode -> ShowS

show :: MigrationMode -> String

showList :: [MigrationMode] -> ShowS

Eq MigrationMode # 
Instance details

Defined in Ganeti.Types

Ord MigrationMode # 
Instance details

Defined in Ganeti.Types

JSON MigrationMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result MigrationMode

showJSON :: MigrationMode -> JSValue

readJSONs :: JSValue -> Result [MigrationMode]

showJSONs :: [MigrationMode] -> JSValue

data VerifyOptionalChecks #

Verify optional checks.

Instances

Instances details
Bounded VerifyOptionalChecks # 
Instance details

Defined in Ganeti.Types

Enum VerifyOptionalChecks # 
Instance details

Defined in Ganeti.Types

Show VerifyOptionalChecks # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> VerifyOptionalChecks -> ShowS

show :: VerifyOptionalChecks -> String

showList :: [VerifyOptionalChecks] -> ShowS

PyValue VerifyOptionalChecks # 
Instance details

Defined in Ganeti.OpCodes

Eq VerifyOptionalChecks # 
Instance details

Defined in Ganeti.Types

Ord VerifyOptionalChecks # 
Instance details

Defined in Ganeti.Types

JSON VerifyOptionalChecks # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result VerifyOptionalChecks

showJSON :: VerifyOptionalChecks -> JSValue

readJSONs :: JSValue -> Result [VerifyOptionalChecks]

showJSONs :: [VerifyOptionalChecks] -> JSValue

data DdmSimple #

Dynamic device modification, just add/remove version.

Instances

Instances details
Bounded DdmSimple # 
Instance details

Defined in Ganeti.Types

Enum DdmSimple # 
Instance details

Defined in Ganeti.Types

Show DdmSimple # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> DdmSimple -> ShowS

show :: DdmSimple -> String

showList :: [DdmSimple] -> ShowS

Eq DdmSimple # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: DdmSimple -> DdmSimple -> Bool

(/=) :: DdmSimple -> DdmSimple -> Bool

Ord DdmSimple # 
Instance details

Defined in Ganeti.Types

Methods

compare :: DdmSimple -> DdmSimple -> Ordering

(<) :: DdmSimple -> DdmSimple -> Bool

(<=) :: DdmSimple -> DdmSimple -> Bool

(>) :: DdmSimple -> DdmSimple -> Bool

(>=) :: DdmSimple -> DdmSimple -> Bool

max :: DdmSimple -> DdmSimple -> DdmSimple

min :: DdmSimple -> DdmSimple -> DdmSimple

JSON DdmSimple # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result DdmSimple

showJSON :: DdmSimple -> JSValue

readJSONs :: JSValue -> Result [DdmSimple]

showJSONs :: [DdmSimple] -> JSValue

data DdmFull #

Dynamic device modification, all operations version.

TODO: DDM_SWAP, DDM_MOVE?

Instances

Instances details
Bounded DdmFull # 
Instance details

Defined in Ganeti.Types

Enum DdmFull # 
Instance details

Defined in Ganeti.Types

Show DdmFull # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> DdmFull -> ShowS

show :: DdmFull -> String

showList :: [DdmFull] -> ShowS

Eq DdmFull # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: DdmFull -> DdmFull -> Bool

(/=) :: DdmFull -> DdmFull -> Bool

Ord DdmFull # 
Instance details

Defined in Ganeti.Types

Methods

compare :: DdmFull -> DdmFull -> Ordering

(<) :: DdmFull -> DdmFull -> Bool

(<=) :: DdmFull -> DdmFull -> Bool

(>) :: DdmFull -> DdmFull -> Bool

(>=) :: DdmFull -> DdmFull -> Bool

max :: DdmFull -> DdmFull -> DdmFull

min :: DdmFull -> DdmFull -> DdmFull

JSON DdmFull # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result DdmFull

showJSON :: DdmFull -> JSValue

readJSONs :: JSValue -> Result [DdmFull]

showJSONs :: [DdmFull] -> JSValue

ddmFullToRaw :: DdmFull -> String #

data CVErrorCode #

Cluster verify error codes.

Instances

Instances details
Bounded CVErrorCode # 
Instance details

Defined in Ganeti.Types

Enum CVErrorCode # 
Instance details

Defined in Ganeti.Types

Show CVErrorCode # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> CVErrorCode -> ShowS

show :: CVErrorCode -> String

showList :: [CVErrorCode] -> ShowS

PyValue CVErrorCode # 
Instance details

Defined in Ganeti.OpCodes

Methods

showValue :: CVErrorCode -> String #

showValueList :: [CVErrorCode] -> String #

Eq CVErrorCode # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: CVErrorCode -> CVErrorCode -> Bool

(/=) :: CVErrorCode -> CVErrorCode -> Bool

Ord CVErrorCode # 
Instance details

Defined in Ganeti.Types

JSON CVErrorCode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result CVErrorCode

showJSON :: CVErrorCode -> JSValue

readJSONs :: JSValue -> Result [CVErrorCode]

showJSONs :: [CVErrorCode] -> JSValue

data Hypervisor #

Hypervisor type definitions.

Constructors

Kvm 
XenPvm 
Chroot 
XenHvm 
Lxc 
Fake 

Instances

Instances details
Bounded Hypervisor # 
Instance details

Defined in Ganeti.Types

Enum Hypervisor # 
Instance details

Defined in Ganeti.Types

Show Hypervisor # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> Hypervisor -> ShowS

show :: Hypervisor -> String

showList :: [Hypervisor] -> ShowS

HasStringRepr Hypervisor # 
Instance details

Defined in Ganeti.Types

Methods

fromStringRepr :: MonadFail m => String -> m Hypervisor #

toStringRepr :: Hypervisor -> String #

PyValue Hypervisor # 
Instance details

Defined in Ganeti.Types

Methods

showValue :: Hypervisor -> String #

showValueList :: [Hypervisor] -> String #

Eq Hypervisor # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: Hypervisor -> Hypervisor -> Bool

(/=) :: Hypervisor -> Hypervisor -> Bool

Ord Hypervisor # 
Instance details

Defined in Ganeti.Types

JSON Hypervisor # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result Hypervisor

showJSON :: Hypervisor -> JSValue

readJSONs :: JSValue -> Result [Hypervisor]

showJSONs :: [Hypervisor] -> JSValue

hypervisorFromRaw :: forall m. (Monad m, MonadFail m) => String -> m Hypervisor #

data OobCommand #

Oob command type.

Instances

Instances details
Bounded OobCommand # 
Instance details

Defined in Ganeti.Types

Enum OobCommand # 
Instance details

Defined in Ganeti.Types

Show OobCommand # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> OobCommand -> ShowS

show :: OobCommand -> String

showList :: [OobCommand] -> ShowS

Eq OobCommand # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: OobCommand -> OobCommand -> Bool

(/=) :: OobCommand -> OobCommand -> Bool

Ord OobCommand # 
Instance details

Defined in Ganeti.Types

JSON OobCommand # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result OobCommand

showJSON :: OobCommand -> JSValue

readJSONs :: JSValue -> Result [OobCommand]

showJSONs :: [OobCommand] -> JSValue

data OobStatus #

Oob command status

Instances

Instances details
Bounded OobStatus # 
Instance details

Defined in Ganeti.Types

Enum OobStatus # 
Instance details

Defined in Ganeti.Types

Show OobStatus # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> OobStatus -> ShowS

show :: OobStatus -> String

showList :: [OobStatus] -> ShowS

Eq OobStatus # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: OobStatus -> OobStatus -> Bool

(/=) :: OobStatus -> OobStatus -> Bool

Ord OobStatus # 
Instance details

Defined in Ganeti.Types

Methods

compare :: OobStatus -> OobStatus -> Ordering

(<) :: OobStatus -> OobStatus -> Bool

(<=) :: OobStatus -> OobStatus -> Bool

(>) :: OobStatus -> OobStatus -> Bool

(>=) :: OobStatus -> OobStatus -> Bool

max :: OobStatus -> OobStatus -> OobStatus

min :: OobStatus -> OobStatus -> OobStatus

JSON OobStatus # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result OobStatus

showJSON :: OobStatus -> JSValue

readJSONs :: JSValue -> Result [OobStatus]

showJSONs :: [OobStatus] -> JSValue

data StorageType #

Storage type.

Instances

Instances details
Bounded StorageType # 
Instance details

Defined in Ganeti.Types

Enum StorageType # 
Instance details

Defined in Ganeti.Types

Show StorageType # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> StorageType -> ShowS

show :: StorageType -> String

showList :: [StorageType] -> ShowS

Eq StorageType # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: StorageType -> StorageType -> Bool

(/=) :: StorageType -> StorageType -> Bool

Ord StorageType # 
Instance details

Defined in Ganeti.Types

JSON StorageType # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result StorageType

showJSON :: StorageType -> JSValue

readJSONs :: JSValue -> Result [StorageType]

showJSONs :: [StorageType] -> JSValue

data EvacMode #

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

Instances details
Bounded EvacMode # 
Instance details

Defined in Ganeti.Types

Enum EvacMode # 
Instance details

Defined in Ganeti.Types

Show EvacMode # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> EvacMode -> ShowS

show :: EvacMode -> String

showList :: [EvacMode] -> ShowS

Eq EvacMode # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: EvacMode -> EvacMode -> Bool

(/=) :: EvacMode -> EvacMode -> Bool

Ord EvacMode # 
Instance details

Defined in Ganeti.Types

Methods

compare :: EvacMode -> EvacMode -> Ordering

(<) :: EvacMode -> EvacMode -> Bool

(<=) :: EvacMode -> EvacMode -> Bool

(>) :: EvacMode -> EvacMode -> Bool

(>=) :: EvacMode -> EvacMode -> Bool

max :: EvacMode -> EvacMode -> EvacMode

min :: EvacMode -> EvacMode -> EvacMode

JSON EvacMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result EvacMode

showJSON :: EvacMode -> JSValue

readJSONs :: JSValue -> Result [EvacMode]

showJSONs :: [EvacMode] -> JSValue

evacModeToRaw :: EvacMode -> String #

data FileDriver #

The file driver type.

Instances

Instances details
Bounded FileDriver # 
Instance details

Defined in Ganeti.Types

Enum FileDriver # 
Instance details

Defined in Ganeti.Types

Show FileDriver # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> FileDriver -> ShowS

show :: FileDriver -> String

showList :: [FileDriver] -> ShowS

Eq FileDriver # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: FileDriver -> FileDriver -> Bool

(/=) :: FileDriver -> FileDriver -> Bool

Ord FileDriver # 
Instance details

Defined in Ganeti.Types

JSON FileDriver # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result FileDriver

showJSON :: FileDriver -> JSValue

readJSONs :: JSValue -> Result [FileDriver]

showJSONs :: [FileDriver] -> JSValue

data InstCreateMode #

The instance create mode.

Instances

Instances details
Bounded InstCreateMode # 
Instance details

Defined in Ganeti.Types

Enum InstCreateMode # 
Instance details

Defined in Ganeti.Types

Show InstCreateMode # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> InstCreateMode -> ShowS

show :: InstCreateMode -> String

showList :: [InstCreateMode] -> ShowS

Eq InstCreateMode # 
Instance details

Defined in Ganeti.Types

Ord InstCreateMode # 
Instance details

Defined in Ganeti.Types

JSON InstCreateMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result InstCreateMode

showJSON :: InstCreateMode -> JSValue

readJSONs :: JSValue -> Result [InstCreateMode]

showJSONs :: [InstCreateMode] -> JSValue

data RebootType #

Reboot type.

Instances

Instances details
Bounded RebootType # 
Instance details

Defined in Ganeti.Types

Enum RebootType # 
Instance details

Defined in Ganeti.Types

Show RebootType # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> RebootType -> ShowS

show :: RebootType -> String

showList :: [RebootType] -> ShowS

Eq RebootType # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: RebootType -> RebootType -> Bool

(/=) :: RebootType -> RebootType -> Bool

Ord RebootType # 
Instance details

Defined in Ganeti.Types

JSON RebootType # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result RebootType

showJSON :: RebootType -> JSValue

readJSONs :: JSValue -> Result [RebootType]

showJSONs :: [RebootType] -> JSValue

data ExportMode #

Export modes.

Instances

Instances details
Bounded ExportMode # 
Instance details

Defined in Ganeti.Types

Enum ExportMode # 
Instance details

Defined in Ganeti.Types

Show ExportMode # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> ExportMode -> ShowS

show :: ExportMode -> String

showList :: [ExportMode] -> ShowS

PyValue ExportMode # 
Instance details

Defined in Ganeti.OpCodes

Methods

showValue :: ExportMode -> String #

showValueList :: [ExportMode] -> String #

Eq ExportMode # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: ExportMode -> ExportMode -> Bool

(/=) :: ExportMode -> ExportMode -> Bool

Ord ExportMode # 
Instance details

Defined in Ganeti.Types

JSON ExportMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result ExportMode

showJSON :: ExportMode -> JSValue

readJSONs :: JSValue -> Result [ExportMode]

showJSONs :: [ExportMode] -> JSValue

data IAllocatorTestDir #

IAllocator run types (OpTestIAllocator).

Instances

Instances details
Bounded IAllocatorTestDir # 
Instance details

Defined in Ganeti.Types

Enum IAllocatorTestDir # 
Instance details

Defined in Ganeti.Types

Show IAllocatorTestDir # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> IAllocatorTestDir -> ShowS

show :: IAllocatorTestDir -> String

showList :: [IAllocatorTestDir] -> ShowS

Eq IAllocatorTestDir # 
Instance details

Defined in Ganeti.Types

Ord IAllocatorTestDir # 
Instance details

Defined in Ganeti.Types

JSON IAllocatorTestDir # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result IAllocatorTestDir

showJSON :: IAllocatorTestDir -> JSValue

readJSONs :: JSValue -> Result [IAllocatorTestDir]

showJSONs :: [IAllocatorTestDir] -> JSValue

data IAllocatorMode #

IAllocator mode. FIXME: use this in HTools.Backend.IAlloc.

Instances

Instances details
Bounded IAllocatorMode # 
Instance details

Defined in Ganeti.Types

Enum IAllocatorMode # 
Instance details

Defined in Ganeti.Types

Show IAllocatorMode # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> IAllocatorMode -> ShowS

show :: IAllocatorMode -> String

showList :: [IAllocatorMode] -> ShowS

Eq IAllocatorMode # 
Instance details

Defined in Ganeti.Types

Ord IAllocatorMode # 
Instance details

Defined in Ganeti.Types

JSON IAllocatorMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result IAllocatorMode

showJSON :: IAllocatorMode -> JSValue

readJSONs :: JSValue -> Result [IAllocatorMode]

showJSONs :: [IAllocatorMode] -> JSValue

data NICMode #

Network mode.

Constructors

NMBridged 
NMRouted 
NMOvs 
NMPool 

Instances

Instances details
Bounded NICMode # 
Instance details

Defined in Ganeti.Types

Enum NICMode # 
Instance details

Defined in Ganeti.Types

Show NICMode # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> NICMode -> ShowS

show :: NICMode -> String

showList :: [NICMode] -> ShowS

Eq NICMode # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: NICMode -> NICMode -> Bool

(/=) :: NICMode -> NICMode -> Bool

Ord NICMode # 
Instance details

Defined in Ganeti.Types

Methods

compare :: NICMode -> NICMode -> Ordering

(<) :: NICMode -> NICMode -> Bool

(<=) :: NICMode -> NICMode -> Bool

(>) :: NICMode -> NICMode -> Bool

(>=) :: NICMode -> NICMode -> Bool

max :: NICMode -> NICMode -> NICMode

min :: NICMode -> NICMode -> NICMode

JSON NICMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result NICMode

showJSON :: NICMode -> JSValue

readJSONs :: JSValue -> Result [NICMode]

showJSONs :: [NICMode] -> JSValue

nICModeToRaw :: NICMode -> String #

data JobStatus #

The JobStatus data type. Note that this is ordered especially such that greater/lesser comparison on values of this type makes sense.

Instances

Instances details
Bounded JobStatus # 
Instance details

Defined in Ganeti.Types

Enum JobStatus # 
Instance details

Defined in Ganeti.Types

Show JobStatus # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> JobStatus -> ShowS

show :: JobStatus -> String

showList :: [JobStatus] -> ShowS

Eq JobStatus # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: JobStatus -> JobStatus -> Bool

(/=) :: JobStatus -> JobStatus -> Bool

Ord JobStatus # 
Instance details

Defined in Ganeti.Types

Methods

compare :: JobStatus -> JobStatus -> Ordering

(<) :: JobStatus -> JobStatus -> Bool

(<=) :: JobStatus -> JobStatus -> Bool

(>) :: JobStatus -> JobStatus -> Bool

(>=) :: JobStatus -> JobStatus -> Bool

max :: JobStatus -> JobStatus -> JobStatus

min :: JobStatus -> JobStatus -> JobStatus

JSON JobStatus # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result JobStatus

showJSON :: JobStatus -> JSValue

readJSONs :: JSValue -> Result [JobStatus]

showJSONs :: [JobStatus] -> JSValue

jobStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m JobStatus #

data FinalizedJobStatus #

Finalized job status.

Instances

Instances details
Bounded FinalizedJobStatus # 
Instance details

Defined in Ganeti.Types

Enum FinalizedJobStatus # 
Instance details

Defined in Ganeti.Types

Show FinalizedJobStatus # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> FinalizedJobStatus -> ShowS

show :: FinalizedJobStatus -> String

showList :: [FinalizedJobStatus] -> ShowS

Eq FinalizedJobStatus # 
Instance details

Defined in Ganeti.Types

Ord FinalizedJobStatus # 
Instance details

Defined in Ganeti.Types

JSON FinalizedJobStatus # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result FinalizedJobStatus

showJSON :: FinalizedJobStatus -> JSValue

readJSONs :: JSValue -> Result [FinalizedJobStatus]

showJSONs :: [FinalizedJobStatus] -> JSValue

data JobId #

The Ganeti job type.

Instances

Instances details
Show JobId # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> JobId -> ShowS

show :: JobId -> String

showList :: [JobId] -> ShowS

Eq JobId # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: JobId -> JobId -> Bool

(/=) :: JobId -> JobId -> Bool

Ord JobId # 
Instance details

Defined in Ganeti.Types

Methods

compare :: JobId -> JobId -> Ordering

(<) :: JobId -> JobId -> Bool

(<=) :: JobId -> JobId -> Bool

(>) :: JobId -> JobId -> Bool

(>=) :: JobId -> JobId -> Bool

max :: JobId -> JobId -> JobId

min :: JobId -> JobId -> JobId

JSON JobId # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result JobId

showJSON :: JobId -> JSValue

readJSONs :: JSValue -> Result [JobId]

showJSONs :: [JobId] -> JSValue

fromJobId :: JobId -> Int #

makeJobId :: MonadFail m => Int -> m JobId #

Builds a job ID.

makeJobIdS :: MonadFail m => String -> m JobId #

Builds a job ID from a string.

type RelativeJobId = Negative Int #

Relative job ID type alias.

data JobIdDep #

Job ID dependency.

Instances

Instances details
Show JobIdDep # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> JobIdDep -> ShowS

show :: JobIdDep -> String

showList :: [JobIdDep] -> ShowS

Eq JobIdDep # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: JobIdDep -> JobIdDep -> Bool

(/=) :: JobIdDep -> JobIdDep -> Bool

Ord JobIdDep # 
Instance details

Defined in Ganeti.Types

Methods

compare :: JobIdDep -> JobIdDep -> Ordering

(<) :: JobIdDep -> JobIdDep -> Bool

(<=) :: JobIdDep -> JobIdDep -> Bool

(>) :: JobIdDep -> JobIdDep -> Bool

(>=) :: JobIdDep -> JobIdDep -> Bool

max :: JobIdDep -> JobIdDep -> JobIdDep

min :: JobIdDep -> JobIdDep -> JobIdDep

JSON JobIdDep # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result JobIdDep

showJSON :: JobIdDep -> JSValue

readJSONs :: JSValue -> Result [JobIdDep]

showJSONs :: [JobIdDep] -> JSValue

data JobDependency #

Job Dependency type.

Instances

Instances details
Show JobDependency # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> JobDependency -> ShowS

show :: JobDependency -> String

showList :: [JobDependency] -> ShowS

Eq JobDependency # 
Instance details

Defined in Ganeti.Types

Ord JobDependency # 
Instance details

Defined in Ganeti.Types

JSON JobDependency # 
Instance details

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.

Instances

Instances details
Bounded OpSubmitPriority # 
Instance details

Defined in Ganeti.Types

Enum OpSubmitPriority # 
Instance details

Defined in Ganeti.Types

Show OpSubmitPriority # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> OpSubmitPriority -> ShowS

show :: OpSubmitPriority -> String

showList :: [OpSubmitPriority] -> ShowS

Eq OpSubmitPriority # 
Instance details

Defined in Ganeti.Types

Ord OpSubmitPriority # 
Instance details

Defined in Ganeti.Types

JSON OpSubmitPriority # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result OpSubmitPriority

showJSON :: OpSubmitPriority -> JSValue

readJSONs :: JSValue -> Result [OpSubmitPriority]

showJSONs :: [OpSubmitPriority] -> JSValue

parseSubmitPriority :: MonadFail m => String -> m OpSubmitPriority #

Parse submit priorities from a string.

fmtSubmitPriority :: OpSubmitPriority -> String #

Format a submit priority as string.

data OpStatus #

Our ADT for the OpCode status at runtime (while in a job).

Instances

Instances details
Bounded OpStatus # 
Instance details

Defined in Ganeti.Types

Enum OpStatus # 
Instance details

Defined in Ganeti.Types

Show OpStatus # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> OpStatus -> ShowS

show :: OpStatus -> String

showList :: [OpStatus] -> ShowS

Eq OpStatus # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: OpStatus -> OpStatus -> Bool

(/=) :: OpStatus -> OpStatus -> Bool

Ord OpStatus # 
Instance details

Defined in Ganeti.Types

Methods

compare :: OpStatus -> OpStatus -> Ordering

(<) :: OpStatus -> OpStatus -> Bool

(<=) :: OpStatus -> OpStatus -> Bool

(>) :: OpStatus -> OpStatus -> Bool

(>=) :: OpStatus -> OpStatus -> Bool

max :: OpStatus -> OpStatus -> OpStatus

min :: OpStatus -> OpStatus -> OpStatus

JSON OpStatus # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result OpStatus

showJSON :: OpStatus -> JSValue

readJSONs :: JSValue -> Result [OpStatus]

showJSONs :: [OpStatus] -> JSValue

opStatusToRaw :: OpStatus -> String #

opStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m OpStatus #

data ELogType #

Type for the job message type.

Instances

Instances details
Bounded ELogType # 
Instance details

Defined in Ganeti.Types

Enum ELogType # 
Instance details

Defined in Ganeti.Types

Show ELogType # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> ELogType -> ShowS

show :: ELogType -> String

showList :: [ELogType] -> ShowS

Eq ELogType # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: ELogType -> ELogType -> Bool

(/=) :: ELogType -> ELogType -> Bool

Ord ELogType # 
Instance details

Defined in Ganeti.Types

Methods

compare :: ELogType -> ELogType -> Ordering

(<) :: ELogType -> ELogType -> Bool

(<=) :: ELogType -> ELogType -> Bool

(>) :: ELogType -> ELogType -> Bool

(>=) :: ELogType -> ELogType -> Bool

max :: ELogType -> ELogType -> ELogType

min :: ELogType -> ELogType -> ELogType

JSON ELogType # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result ELogType

showJSON :: ELogType -> JSValue

readJSONs :: JSValue -> Result [ELogType]

showJSONs :: [ELogType] -> JSValue

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

Instances

Instances details
Show StorageUnit # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> StorageUnit -> ShowS

show :: StorageUnit -> String

showList :: [StorageUnit] -> ShowS

Eq StorageUnit # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: StorageUnit -> StorageUnit -> Bool

(/=) :: StorageUnit -> StorageUnit -> Bool

JSON StorageUnit # 
Instance details

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

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.

data VType #

The VTYPES, a mini-type system in Python.

Instances

Instances details
Bounded VType # 
Instance details

Defined in Ganeti.Types

Enum VType # 
Instance details

Defined in Ganeti.Types

Show VType # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> VType -> ShowS

show :: VType -> String

showList :: [VType] -> ShowS

PyValue VType # 
Instance details

Defined in Ganeti.Types

Methods

showValue :: VType -> String #

showValueList :: [VType] -> String #

Eq VType # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: VType -> VType -> Bool

(/=) :: VType -> VType -> Bool

Ord VType # 
Instance details

Defined in Ganeti.Types

Methods

compare :: VType -> VType -> Ordering

(<) :: VType -> VType -> Bool

(<=) :: VType -> VType -> Bool

(>) :: VType -> VType -> Bool

(>=) :: VType -> VType -> Bool

max :: VType -> VType -> VType

min :: VType -> VType -> VType

JSON VType # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result VType

showJSON :: VType -> JSValue

readJSONs :: JSValue -> Result [VType]

showJSONs :: [VType] -> JSValue

vTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m VType #

vTypeToRaw :: VType -> String #

data NodeRole #

Instances

Instances details
Bounded NodeRole # 
Instance details

Defined in Ganeti.Types

Enum NodeRole # 
Instance details

Defined in Ganeti.Types

Show NodeRole # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> NodeRole -> ShowS

show :: NodeRole -> String

showList :: [NodeRole] -> ShowS

Eq NodeRole # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: NodeRole -> NodeRole -> Bool

(/=) :: NodeRole -> NodeRole -> Bool

Ord NodeRole # 
Instance details

Defined in Ganeti.Types

Methods

compare :: NodeRole -> NodeRole -> Ordering

(<) :: NodeRole -> NodeRole -> Bool

(<=) :: NodeRole -> NodeRole -> Bool

(>) :: NodeRole -> NodeRole -> Bool

(>=) :: NodeRole -> NodeRole -> Bool

max :: NodeRole -> NodeRole -> NodeRole

min :: NodeRole -> NodeRole -> NodeRole

JSON NodeRole # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result NodeRole

showJSON :: NodeRole -> JSValue

readJSONs :: JSValue -> Result [NodeRole]

showJSONs :: [NodeRole] -> JSValue

nodeRoleToRaw :: NodeRole -> String #

roleDescription :: NodeRole -> String #

The description of the node role.

data DiskMode #

Constructors

DiskRdOnly 
DiskRdWr 

Instances

Instances details
Bounded DiskMode # 
Instance details

Defined in Ganeti.Types

Enum DiskMode # 
Instance details

Defined in Ganeti.Types

Show DiskMode # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> DiskMode -> ShowS

show :: DiskMode -> String

showList :: [DiskMode] -> ShowS

Eq DiskMode # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: DiskMode -> DiskMode -> Bool

(/=) :: DiskMode -> DiskMode -> Bool

Ord DiskMode # 
Instance details

Defined in Ganeti.Types

Methods

compare :: DiskMode -> DiskMode -> Ordering

(<) :: DiskMode -> DiskMode -> Bool

(<=) :: DiskMode -> DiskMode -> Bool

(>) :: DiskMode -> DiskMode -> Bool

(>=) :: DiskMode -> DiskMode -> Bool

max :: DiskMode -> DiskMode -> DiskMode

min :: DiskMode -> DiskMode -> DiskMode

JSON DiskMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result DiskMode

showJSON :: DiskMode -> JSValue

readJSONs :: JSValue -> Result [DiskMode]

showJSONs :: [DiskMode] -> JSValue

diskModeToRaw :: DiskMode -> String #

data BlockDriver #

The persistent block driver type. Currently only one type is allowed.

Constructors

BlockDrvManual 

Instances

Instances details
Bounded BlockDriver # 
Instance details

Defined in Ganeti.Types

Enum BlockDriver # 
Instance details

Defined in Ganeti.Types

Show BlockDriver # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> BlockDriver -> ShowS

show :: BlockDriver -> String

showList :: [BlockDriver] -> ShowS

Eq BlockDriver # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: BlockDriver -> BlockDriver -> Bool

(/=) :: BlockDriver -> BlockDriver -> Bool

Ord BlockDriver # 
Instance details

Defined in Ganeti.Types

JSON BlockDriver # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result BlockDriver

showJSON :: BlockDriver -> JSValue

readJSONs :: JSValue -> Result [BlockDriver]

showJSONs :: [BlockDriver] -> JSValue

data AdminState #

Instances

Instances details
Bounded AdminState # 
Instance details

Defined in Ganeti.Types

Enum AdminState # 
Instance details

Defined in Ganeti.Types

Show AdminState # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> AdminState -> ShowS

show :: AdminState -> String

showList :: [AdminState] -> ShowS

Eq AdminState # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: AdminState -> AdminState -> Bool

(/=) :: AdminState -> AdminState -> Bool

Ord AdminState # 
Instance details

Defined in Ganeti.Types

JSON AdminState # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result AdminState

showJSON :: AdminState -> JSValue

readJSONs :: JSValue -> Result [AdminState]

showJSONs :: [AdminState] -> JSValue

adminStateFromRaw :: forall m. (Monad m, MonadFail m) => String -> m AdminState #

data AdminStateSource #

Constructors

AdminSource 
UserSource 

Instances

Instances details
Bounded AdminStateSource # 
Instance details

Defined in Ganeti.Types

Enum AdminStateSource # 
Instance details

Defined in Ganeti.Types

Show AdminStateSource # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> AdminStateSource -> ShowS

show :: AdminStateSource -> String

showList :: [AdminStateSource] -> ShowS

PyValue AdminStateSource # 
Instance details

Defined in Ganeti.Types

Methods

showValue :: AdminStateSource -> String #

showValueList :: [AdminStateSource] -> String #

Eq AdminStateSource # 
Instance details

Defined in Ganeti.Types

Ord AdminStateSource # 
Instance details

Defined in Ganeti.Types

JSON AdminStateSource # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result AdminStateSource

showJSON :: AdminStateSource -> JSValue

readJSONs :: JSValue -> Result [AdminStateSource]

showJSONs :: [AdminStateSource] -> JSValue

adminStateSourceFromRaw :: forall m. (Monad m, MonadFail m) => String -> m AdminStateSource #

data StorageField #

Instances

Instances details
Bounded StorageField # 
Instance details

Defined in Ganeti.Types

Enum StorageField # 
Instance details

Defined in Ganeti.Types

Show StorageField # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> StorageField -> ShowS

show :: StorageField -> String

showList :: [StorageField] -> ShowS

Eq StorageField # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: StorageField -> StorageField -> Bool

(/=) :: StorageField -> StorageField -> Bool

Ord StorageField # 
Instance details

Defined in Ganeti.Types

JSON StorageField # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result StorageField

showJSON :: StorageField -> JSValue

readJSONs :: JSValue -> Result [StorageField]

showJSONs :: [StorageField] -> JSValue

data DiskAccessMode #

Instances

Instances details
Bounded DiskAccessMode # 
Instance details

Defined in Ganeti.Types

Enum DiskAccessMode # 
Instance details

Defined in Ganeti.Types

Show DiskAccessMode # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> DiskAccessMode -> ShowS

show :: DiskAccessMode -> String

showList :: [DiskAccessMode] -> ShowS

Eq DiskAccessMode # 
Instance details

Defined in Ganeti.Types

Ord DiskAccessMode # 
Instance details

Defined in Ganeti.Types

JSON DiskAccessMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result DiskAccessMode

showJSON :: DiskAccessMode -> JSValue

readJSONs :: JSValue -> Result [DiskAccessMode]

showJSONs :: [DiskAccessMode] -> JSValue

data LocalDiskStatus #

Local disk status

Python code depends on: DiskStatusOk < DiskStatusUnknown < DiskStatusFaulty

localDiskStatusFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m LocalDiskStatus #

data ReplaceDisksMode #

Replace disks type.

Instances

Instances details
Bounded ReplaceDisksMode # 
Instance details

Defined in Ganeti.Types

Enum ReplaceDisksMode # 
Instance details

Defined in Ganeti.Types

Show ReplaceDisksMode # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> ReplaceDisksMode -> ShowS

show :: ReplaceDisksMode -> String

showList :: [ReplaceDisksMode] -> ShowS

Eq ReplaceDisksMode # 
Instance details

Defined in Ganeti.Types

Ord ReplaceDisksMode # 
Instance details

Defined in Ganeti.Types

JSON ReplaceDisksMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result ReplaceDisksMode

showJSON :: ReplaceDisksMode -> JSValue

readJSONs :: JSValue -> Result [ReplaceDisksMode]

showJSONs :: [ReplaceDisksMode] -> JSValue

data RpcTimeout #

Basic timeouts for RPC calls.

Constructors

Urgent 
Fast 
Normal 
Slow 
FourHours 
OneDay 

Instances

Instances details
Bounded RpcTimeout # 
Instance details

Defined in Ganeti.Types

Enum RpcTimeout # 
Instance details

Defined in Ganeti.Types

Show RpcTimeout # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> RpcTimeout -> ShowS

show :: RpcTimeout -> String

showList :: [RpcTimeout] -> ShowS

Eq RpcTimeout # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: RpcTimeout -> RpcTimeout -> Bool

(/=) :: RpcTimeout -> RpcTimeout -> Bool

Ord RpcTimeout # 
Instance details

Defined in Ganeti.Types

rpcTimeoutFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m RpcTimeout #

data HotplugTarget #

Hotplug Device Target.

Constructors

HTDisk 
HTNic 

Instances

Instances details
Bounded HotplugTarget # 
Instance details

Defined in Ganeti.Types

Enum HotplugTarget # 
Instance details

Defined in Ganeti.Types

Show HotplugTarget # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> HotplugTarget -> ShowS

show :: HotplugTarget -> String

showList :: [HotplugTarget] -> ShowS

Eq HotplugTarget # 
Instance details

Defined in Ganeti.Types

Ord HotplugTarget # 
Instance details

Defined in Ganeti.Types

JSON HotplugTarget # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result HotplugTarget

showJSON :: HotplugTarget -> JSValue

readJSONs :: JSValue -> Result [HotplugTarget]

showJSONs :: [HotplugTarget] -> JSValue

data HotplugAction #

Hotplug action.

Constructors

HAAdd 
HARemove 
HAMod 

Instances

Instances details
Bounded HotplugAction # 
Instance details

Defined in Ganeti.Types

Enum HotplugAction # 
Instance details

Defined in Ganeti.Types

Show HotplugAction # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> HotplugAction -> ShowS

show :: HotplugAction -> String

showList :: [HotplugAction] -> ShowS

Eq HotplugAction # 
Instance details

Defined in Ganeti.Types

Ord HotplugAction # 
Instance details

Defined in Ganeti.Types

JSON HotplugAction # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result HotplugAction

showJSON :: HotplugAction -> JSValue

readJSONs :: JSValue -> Result [HotplugAction]

showJSONs :: [HotplugAction] -> JSValue

data SshKeyType #

SSH key type.

Constructors

RSA 
DSA 
ECDSA 

Instances

Instances details
Bounded SshKeyType # 
Instance details

Defined in Ganeti.Types

Enum SshKeyType # 
Instance details

Defined in Ganeti.Types

Show SshKeyType # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> SshKeyType -> ShowS

show :: SshKeyType -> String

showList :: [SshKeyType] -> ShowS

Eq SshKeyType # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: SshKeyType -> SshKeyType -> Bool

(/=) :: SshKeyType -> SshKeyType -> Bool

Ord SshKeyType # 
Instance details

Defined in Ganeti.Types

JSON SshKeyType # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result SshKeyType

showJSON :: SshKeyType -> JSValue

readJSONs :: JSValue -> Result [SshKeyType]

showJSONs :: [SshKeyType] -> JSValue

newtype Private a #

A container for values that should be happy to be manipulated yet refuses to be shown unless explicitly requested.

Constructors

Private 

Fields

Instances

Instances details
Applicative Private # 
Instance details

Defined in Ganeti.Types

Methods

pure :: a -> Private a

(<*>) :: Private (a -> b) -> Private a -> Private b

liftA2 :: (a -> b -> c) -> Private a -> Private b -> Private c

(*>) :: Private a -> Private b -> Private b

(<*) :: Private a -> Private b -> Private a

Functor Private # 
Instance details

Defined in Ganeti.Types

Methods

fmap :: (a -> b) -> Private a -> Private b

(<$) :: a -> Private b -> Private a

Monad Private # 
Instance details

Defined in Ganeti.Types

Methods

(>>=) :: Private a -> (a -> Private b) -> Private b

(>>) :: Private a -> Private b -> Private b

return :: a -> Private a

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.

Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> Private a -> ShowS

show :: Private a -> String

showList :: [Private a] -> ShowS

PyValue a => PyValue (Private a) # 
Instance details

Defined in Ganeti.Types

Methods

showValue :: Private a -> String #

showValueList :: [Private a] -> String #

Eq a => Eq (Private a) # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: Private a -> Private a -> Bool

(/=) :: Private a -> Private a -> Bool

Ord a => Ord (Private a) # 
Instance details

Defined in Ganeti.Types

Methods

compare :: Private a -> Private a -> Ordering

(<) :: Private a -> Private a -> Bool

(<=) :: Private a -> Private a -> Bool

(>) :: Private a -> Private a -> Bool

(>=) :: Private a -> Private a -> Bool

max :: Private a -> Private a -> Private a

min :: Private a -> Private a -> Private a

(Show a, JSON a) => JSON (Private a) # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result (Private a)

showJSON :: Private a -> JSValue

readJSONs :: JSValue -> Result [Private a]

showJSONs :: [Private a] -> JSValue

showPrivateJSObject :: JSON a => [(String, a)] -> JSObject (Private JSValue) #

newtype Secret a #

A container for values that behaves like Private, but doesn't leak the value through showJSON

Constructors

Secret 

Fields

Instances

Instances details
Applicative Secret # 
Instance details

Defined in Ganeti.Types

Methods

pure :: a -> Secret a

(<*>) :: Secret (a -> b) -> Secret a -> Secret b

liftA2 :: (a -> b -> c) -> Secret a -> Secret b -> Secret c

(*>) :: Secret a -> Secret b -> Secret b

(<*) :: Secret a -> Secret b -> Secret a

Functor Secret # 
Instance details

Defined in Ganeti.Types

Methods

fmap :: (a -> b) -> Secret a -> Secret b

(<$) :: a -> Secret b -> Secret a

Monad Secret # 
Instance details

Defined in Ganeti.Types

Methods

(>>=) :: Secret a -> (a -> Secret b) -> Secret b

(>>) :: Secret a -> Secret b -> Secret b

return :: a -> Secret a

Show a => Show (Secret a) # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> Secret a -> ShowS

show :: Secret a -> String

showList :: [Secret a] -> ShowS

PyValue a => PyValue (Secret a) # 
Instance details

Defined in Ganeti.Types

Methods

showValue :: Secret a -> String #

showValueList :: [Secret a] -> String #

Eq a => Eq (Secret a) # 
Instance details

Defined in Ganeti.Types

Methods

(==) :: Secret a -> Secret a -> Bool

(/=) :: Secret a -> Secret a -> Bool

Ord a => Ord (Secret a) # 
Instance details

Defined in Ganeti.Types

Methods

compare :: Secret a -> Secret a -> Ordering

(<) :: Secret a -> Secret a -> Bool

(<=) :: Secret a -> Secret a -> Bool

(>) :: Secret a -> Secret a -> Bool

(>=) :: Secret a -> Secret a -> Bool

max :: Secret a -> Secret a -> Secret a

min :: Secret a -> Secret a -> Secret a

(Show a, JSON a) => JSON (Secret a) # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result (Secret a)

showJSON :: Secret a -> JSValue

readJSONs :: JSValue -> Result [Secret a]

showJSONs :: [Secret a] -> JSValue

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

redacted :: String #

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.

class TimeStampObject a where #

Class of objects that have timestamps.

Methods

cTimeOf :: a -> ClockTime #

mTimeOf :: a -> ClockTime #

Instances

Instances details
TimeStampObject Cluster # 
Instance details

Defined in Ganeti.Objects

Methods

cTimeOf :: Cluster -> ClockTime #

mTimeOf :: Cluster -> ClockTime #

TimeStampObject ConfigData # 
Instance details

Defined in Ganeti.Objects

Methods

cTimeOf :: ConfigData -> ClockTime #

mTimeOf :: ConfigData -> ClockTime #

TimeStampObject Network # 
Instance details

Defined in Ganeti.Objects

Methods

cTimeOf :: Network -> ClockTime #

mTimeOf :: Network -> ClockTime #

TimeStampObject Node # 
Instance details

Defined in Ganeti.Objects

Methods

cTimeOf :: Node -> ClockTime #

mTimeOf :: Node -> ClockTime #

TimeStampObject NodeGroup # 
Instance details

Defined in Ganeti.Objects

Methods

cTimeOf :: NodeGroup -> ClockTime #

mTimeOf :: NodeGroup -> ClockTime #

TimeStampObject Disk # 
Instance details

Defined in Ganeti.Objects.Disk

Methods

cTimeOf :: Disk -> ClockTime #

mTimeOf :: Disk -> ClockTime #

TimeStampObject Instance # 
Instance details

Defined in Ganeti.Objects.Instance

Methods

cTimeOf :: Instance -> ClockTime #

mTimeOf :: Instance -> ClockTime #

class UuidObject a where #

Class of objects that have an UUID.

Methods

uuidOf :: a -> String #

Instances

Instances details
UuidObject Cluster # 
Instance details

Defined in Ganeti.Objects

Methods

uuidOf :: Cluster -> String #

UuidObject FilterRule # 
Instance details

Defined in Ganeti.Objects

Methods

uuidOf :: FilterRule -> String #

UuidObject Network # 
Instance details

Defined in Ganeti.Objects

Methods

uuidOf :: Network -> String #

UuidObject Node # 
Instance details

Defined in Ganeti.Objects

Methods

uuidOf :: Node -> String #

UuidObject NodeGroup # 
Instance details

Defined in Ganeti.Objects

Methods

uuidOf :: NodeGroup -> String #

UuidObject Disk # 
Instance details

Defined in Ganeti.Objects.Disk

Methods

uuidOf :: Disk -> String #

UuidObject Instance # 
Instance details

Defined in Ganeti.Objects.Instance

Methods

uuidOf :: Instance -> String #

UuidObject PartialNic # 
Instance details

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

Instances details
ForthcomingObject Disk # 
Instance details

Defined in Ganeti.Objects.Disk

Methods

isForthcoming :: Disk -> Bool #

ForthcomingObject Instance # 
Instance details

Defined in Ganeti.Objects.Instance

Methods

isForthcoming :: Instance -> Bool #

class SerialNoObject a where #

Class of object that have a serial number.

Methods

serialOf :: a -> Int #

Instances

Instances details
SerialNoObject Cluster # 
Instance details

Defined in Ganeti.Objects

Methods

serialOf :: Cluster -> Int #

SerialNoObject ConfigData # 
Instance details

Defined in Ganeti.Objects

Methods

serialOf :: ConfigData -> Int #

SerialNoObject Network # 
Instance details

Defined in Ganeti.Objects

Methods

serialOf :: Network -> Int #

SerialNoObject Node # 
Instance details

Defined in Ganeti.Objects

Methods

serialOf :: Node -> Int #

SerialNoObject NodeGroup # 
Instance details

Defined in Ganeti.Objects

Methods

serialOf :: NodeGroup -> Int #

SerialNoObject Disk # 
Instance details

Defined in Ganeti.Objects.Disk

Methods

serialOf :: Disk -> Int #

SerialNoObject Instance # 
Instance details

Defined in Ganeti.Objects.Instance

Methods

serialOf :: Instance -> Int #

class TagsObject a where #

Class of objects that have tags.

Methods

tagsOf :: a -> TagSet #

Instances

Instances details
TagsObject Cluster # 
Instance details

Defined in Ganeti.Objects

Methods

tagsOf :: Cluster -> TagSet #

TagsObject Network # 
Instance details

Defined in Ganeti.Objects

Methods

tagsOf :: Network -> TagSet #

TagsObject Node # 
Instance details

Defined in Ganeti.Objects

Methods

tagsOf :: Node -> TagSet #

TagsObject NodeGroup # 
Instance details

Defined in Ganeti.Objects

Methods

tagsOf :: NodeGroup -> TagSet #

TagsObject Instance # 
Instance details

Defined in Ganeti.Objects.Instance

Methods

tagsOf :: Instance -> TagSet #