ganeti
Safe HaskellNone

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

Generic types

newtype NonNegative a Source #

Type that holds a non-negative value.

Constructors

NonNegative 

Fields

Instances

Instances details
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

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

(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

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

Defined in Ganeti.OpCodes

Methods

showValue :: NonNegative a -> String Source #

showValueList :: [NonNegative a] -> String Source #

(Arbitrary a, Ord a, Num a, Show a) => Arbitrary (NonNegative a) 
Instance details

Defined in Test.Ganeti.Types

Methods

arbitrary :: Gen (NonNegative a)

shrink :: NonNegative a -> [NonNegative a]

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

Smart constructor for NonNegative.

newtype Positive a Source #

Type that holds a positive value.

Constructors

Positive 

Fields

Instances

Instances details
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

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

(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

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

Defined in Test.Ganeti.Types

Methods

arbitrary :: Gen (Positive a)

shrink :: Positive a -> [Positive a]

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

Smart constructor for Positive.

newtype Negative a Source #

Type that holds a negative value.

Constructors

Negative 

Fields

Instances

Instances details
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

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

(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

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

Defined in Test.Ganeti.Types

Methods

arbitrary :: Gen (Negative a)

shrink :: Negative a -> [Negative a]

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

Smart constructor for Negative.

newtype NonEmpty a Source #

Type that holds a non-null list.

Constructors

NonEmpty 

Fields

Instances

Instances details
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

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

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

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

Defined in Ganeti.OpCodes

Methods

showValue :: NonEmpty a -> String Source #

showValueList :: [NonEmpty a] -> String Source #

Arbitrary a => Arbitrary (NonEmpty a) 
Instance details

Defined in Test.Ganeti.Types

Methods

arbitrary :: Gen (NonEmpty a)

shrink :: NonEmpty a -> [NonEmpty a]

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.

newtype IPv4Address Source #

Constructors

IPv4Address 

Fields

Instances

Instances details
Eq IPv4Address # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord IPv4Address # 
Instance details

Defined in Ganeti.Types

Show IPv4Address # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> IPv4Address -> ShowS

show :: IPv4Address -> String

showList :: [IPv4Address] -> ShowS

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

newtype IPv4Network Source #

Constructors

IPv4Network 

Fields

Instances

Instances details
Eq IPv4Network # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord IPv4Network # 
Instance details

Defined in Ganeti.Types

Show IPv4Network # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> IPv4Network -> ShowS

show :: IPv4Network -> String

showList :: [IPv4Network] -> ShowS

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

newtype IPv6Address Source #

Constructors

IPv6Address 

Fields

Instances

Instances details
Eq IPv6Address # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord IPv6Address # 
Instance details

Defined in Ganeti.Types

Show IPv6Address # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> IPv6Address -> ShowS

show :: IPv6Address -> String

showList :: [IPv6Address] -> ShowS

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

newtype IPv6Network Source #

Constructors

IPv6Network 

Fields

Instances

Instances details
Eq IPv6Network # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord IPv6Network # 
Instance details

Defined in Ganeti.Types

Show IPv6Network # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> IPv6Network -> ShowS

show :: IPv6Network -> String

showList :: [IPv6Network] -> ShowS

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

Instances details
Bounded DiskTemplate # 
Instance details

Defined in Ganeti.Types

Enum DiskTemplate # 
Instance details

Defined in Ganeti.Types

Eq DiskTemplate # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

JSON DiskTemplate # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result DiskTemplate

showJSON :: DiskTemplate -> JSValue

readJSONs :: JSValue -> Result [DiskTemplate]

showJSONs :: [DiskTemplate] -> JSValue

HasStringRepr DiskTemplate # 
Instance details

Defined in Ganeti.Types

Methods

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

toStringRepr :: DiskTemplate -> String Source #

PyValue DiskTemplate # 
Instance details

Defined in Ganeti.Types

Methods

showValue :: DiskTemplate -> String Source #

showValueList :: [DiskTemplate] -> String Source #

Arbitrary DiskTemplate

Custom Arbitrary instance for DiskTemplate, which needs to handle the case of file storage being disabled at configure time.

Instance details

Defined in Test.Ganeti.Types

diskTemplateFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DiskTemplate 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 TagKind Source #

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

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

Show TagKind # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> TagKind -> ShowS

show :: TagKind -> String

showList :: [TagKind] -> ShowS

JSON TagKind # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result TagKind

showJSON :: TagKind -> JSValue

readJSONs :: JSValue -> Result [TagKind]

showJSONs :: [TagKind] -> JSValue

Arbitrary TagKind 
Instance details

Defined in Test.Ganeti.Types

Methods

arbitrary :: Gen TagKind

shrink :: TagKind -> [TagKind]

tagKindFromRaw :: forall m. (Monad m, MonadFail m) => String -> m TagKind 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

Instances details
Bounded AllocPolicy # 
Instance details

Defined in Ganeti.Types

Enum AllocPolicy # 
Instance details

Defined in Ganeti.Types

Eq AllocPolicy # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

JSON AllocPolicy # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result AllocPolicy

showJSON :: AllocPolicy -> JSValue

readJSONs :: JSValue -> Result [AllocPolicy]

showJSONs :: [AllocPolicy] -> JSValue

Arbitrary AllocPolicy 
Instance details

Defined in Test.Ganeti.Types

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

data InstanceStatus Source #

The Instance real state type.

Instances

Instances details
Bounded InstanceStatus # 
Instance details

Defined in Ganeti.Types

Enum InstanceStatus # 
Instance details

Defined in Ganeti.Types

Eq InstanceStatus # 
Instance details

Defined in Ganeti.Types

Ord 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

JSON InstanceStatus # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result InstanceStatus

showJSON :: InstanceStatus -> JSValue

readJSONs :: JSValue -> Result [InstanceStatus]

showJSONs :: [InstanceStatus] -> JSValue

Arbitrary InstanceStatus 
Instance details

Defined in Test.Ganeti.Types

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

data MigrationMode Source #

Migration mode.

Instances

Instances details
Bounded MigrationMode # 
Instance details

Defined in Ganeti.Types

Enum MigrationMode # 
Instance details

Defined in Ganeti.Types

Eq MigrationMode # 
Instance details

Defined in Ganeti.Types

Ord 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

JSON MigrationMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result MigrationMode

showJSON :: MigrationMode -> JSValue

readJSONs :: JSValue -> Result [MigrationMode]

showJSONs :: [MigrationMode] -> JSValue

Arbitrary MigrationMode 
Instance details

Defined in Test.Ganeti.Types

migrationModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m MigrationMode Source #

data VerifyOptionalChecks Source #

Verify optional checks.

Constructors

VerifyNPlusOneMem 

Instances

Instances details
Bounded VerifyOptionalChecks # 
Instance details

Defined in Ganeti.Types

Enum VerifyOptionalChecks # 
Instance details

Defined in Ganeti.Types

Eq VerifyOptionalChecks # 
Instance details

Defined in Ganeti.Types

Ord 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

JSON VerifyOptionalChecks # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result VerifyOptionalChecks

showJSON :: VerifyOptionalChecks -> JSValue

readJSONs :: JSValue -> Result [VerifyOptionalChecks]

showJSONs :: [VerifyOptionalChecks] -> JSValue

PyValue VerifyOptionalChecks # 
Instance details

Defined in Ganeti.OpCodes

Arbitrary VerifyOptionalChecks 
Instance details

Defined in Test.Ganeti.Types

verifyOptionalChecksFromRaw :: forall m. (Monad m, MonadFail m) => String -> m VerifyOptionalChecks Source #

data CVErrorCode Source #

Cluster verify error codes.

Instances

Instances details
Bounded CVErrorCode # 
Instance details

Defined in Ganeti.Types

Enum CVErrorCode # 
Instance details

Defined in Ganeti.Types

Eq CVErrorCode # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

JSON CVErrorCode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result CVErrorCode

showJSON :: CVErrorCode -> JSValue

readJSONs :: JSValue -> Result [CVErrorCode]

showJSONs :: [CVErrorCode] -> JSValue

PyValue CVErrorCode # 
Instance details

Defined in Ganeti.OpCodes

Methods

showValue :: CVErrorCode -> String Source #

showValueList :: [CVErrorCode] -> String Source #

Arbitrary CVErrorCode 
Instance details

Defined in Test.Ganeti.Types

cVErrorCodeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m CVErrorCode Source #

data DdmSimple Source #

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

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

Show DdmSimple # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> DdmSimple -> ShowS

show :: DdmSimple -> String

showList :: [DdmSimple] -> ShowS

JSON DdmSimple # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result DdmSimple

showJSON :: DdmSimple -> JSValue

readJSONs :: JSValue -> Result [DdmSimple]

showJSONs :: [DdmSimple] -> JSValue

Arbitrary DdmSimple 
Instance details

Defined in Test.Ganeti.Types

ddmSimpleFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DdmSimple Source #

data DdmFull Source #

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

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

Show DdmFull # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> DdmFull -> ShowS

show :: DdmFull -> String

showList :: [DdmFull] -> ShowS

JSON DdmFull # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result DdmFull

showJSON :: DdmFull -> JSValue

readJSONs :: JSValue -> Result [DdmFull]

showJSONs :: [DdmFull] -> JSValue

Arbitrary DdmFull 
Instance details

Defined in Test.Ganeti.Types

Methods

arbitrary :: Gen DdmFull

shrink :: DdmFull -> [DdmFull]

ddmFullFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DdmFull Source #

data Hypervisor Source #

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

Eq Hypervisor # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

JSON Hypervisor # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result Hypervisor

showJSON :: Hypervisor -> JSValue

readJSONs :: JSValue -> Result [Hypervisor]

showJSONs :: [Hypervisor] -> JSValue

HasStringRepr Hypervisor # 
Instance details

Defined in Ganeti.Types

Methods

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

toStringRepr :: Hypervisor -> String Source #

PyValue Hypervisor # 
Instance details

Defined in Ganeti.Types

Methods

showValue :: Hypervisor -> String Source #

showValueList :: [Hypervisor] -> String Source #

Arbitrary Hypervisor 
Instance details

Defined in Test.Ganeti.Types

Arbitrary OsHvParams

No real arbitrary instance for OsHvParams yet.

Instance details

Defined in Test.Ganeti.Objects

Arbitrary ClusterHvParams

No real arbitrary instance for ClusterHvParams yet.

Instance details

Defined in Test.Ganeti.Objects

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

data OobCommand Source #

Oob command type.

Instances

Instances details
Bounded OobCommand # 
Instance details

Defined in Ganeti.Types

Enum OobCommand # 
Instance details

Defined in Ganeti.Types

Eq OobCommand # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

JSON OobCommand # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result OobCommand

showJSON :: OobCommand -> JSValue

readJSONs :: JSValue -> Result [OobCommand]

showJSONs :: [OobCommand] -> JSValue

Arbitrary OobCommand 
Instance details

Defined in Test.Ganeti.Types

oobCommandFromRaw :: forall m. (Monad m, MonadFail m) => String -> m OobCommand Source #

data OobStatus Source #

Oob command status

Instances

Instances details
Bounded OobStatus # 
Instance details

Defined in Ganeti.Types

Enum OobStatus # 
Instance details

Defined in Ganeti.Types

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

Show OobStatus # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> OobStatus -> ShowS

show :: OobStatus -> String

showList :: [OobStatus] -> ShowS

JSON OobStatus # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result OobStatus

showJSON :: OobStatus -> JSValue

readJSONs :: JSValue -> Result [OobStatus]

showJSONs :: [OobStatus] -> JSValue

oobStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m OobStatus Source #

data StorageType Source #

Storage type.

Instances

Instances details
Bounded StorageType # 
Instance details

Defined in Ganeti.Types

Enum StorageType # 
Instance details

Defined in Ganeti.Types

Eq StorageType # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

JSON StorageType # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result StorageType

showJSON :: StorageType -> JSValue

readJSONs :: JSValue -> Result [StorageType]

showJSONs :: [StorageType] -> JSValue

Arbitrary StorageType

Custom Arbitrary instance for StorageType, which needs to handle the case of file storage being disabled at configure time.

Instance details

Defined in Test.Ganeti.Types

storageTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m StorageType 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

Instances details
Eq StorageUnit # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Show StorageUnit # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> StorageUnit -> ShowS

show :: StorageUnit -> String

showList :: [StorageUnit] -> ShowS

JSON StorageUnit # 
Instance details

Defined in Ganeti.Types

Methods

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

data EvacMode Source #

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

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

Show EvacMode # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> EvacMode -> ShowS

show :: EvacMode -> String

showList :: [EvacMode] -> ShowS

JSON EvacMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result EvacMode

showJSON :: EvacMode -> JSValue

readJSONs :: JSValue -> Result [EvacMode]

showJSONs :: [EvacMode] -> JSValue

Arbitrary EvacMode 
Instance details

Defined in Test.Ganeti.Types

evacModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m EvacMode Source #

data FileDriver Source #

The file driver type.

Instances

Instances details
Bounded FileDriver # 
Instance details

Defined in Ganeti.Types

Enum FileDriver # 
Instance details

Defined in Ganeti.Types

Eq FileDriver # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

JSON FileDriver # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result FileDriver

showJSON :: FileDriver -> JSValue

readJSONs :: JSValue -> Result [FileDriver]

showJSONs :: [FileDriver] -> JSValue

Arbitrary FileDriver 
Instance details

Defined in Test.Ganeti.Types

fileDriverFromRaw :: forall m. (Monad m, MonadFail m) => String -> m FileDriver Source #

data InstCreateMode Source #

The instance create mode.

Instances

Instances details
Bounded InstCreateMode # 
Instance details

Defined in Ganeti.Types

Enum InstCreateMode # 
Instance details

Defined in Ganeti.Types

Eq InstCreateMode # 
Instance details

Defined in Ganeti.Types

Ord 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

JSON InstCreateMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result InstCreateMode

showJSON :: InstCreateMode -> JSValue

readJSONs :: JSValue -> Result [InstCreateMode]

showJSONs :: [InstCreateMode] -> JSValue

Arbitrary InstCreateMode 
Instance details

Defined in Test.Ganeti.Types

instCreateModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m InstCreateMode Source #

data RebootType Source #

Reboot type.

Instances

Instances details
Bounded RebootType # 
Instance details

Defined in Ganeti.Types

Enum RebootType # 
Instance details

Defined in Ganeti.Types

Eq RebootType # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

JSON RebootType # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result RebootType

showJSON :: RebootType -> JSValue

readJSONs :: JSValue -> Result [RebootType]

showJSONs :: [RebootType] -> JSValue

Arbitrary RebootType 
Instance details

Defined in Test.Ganeti.Types

rebootTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m RebootType Source #

data ExportMode Source #

Export modes.

Instances

Instances details
Bounded ExportMode # 
Instance details

Defined in Ganeti.Types

Enum ExportMode # 
Instance details

Defined in Ganeti.Types

Eq ExportMode # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

JSON ExportMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result ExportMode

showJSON :: ExportMode -> JSValue

readJSONs :: JSValue -> Result [ExportMode]

showJSONs :: [ExportMode] -> JSValue

PyValue ExportMode # 
Instance details

Defined in Ganeti.OpCodes

Methods

showValue :: ExportMode -> String Source #

showValueList :: [ExportMode] -> String Source #

Arbitrary ExportMode 
Instance details

Defined in Test.Ganeti.Types

exportModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m ExportMode Source #

data IAllocatorTestDir Source #

IAllocator run types (OpTestIAllocator).

Instances

Instances details
Bounded IAllocatorTestDir # 
Instance details

Defined in Ganeti.Types

Enum IAllocatorTestDir # 
Instance details

Defined in Ganeti.Types

Eq IAllocatorTestDir # 
Instance details

Defined in Ganeti.Types

Ord 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

JSON IAllocatorTestDir # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result IAllocatorTestDir

showJSON :: IAllocatorTestDir -> JSValue

readJSONs :: JSValue -> Result [IAllocatorTestDir]

showJSONs :: [IAllocatorTestDir] -> JSValue

Arbitrary IAllocatorTestDir 
Instance details

Defined in Test.Ganeti.Types

iAllocatorTestDirFromRaw :: forall m. (Monad m, MonadFail m) => String -> m IAllocatorTestDir Source #

data IAllocatorMode Source #

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

Eq IAllocatorMode # 
Instance details

Defined in Ganeti.Types

Ord 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

JSON IAllocatorMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result IAllocatorMode

showJSON :: IAllocatorMode -> JSValue

readJSONs :: JSValue -> Result [IAllocatorMode]

showJSONs :: [IAllocatorMode] -> JSValue

Arbitrary IAllocatorMode 
Instance details

Defined in Test.Ganeti.Types

iAllocatorModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m IAllocatorMode Source #

data NICMode Source #

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

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

Show NICMode # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> NICMode -> ShowS

show :: NICMode -> String

showList :: [NICMode] -> ShowS

JSON NICMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result NICMode

showJSON :: NICMode -> JSValue

readJSONs :: JSValue -> Result [NICMode]

showJSONs :: [NICMode] -> JSValue

Arbitrary NICMode 
Instance details

Defined in Test.Ganeti.Types

Methods

arbitrary :: Gen NICMode

shrink :: NICMode -> [NICMode]

nICModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m NICMode Source #

data JobStatus Source #

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

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

Show JobStatus # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> JobStatus -> ShowS

show :: JobStatus -> String

showList :: [JobStatus] -> ShowS

JSON JobStatus # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result JobStatus

showJSON :: JobStatus -> JSValue

readJSONs :: JSValue -> Result [JobStatus]

showJSONs :: [JobStatus] -> JSValue

Arbitrary JobStatus 
Instance details

Defined in Test.Ganeti.Types

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

data FinalizedJobStatus Source #

Finalized job status.

Instances

Instances details
Bounded FinalizedJobStatus # 
Instance details

Defined in Ganeti.Types

Enum FinalizedJobStatus # 
Instance details

Defined in Ganeti.Types

Eq FinalizedJobStatus # 
Instance details

Defined in Ganeti.Types

Ord 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

JSON FinalizedJobStatus # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result FinalizedJobStatus

showJSON :: FinalizedJobStatus -> JSValue

readJSONs :: JSValue -> Result [FinalizedJobStatus]

showJSONs :: [FinalizedJobStatus] -> JSValue

Arbitrary FinalizedJobStatus 
Instance details

Defined in Test.Ganeti.Types

finalizedJobStatusFromRaw :: forall m. (Monad m, MonadFail m) => String -> m FinalizedJobStatus Source #

newtype JobId Source #

The Ganeti job type.

Constructors

JobId 

Fields

Instances

Instances details
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

Show JobId # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> JobId -> ShowS

show :: JobId -> String

showList :: [JobId] -> ShowS

JSON JobId # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result JobId

showJSON :: JobId -> JSValue

readJSONs :: JSValue -> Result [JobId]

showJSONs :: [JobId] -> JSValue

Arbitrary JobId 
Instance details

Defined in Test.Ganeti.Types

Methods

arbitrary :: Gen JobId

shrink :: JobId -> [JobId]

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

Builds a job ID.

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.

data JobIdDep Source #

Job ID dependency.

Instances

Instances details
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

Show JobIdDep # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> JobIdDep -> ShowS

show :: JobIdDep -> String

showList :: [JobIdDep] -> ShowS

JSON JobIdDep # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result JobIdDep

showJSON :: JobIdDep -> JSValue

readJSONs :: JSValue -> Result [JobIdDep]

showJSONs :: [JobIdDep] -> JSValue

Arbitrary JobIdDep 
Instance details

Defined in Test.Ganeti.Types

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

Instances details
Eq JobDependency # 
Instance details

Defined in Ganeti.Types

Ord JobDependency # 
Instance details

Defined in Ganeti.Types

Show JobDependency # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> JobDependency -> ShowS

show :: JobDependency -> String

showList :: [JobDependency] -> ShowS

JSON JobDependency # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result JobDependency

showJSON :: JobDependency -> JSValue

readJSONs :: JSValue -> Result [JobDependency]

showJSONs :: [JobDependency] -> JSValue

Arbitrary JobDependency 
Instance details

Defined in Test.Ganeti.Types

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

Instances details
Bounded OpSubmitPriority # 
Instance details

Defined in Ganeti.Types

Enum OpSubmitPriority # 
Instance details

Defined in Ganeti.Types

Eq OpSubmitPriority # 
Instance details

Defined in Ganeti.Types

Ord 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

JSON OpSubmitPriority # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result OpSubmitPriority

showJSON :: OpSubmitPriority -> JSValue

readJSONs :: JSValue -> Result [OpSubmitPriority]

showJSONs :: [OpSubmitPriority] -> JSValue

Arbitrary OpSubmitPriority 
Instance details

Defined in Test.Ganeti.Types

opSubmitPriorityFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m OpSubmitPriority Source #

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

Parse submit priorities from a string.

fmtSubmitPriority :: OpSubmitPriority -> String Source #

Format a submit priority as string.

data OpStatus Source #

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

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

Show OpStatus # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> OpStatus -> ShowS

show :: OpStatus -> String

showList :: [OpStatus] -> ShowS

JSON OpStatus # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result OpStatus

showJSON :: OpStatus -> JSValue

readJSONs :: JSValue -> Result [OpStatus]

showJSONs :: [OpStatus] -> JSValue

Arbitrary OpStatus 
Instance details

Defined in Test.Ganeti.Types

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

data ELogType Source #

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

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

Show ELogType # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> ELogType -> ShowS

show :: ELogType -> String

showList :: [ELogType] -> ShowS

JSON ELogType # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result ELogType

showJSON :: ELogType -> JSValue

readJSONs :: JSValue -> Result [ELogType]

showJSONs :: [ELogType] -> JSValue

Arbitrary ELogType 
Instance details

Defined in Test.Ganeti.Types

eLogTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m ELogType 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.

data VType Source #

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

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

Show VType # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> VType -> ShowS

show :: VType -> String

showList :: [VType] -> ShowS

JSON VType # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result VType

showJSON :: VType -> JSValue

readJSONs :: JSValue -> Result [VType]

showJSONs :: [VType] -> JSValue

PyValue VType # 
Instance details

Defined in Ganeti.Types

Methods

showValue :: VType -> String Source #

showValueList :: [VType] -> String Source #

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

vTypeToRaw :: VType -> String Source #

Node role type

data NodeRole Source #

Instances

Instances details
Bounded NodeRole # 
Instance details

Defined in Ganeti.Types

Enum NodeRole # 
Instance details

Defined in Ganeti.Types

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

Show NodeRole # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> NodeRole -> ShowS

show :: NodeRole -> String

showList :: [NodeRole] -> ShowS

JSON NodeRole # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result NodeRole

showJSON :: NodeRole -> JSValue

readJSONs :: JSValue -> Result [NodeRole]

showJSONs :: [NodeRole] -> JSValue

nodeRoleFromRaw :: forall m. (Monad m, MonadFail m) => String -> m NodeRole Source #

roleDescription :: NodeRole -> String Source #

The description of the node role.

Disk types

data DiskMode Source #

Constructors

DiskRdOnly 
DiskRdWr 

Instances

Instances details
Bounded DiskMode # 
Instance details

Defined in Ganeti.Types

Enum DiskMode # 
Instance details

Defined in Ganeti.Types

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

Show DiskMode # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> DiskMode -> ShowS

show :: DiskMode -> String

showList :: [DiskMode] -> ShowS

JSON DiskMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result DiskMode

showJSON :: DiskMode -> JSValue

readJSONs :: JSValue -> Result [DiskMode]

showJSONs :: [DiskMode] -> JSValue

Arbitrary DiskMode 
Instance details

Defined in Test.Ganeti.Objects

diskModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DiskMode Source #

data BlockDriver Source #

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

Eq BlockDriver # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

JSON BlockDriver # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result BlockDriver

showJSON :: BlockDriver -> JSValue

readJSONs :: JSValue -> Result [BlockDriver]

showJSONs :: [BlockDriver] -> JSValue

Arbitrary BlockDriver 
Instance details

Defined in Test.Ganeti.Objects

blockDriverFromRaw :: forall m. (Monad m, MonadFail m) => String -> m BlockDriver Source #

Instance types

data AdminState Source #

Instances

Instances details
Bounded AdminState # 
Instance details

Defined in Ganeti.Types

Enum AdminState # 
Instance details

Defined in Ganeti.Types

Eq AdminState # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

JSON AdminState # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result AdminState

showJSON :: AdminState -> JSValue

readJSONs :: JSValue -> Result [AdminState]

showJSONs :: [AdminState] -> JSValue

Arbitrary AdminState 
Instance details

Defined in Test.Ganeti.Objects

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

data AdminStateSource Source #

Constructors

AdminSource 
UserSource 

Instances

Instances details
Bounded AdminStateSource # 
Instance details

Defined in Ganeti.Types

Enum AdminStateSource # 
Instance details

Defined in Ganeti.Types

Eq AdminStateSource # 
Instance details

Defined in Ganeti.Types

Ord 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

JSON AdminStateSource # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result AdminStateSource

showJSON :: AdminStateSource -> JSValue

readJSONs :: JSValue -> Result [AdminStateSource]

showJSONs :: [AdminStateSource] -> JSValue

PyValue AdminStateSource # 
Instance details

Defined in Ganeti.Types

Arbitrary AdminStateSource 
Instance details

Defined in Test.Ganeti.Objects

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

Storage field type

data StorageField Source #

Instances

Instances details
Bounded StorageField # 
Instance details

Defined in Ganeti.Types

Enum StorageField # 
Instance details

Defined in Ganeti.Types

Eq StorageField # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

JSON StorageField # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result StorageField

showJSON :: StorageField -> JSValue

readJSONs :: JSValue -> Result [StorageField]

showJSONs :: [StorageField] -> JSValue

storageFieldFromRaw :: forall m. (Monad m, MonadFail m) => String -> m StorageField Source #

Disk access protocol

data DiskAccessMode Source #

Instances

Instances details
Bounded DiskAccessMode # 
Instance details

Defined in Ganeti.Types

Enum DiskAccessMode # 
Instance details

Defined in Ganeti.Types

Eq DiskAccessMode # 
Instance details

Defined in Ganeti.Types

Ord 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

JSON DiskAccessMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result DiskAccessMode

showJSON :: DiskAccessMode -> JSValue

readJSONs :: JSValue -> Result [DiskAccessMode]

showJSONs :: [DiskAccessMode] -> JSValue

diskAccessModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m DiskAccessMode Source #

data LocalDiskStatus Source #

Local disk status

Python code depends on: DiskStatusOk < DiskStatusUnknown < DiskStatusFaulty

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

data ReplaceDisksMode Source #

Replace disks type.

Instances

Instances details
Bounded ReplaceDisksMode # 
Instance details

Defined in Ganeti.Types

Enum ReplaceDisksMode # 
Instance details

Defined in Ganeti.Types

Eq ReplaceDisksMode # 
Instance details

Defined in Ganeti.Types

Ord 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

JSON ReplaceDisksMode # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result ReplaceDisksMode

showJSON :: ReplaceDisksMode -> JSValue

readJSONs :: JSValue -> Result [ReplaceDisksMode]

showJSONs :: [ReplaceDisksMode] -> JSValue

Arbitrary ReplaceDisksMode 
Instance details

Defined in Test.Ganeti.OpCodes

replaceDisksModeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m ReplaceDisksMode Source #

data RpcTimeout Source #

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

Eq RpcTimeout # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

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

_Slow :: Int Source #

_Fast :: Int Source #

data HotplugAction Source #

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

Eq HotplugAction # 
Instance details

Defined in Ganeti.Types

Ord 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

JSON HotplugAction # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result HotplugAction

showJSON :: HotplugAction -> JSValue

readJSONs :: JSValue -> Result [HotplugAction]

showJSONs :: [HotplugAction] -> JSValue

hotplugActionFromRaw :: forall m. (Monad m, MonadFail m) => String -> m HotplugAction Source #

data HotplugTarget Source #

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

Eq HotplugTarget # 
Instance details

Defined in Ganeti.Types

Ord 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

JSON HotplugTarget # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result HotplugTarget

showJSON :: HotplugTarget -> JSValue

readJSONs :: JSValue -> Result [HotplugTarget]

showJSONs :: [HotplugTarget] -> JSValue

hotplugTargetFromRaw :: forall m. (Monad m, MonadFail m) => String -> m HotplugTarget Source #

data SshKeyType Source #

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

Eq SshKeyType # 
Instance details

Defined in Ganeti.Types

Methods

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

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

Ord 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

JSON SshKeyType # 
Instance details

Defined in Ganeti.Types

Methods

readJSON :: JSValue -> Result SshKeyType

showJSON :: SshKeyType -> JSValue

readJSONs :: JSValue -> Result [SshKeyType]

showJSONs :: [SshKeyType] -> JSValue

Arbitrary SshKeyType 
Instance details

Defined in Test.Ganeti.Objects

sshKeyTypeFromRaw :: forall m. (Monad m, MonadFail m) => String -> m SshKeyType Source #

Private type and instances

redacted :: String Source #

newtype Private a Source #

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

Functor Private # 
Instance details

Defined in Ganeti.Types

Methods

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

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

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

Arbitrary ClusterOsParamsPrivate 
Instance details

Defined in Test.Ganeti.Objects

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 => 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

(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

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

Defined in Ganeti.Types

Methods

showValue :: Private a -> String Source #

showValueList :: [Private a] -> String Source #

Arbitrary a => Arbitrary (Private a) 
Instance details

Defined in Test.Ganeti.Objects

Methods

arbitrary :: Gen (Private a)

shrink :: Private a -> [Private a]

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

Secret type and instances

newtype Secret a Source #

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

Constructors

Secret 

Fields

Instances

Instances details
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

Functor Secret # 
Instance details

Defined in Ganeti.Types

Methods

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

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

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

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 => Show (Secret a) # 
Instance details

Defined in Ganeti.Types

Methods

showsPrec :: Int -> Secret a -> ShowS

show :: Secret a -> String

showList :: [Secret a] -> ShowS

(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

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

Defined in Ganeti.Types

Methods

showValue :: Secret a -> String Source #

showValueList :: [Secret a] -> String Source #

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.

class TimeStampObject a where Source #

Class of objects that have timestamps.

Methods

cTimeOf :: a -> ClockTime Source #

mTimeOf :: a -> ClockTime Source #

Instances

Instances details
TimeStampObject Instance # 
Instance details

Defined in Ganeti.Objects.Instance

Methods

cTimeOf :: Instance -> ClockTime Source #

mTimeOf :: Instance -> ClockTime Source #

TimeStampObject Disk # 
Instance details

Defined in Ganeti.Objects.Disk

Methods

cTimeOf :: Disk -> ClockTime Source #

mTimeOf :: Disk -> ClockTime Source #

TimeStampObject Network # 
Instance details

Defined in Ganeti.Objects

Methods

cTimeOf :: Network -> ClockTime Source #

mTimeOf :: Network -> ClockTime Source #

TimeStampObject Node # 
Instance details

Defined in Ganeti.Objects

Methods

cTimeOf :: Node -> ClockTime Source #

mTimeOf :: Node -> ClockTime Source #

TimeStampObject NodeGroup # 
Instance details

Defined in Ganeti.Objects

Methods

cTimeOf :: NodeGroup -> ClockTime Source #

mTimeOf :: NodeGroup -> ClockTime Source #

TimeStampObject Cluster # 
Instance details

Defined in Ganeti.Objects

Methods

cTimeOf :: Cluster -> ClockTime Source #

mTimeOf :: Cluster -> ClockTime Source #

TimeStampObject ConfigData # 
Instance details

Defined in Ganeti.Objects

Methods

cTimeOf :: ConfigData -> ClockTime Source #

mTimeOf :: ConfigData -> ClockTime Source #

class UuidObject a where Source #

Class of objects that have an UUID.

Methods

uuidOf :: a -> String Source #

Instances

Instances details
UuidObject PartialNic # 
Instance details

Defined in Ganeti.Objects.Nic

Methods

uuidOf :: PartialNic -> String Source #

UuidObject Instance # 
Instance details

Defined in Ganeti.Objects.Instance

Methods

uuidOf :: Instance -> String Source #

UuidObject Disk # 
Instance details

Defined in Ganeti.Objects.Disk

Methods

uuidOf :: Disk -> String Source #

UuidObject Network # 
Instance details

Defined in Ganeti.Objects

Methods

uuidOf :: Network -> String Source #

UuidObject Node # 
Instance details

Defined in Ganeti.Objects

Methods

uuidOf :: Node -> String Source #

UuidObject NodeGroup # 
Instance details

Defined in Ganeti.Objects

Methods

uuidOf :: NodeGroup -> String Source #

UuidObject FilterRule # 
Instance details

Defined in Ganeti.Objects

Methods

uuidOf :: FilterRule -> String Source #

UuidObject Cluster # 
Instance details

Defined in Ganeti.Objects

Methods

uuidOf :: Cluster -> String Source #

class ForthcomingObject a where Source #

Class of objects that can be forthcoming.

Methods

isForthcoming :: a -> Bool Source #

Instances

Instances details
ForthcomingObject Instance # 
Instance details

Defined in Ganeti.Objects.Instance

Methods

isForthcoming :: Instance -> Bool Source #

ForthcomingObject Disk # 
Instance details

Defined in Ganeti.Objects.Disk

Methods

isForthcoming :: Disk -> Bool Source #

class SerialNoObject a where Source #

Class of object that have a serial number.

Methods

serialOf :: a -> Int Source #

Instances

Instances details
SerialNoObject Instance # 
Instance details

Defined in Ganeti.Objects.Instance

Methods

serialOf :: Instance -> Int Source #

SerialNoObject Disk # 
Instance details

Defined in Ganeti.Objects.Disk

Methods

serialOf :: Disk -> Int Source #

SerialNoObject Network # 
Instance details

Defined in Ganeti.Objects

Methods

serialOf :: Network -> Int Source #

SerialNoObject Node # 
Instance details

Defined in Ganeti.Objects

Methods

serialOf :: Node -> Int Source #

SerialNoObject NodeGroup # 
Instance details

Defined in Ganeti.Objects

Methods

serialOf :: NodeGroup -> Int Source #

SerialNoObject Cluster # 
Instance details

Defined in Ganeti.Objects

Methods

serialOf :: Cluster -> Int Source #

SerialNoObject ConfigData # 
Instance details

Defined in Ganeti.Objects

Methods

serialOf :: ConfigData -> Int Source #

class TagsObject a where Source #

Class of objects that have tags.

Methods

tagsOf :: a -> TagSet Source #

Instances

Instances details
TagsObject Instance # 
Instance details

Defined in Ganeti.Objects.Instance

TagsObject Network # 
Instance details

Defined in Ganeti.Objects

TagsObject Node # 
Instance details

Defined in Ganeti.Objects

Methods

tagsOf :: Node -> TagSet Source #

TagsObject NodeGroup # 
Instance details

Defined in Ganeti.Objects

TagsObject Cluster # 
Instance details

Defined in Ganeti.Objects