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

Ganeti.Rpc

Description

Implementation of the RPC client.

Synopsis

Documentation

class ArrayObject a => RpcCall a #

A generic class for RPC calls.

Minimal complete definition

rpcCallName, rpcCallTimeout, rpcCallAcceptOffline

Instances

Instances details
RpcCall RpcCallAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallSetWatcherPause # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallWriteSsconfFiles # 
Instance details

Defined in Ganeti.Rpc

class (RpcCall a, JSON b) => Rpc a b | a -> b, b -> a #

Generic class that ensures matching RPC call with its respective result.

Minimal complete definition

rpcResultFill

Instances

Instances details
Rpc RpcCallAllInstancesInfo RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallExportList RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallInstanceConsoleInfo RpcResultInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallInstanceInfo RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallInstanceList RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallMasterNodeName RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallNodeActivateMasterIp RpcResultNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallNodeInfo RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallStorageList RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallTestDelay RpcResultTestDelay # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallVersion RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

data RpcError #

Data type for RPC error reporting.

Constructors

CurlLayerError String 
JsonDecodeError String 
RpcResultError String 
OfflineNodeError 

Instances

Instances details
Show RpcError # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcError -> ShowS

show :: RpcError -> String

showList :: [RpcError] -> ShowS

Eq RpcError # 
Instance details

Defined in Ganeti.Rpc

Methods

(==) :: RpcError -> RpcError -> Bool

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

type ERpcError = Either RpcError #

explainRpcError :: RpcError -> String #

Provide explanation to RPC errors.

executeRpcCall :: Rpc a b => [Node] -> a -> IO [(Node, ERpcError b)] #

Execute an RPC call for many nodes in parallel. NB this computes the RPC call payload string only once.

executeRpcCalls :: Rpc a b => [(Node, a)] -> IO [(Node, ERpcError b)] #

Execute multiple distinct RPC calls in parallel

rpcErrors :: [(a, ERpcError b)] -> [(a, RpcError)] #

Scan the list of results produced by executeRpcCall and extract all the RPC errors.

logRpcErrors :: (MonadLog m, Show a) => [(a, ERpcError b)] -> m [(a, RpcError)] #

Scan the list of results produced by executeRpcCall and log all the RPC errors. Returns the list of errors for further processing.

rpcCallName :: RpcCall a => a -> String #

Give the (Python) name of the procedure.

rpcCallTimeout :: RpcCall a => a -> Int #

Calculate the timeout value for the call execution.

rpcCallData :: RpcCall a => a -> String #

Prepare arguments of the call to be send as POST.

rpcCallAcceptOffline :: RpcCall a => a -> Bool #

Whether we accept offline nodes when making a call.

rpcResultFill :: Rpc a b => a -> JSValue -> ERpcError b #

Create a result based on the received HTTP response.

data Compressed #

An opaque data type for representing data that might be compressed over the wire.

On Python side it is decompressed by backend._Decompress.

Instances

Instances details
Show Compressed # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> Compressed -> ShowS

show :: Compressed -> String

showList :: [Compressed] -> ShowS

Eq Compressed # 
Instance details

Defined in Ganeti.Rpc

Methods

(==) :: Compressed -> Compressed -> Bool

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

Ord Compressed # 
Instance details

Defined in Ganeti.Rpc

JSON Compressed # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result Compressed

showJSON :: Compressed -> JSValue

readJSONs :: JSValue -> Result [Compressed]

showJSONs :: [Compressed] -> JSValue

packCompressed :: ByteString -> Compressed #

getCompressed :: Compressed -> ByteString #

data RpcCallNodeActivateMasterIp #

Activate the master IP address

Instances

Instances details
Show RpcCallNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

ArrayObject RpcCallNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

DictObject RpcCallNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallNodeActivateMasterIp -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallNodeActivateMasterIp #

fromDict :: [(String, JSValue)] -> Result RpcCallNodeActivateMasterIp #

RpcCall RpcCallNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallNodeActivateMasterIp RpcResultNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

data RpcResultNodeActivateMasterIp #

Instances

Instances details
Show RpcResultNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

ArrayObject RpcResultNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

DictObject RpcResultNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcResultNodeActivateMasterIp -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcResultNodeActivateMasterIp #

fromDict :: [(String, JSValue)] -> Result RpcResultNodeActivateMasterIp #

Eq RpcResultNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

JSON RpcResultNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallNodeActivateMasterIp RpcResultNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

data RpcCallInstanceInfo #

Returns information about a single instance

Instances

Instances details
Show RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallInstanceInfo -> ShowS

show :: RpcCallInstanceInfo -> String

showList :: [RpcCallInstanceInfo] -> ShowS

ArrayObject RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallInstanceInfo -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallInstanceInfo #

DictObject RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallInstanceInfo -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallInstanceInfo #

fromDict :: [(String, JSValue)] -> Result RpcCallInstanceInfo #

RpcCall RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallInstanceInfo

showJSON :: RpcCallInstanceInfo -> JSValue

readJSONs :: JSValue -> Result [RpcCallInstanceInfo]

showJSONs :: [RpcCallInstanceInfo] -> JSValue

Rpc RpcCallInstanceInfo RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

data InstanceState #

Instances

Instances details
Bounded InstanceState # 
Instance details

Defined in Ganeti.Rpc

Enum InstanceState # 
Instance details

Defined in Ganeti.Rpc

Show InstanceState # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> InstanceState -> ShowS

show :: InstanceState -> String

showList :: [InstanceState] -> ShowS

PyValue InstanceState # 
Instance details

Defined in Ganeti.Rpc

Methods

showValue :: InstanceState -> String #

showValueList :: [InstanceState] -> String #

Eq InstanceState # 
Instance details

Defined in Ganeti.Rpc

Ord InstanceState # 
Instance details

Defined in Ganeti.Rpc

JSON InstanceState # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result InstanceState

showJSON :: InstanceState -> JSValue

readJSONs :: JSValue -> Result [InstanceState]

showJSONs :: [InstanceState] -> JSValue

data InstanceInfo #

Constructors

InstanceInfo 

Instances

Instances details
Show InstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> InstanceInfo -> ShowS

show :: InstanceInfo -> String

showList :: [InstanceInfo] -> ShowS

ArrayObject InstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: InstanceInfo -> [JSValue] #

fromJSArray :: [JSValue] -> Result InstanceInfo #

DictObject InstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: InstanceInfo -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result InstanceInfo #

fromDict :: [(String, JSValue)] -> Result InstanceInfo #

Eq InstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

(==) :: InstanceInfo -> InstanceInfo -> Bool

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

JSON InstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result InstanceInfo

showJSON :: InstanceInfo -> JSValue

readJSONs :: JSValue -> Result [InstanceInfo]

showJSONs :: [InstanceInfo] -> JSValue

data RpcResultInstanceInfo #

Instances

Instances details
Show RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcResultInstanceInfo -> ShowS

show :: RpcResultInstanceInfo -> String

showList :: [RpcResultInstanceInfo] -> ShowS

ArrayObject RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultInstanceInfo -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcResultInstanceInfo #

DictObject RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcResultInstanceInfo -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcResultInstanceInfo #

fromDict :: [(String, JSValue)] -> Result RpcResultInstanceInfo #

Eq RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

JSON RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultInstanceInfo

showJSON :: RpcResultInstanceInfo -> JSValue

readJSONs :: JSValue -> Result [RpcResultInstanceInfo]

showJSONs :: [RpcResultInstanceInfo] -> JSValue

Rpc RpcCallInstanceInfo RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

data RpcCallAllInstancesInfo #

Returns information about all running instances on the given nodes

Instances

Instances details
Show RpcCallAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

ArrayObject RpcCallAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallAllInstancesInfo -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallAllInstancesInfo #

DictObject RpcCallAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallAllInstancesInfo -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallAllInstancesInfo #

fromDict :: [(String, JSValue)] -> Result RpcCallAllInstancesInfo #

RpcCall RpcCallAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallAllInstancesInfo

showJSON :: RpcCallAllInstancesInfo -> JSValue

readJSONs :: JSValue -> Result [RpcCallAllInstancesInfo]

showJSONs :: [RpcCallAllInstancesInfo] -> JSValue

Rpc RpcCallAllInstancesInfo RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

data RpcResultAllInstancesInfo #

Instances

Instances details
Show RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

ArrayObject RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultAllInstancesInfo -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcResultAllInstancesInfo #

DictObject RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcResultAllInstancesInfo -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcResultAllInstancesInfo #

fromDict :: [(String, JSValue)] -> Result RpcResultAllInstancesInfo #

Eq RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

JSON RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallAllInstancesInfo RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

data InstanceConsoleInfoParams #

Returns information about how to access instances on the given node

Instances

Instances details
Show InstanceConsoleInfoParams # 
Instance details

Defined in Ganeti.Rpc

ArrayObject InstanceConsoleInfoParams # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: InstanceConsoleInfoParams -> [JSValue] #

fromJSArray :: [JSValue] -> Result InstanceConsoleInfoParams #

DictObject InstanceConsoleInfoParams # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: InstanceConsoleInfoParams -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result InstanceConsoleInfoParams #

fromDict :: [(String, JSValue)] -> Result InstanceConsoleInfoParams #

Eq InstanceConsoleInfoParams # 
Instance details

Defined in Ganeti.Rpc

JSON InstanceConsoleInfoParams # 
Instance details

Defined in Ganeti.Rpc

data InstanceConsoleInfo #

Constructors

InstanceConsoleInfo 

Fields

Instances

Instances details
Show InstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> InstanceConsoleInfo -> ShowS

show :: InstanceConsoleInfo -> String

showList :: [InstanceConsoleInfo] -> ShowS

ArrayObject InstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: InstanceConsoleInfo -> [JSValue] #

fromJSArray :: [JSValue] -> Result InstanceConsoleInfo #

DictObject InstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: InstanceConsoleInfo -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result InstanceConsoleInfo #

fromDict :: [(String, JSValue)] -> Result InstanceConsoleInfo #

Eq InstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

JSON InstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result InstanceConsoleInfo

showJSON :: InstanceConsoleInfo -> JSValue

readJSONs :: JSValue -> Result [InstanceConsoleInfo]

showJSONs :: [InstanceConsoleInfo] -> JSValue

data RpcCallInstanceConsoleInfo #

Instances

Instances details
Show RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

ArrayObject RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallInstanceConsoleInfo -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallInstanceConsoleInfo #

DictObject RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallInstanceConsoleInfo -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallInstanceConsoleInfo #

fromDict :: [(String, JSValue)] -> Result RpcCallInstanceConsoleInfo #

RpcCall RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallInstanceConsoleInfo RpcResultInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

data RpcResultInstanceConsoleInfo #

Instances

Instances details
Show RpcResultInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

ArrayObject RpcResultInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

DictObject RpcResultInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcResultInstanceConsoleInfo -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcResultInstanceConsoleInfo #

fromDict :: [(String, JSValue)] -> Result RpcResultInstanceConsoleInfo #

Eq RpcResultInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

JSON RpcResultInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallInstanceConsoleInfo RpcResultInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

data RpcCallInstanceList #

Returns the list of running instances on the given nodes

Instances

Instances details
Show RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallInstanceList -> ShowS

show :: RpcCallInstanceList -> String

showList :: [RpcCallInstanceList] -> ShowS

ArrayObject RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallInstanceList -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallInstanceList #

DictObject RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallInstanceList -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallInstanceList #

fromDict :: [(String, JSValue)] -> Result RpcCallInstanceList #

RpcCall RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallInstanceList

showJSON :: RpcCallInstanceList -> JSValue

readJSONs :: JSValue -> Result [RpcCallInstanceList]

showJSONs :: [RpcCallInstanceList] -> JSValue

Rpc RpcCallInstanceList RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

data RpcResultInstanceList #

Constructors

RpcResultInstanceList 

Fields

Instances

Instances details
Show RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcResultInstanceList -> ShowS

show :: RpcResultInstanceList -> String

showList :: [RpcResultInstanceList] -> ShowS

ArrayObject RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultInstanceList -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcResultInstanceList #

DictObject RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcResultInstanceList -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcResultInstanceList #

fromDict :: [(String, JSValue)] -> Result RpcResultInstanceList #

Eq RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

JSON RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultInstanceList

showJSON :: RpcResultInstanceList -> JSValue

readJSONs :: JSValue -> Result [RpcResultInstanceList]

showJSONs :: [RpcResultInstanceList] -> JSValue

Rpc RpcCallInstanceList RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

data HvInfo #

Common fields (as described in hv_base.py) are mandatory, other fields are optional.

Constructors

HvInfo 

Fields

Instances

Instances details
Show HvInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> HvInfo -> ShowS

show :: HvInfo -> String

showList :: [HvInfo] -> ShowS

ArrayObject HvInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: HvInfo -> [JSValue] #

fromJSArray :: [JSValue] -> Result HvInfo #

DictObject HvInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: HvInfo -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result HvInfo #

fromDict :: [(String, JSValue)] -> Result HvInfo #

Eq HvInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

(==) :: HvInfo -> HvInfo -> Bool

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

JSON HvInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result HvInfo

showJSON :: HvInfo -> JSValue

readJSONs :: JSValue -> Result [HvInfo]

showJSONs :: [HvInfo] -> JSValue

data StorageInfo #

Constructors

StorageInfo 

Fields

Instances

Instances details
Show StorageInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> StorageInfo -> ShowS

show :: StorageInfo -> String

showList :: [StorageInfo] -> ShowS

ArrayObject StorageInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: StorageInfo -> [JSValue] #

fromJSArray :: [JSValue] -> Result StorageInfo #

DictObject StorageInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: StorageInfo -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result StorageInfo #

fromDict :: [(String, JSValue)] -> Result StorageInfo #

Eq StorageInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

(==) :: StorageInfo -> StorageInfo -> Bool

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

JSON StorageInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result StorageInfo

showJSON :: StorageInfo -> JSValue

readJSONs :: JSValue -> Result [StorageInfo]

showJSONs :: [StorageInfo] -> JSValue

data RpcCallNodeInfo #

Returns node information

Instances

Instances details
Show RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallNodeInfo -> ShowS

show :: RpcCallNodeInfo -> String

showList :: [RpcCallNodeInfo] -> ShowS

ArrayObject RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallNodeInfo -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallNodeInfo #

DictObject RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallNodeInfo -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallNodeInfo #

fromDict :: [(String, JSValue)] -> Result RpcCallNodeInfo #

RpcCall RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallNodeInfo

showJSON :: RpcCallNodeInfo -> JSValue

readJSONs :: JSValue -> Result [RpcCallNodeInfo]

showJSONs :: [RpcCallNodeInfo] -> JSValue

Rpc RpcCallNodeInfo RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

data RpcResultNodeInfo #

Instances

Instances details
Show RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcResultNodeInfo -> ShowS

show :: RpcResultNodeInfo -> String

showList :: [RpcResultNodeInfo] -> ShowS

ArrayObject RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultNodeInfo -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcResultNodeInfo #

DictObject RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcResultNodeInfo -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcResultNodeInfo #

fromDict :: [(String, JSValue)] -> Result RpcResultNodeInfo #

Eq RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

JSON RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultNodeInfo

showJSON :: RpcResultNodeInfo -> JSValue

readJSONs :: JSValue -> Result [RpcResultNodeInfo]

showJSONs :: [RpcResultNodeInfo] -> JSValue

Rpc RpcCallNodeInfo RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

data RpcCallVersion #

Query node version.

Constructors

RpcCallVersion 

Instances

Instances details
Show RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallVersion -> ShowS

show :: RpcCallVersion -> String

showList :: [RpcCallVersion] -> ShowS

ArrayObject RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallVersion -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallVersion #

DictObject RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallVersion -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallVersion #

fromDict :: [(String, JSValue)] -> Result RpcCallVersion #

RpcCall RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallVersion

showJSON :: RpcCallVersion -> JSValue

readJSONs :: JSValue -> Result [RpcCallVersion]

showJSONs :: [RpcCallVersion] -> JSValue

Rpc RpcCallVersion RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

data RpcResultVersion #

Query node reply.

Constructors

RpcResultVersion 

Instances

Instances details
Show RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcResultVersion -> ShowS

show :: RpcResultVersion -> String

showList :: [RpcResultVersion] -> ShowS

ArrayObject RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultVersion -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcResultVersion #

DictObject RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcResultVersion -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcResultVersion #

fromDict :: [(String, JSValue)] -> Result RpcResultVersion #

Eq RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

JSON RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultVersion

showJSON :: RpcResultVersion -> JSValue

readJSONs :: JSValue -> Result [RpcResultVersion]

showJSONs :: [RpcResultVersion] -> JSValue

Rpc RpcCallVersion RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

data RpcCallMasterNodeName #

Ask who the node believes is the master.

Constructors

RpcCallMasterNodeName 

Instances

Instances details
Show RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallMasterNodeName -> ShowS

show :: RpcCallMasterNodeName -> String

showList :: [RpcCallMasterNodeName] -> ShowS

ArrayObject RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallMasterNodeName -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallMasterNodeName #

DictObject RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallMasterNodeName -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallMasterNodeName #

fromDict :: [(String, JSValue)] -> Result RpcCallMasterNodeName #

RpcCall RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallMasterNodeName

showJSON :: RpcCallMasterNodeName -> JSValue

readJSONs :: JSValue -> Result [RpcCallMasterNodeName]

showJSONs :: [RpcCallMasterNodeName] -> JSValue

Rpc RpcCallMasterNodeName RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

data RpcResultMasterNodeName #

Instances

Instances details
Show RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

ArrayObject RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultMasterNodeName -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcResultMasterNodeName #

DictObject RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcResultMasterNodeName -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcResultMasterNodeName #

fromDict :: [(String, JSValue)] -> Result RpcResultMasterNodeName #

Eq RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

JSON RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultMasterNodeName

showJSON :: RpcResultMasterNodeName -> JSValue

readJSONs :: JSValue -> Result [RpcResultMasterNodeName]

showJSONs :: [RpcResultMasterNodeName] -> JSValue

Rpc RpcCallMasterNodeName RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

data RpcCallStorageList #

Instances

Instances details
Show RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallStorageList -> ShowS

show :: RpcCallStorageList -> String

showList :: [RpcCallStorageList] -> ShowS

ArrayObject RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallStorageList -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallStorageList #

DictObject RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallStorageList -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallStorageList #

fromDict :: [(String, JSValue)] -> Result RpcCallStorageList #

RpcCall RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallStorageList

showJSON :: RpcCallStorageList -> JSValue

readJSONs :: JSValue -> Result [RpcCallStorageList]

showJSONs :: [RpcCallStorageList] -> JSValue

Rpc RpcCallStorageList RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

data RpcResultStorageList #

Constructors

RpcResultStorageList 

Fields

Instances

Instances details
Show RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcResultStorageList -> ShowS

show :: RpcResultStorageList -> String

showList :: [RpcResultStorageList] -> ShowS

ArrayObject RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultStorageList -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcResultStorageList #

DictObject RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcResultStorageList -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcResultStorageList #

fromDict :: [(String, JSValue)] -> Result RpcResultStorageList #

Eq RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

JSON RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultStorageList

showJSON :: RpcResultStorageList -> JSValue

readJSONs :: JSValue -> Result [RpcResultStorageList]

showJSONs :: [RpcResultStorageList] -> JSValue

Rpc RpcCallStorageList RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

data RpcCallTestDelay #

Call definition for test delay.

Constructors

RpcCallTestDelay 

Fields

Instances

Instances details
Show RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallTestDelay -> ShowS

show :: RpcCallTestDelay -> String

showList :: [RpcCallTestDelay] -> ShowS

ArrayObject RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallTestDelay -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallTestDelay #

DictObject RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallTestDelay -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallTestDelay #

fromDict :: [(String, JSValue)] -> Result RpcCallTestDelay #

RpcCall RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallTestDelay

showJSON :: RpcCallTestDelay -> JSValue

readJSONs :: JSValue -> Result [RpcCallTestDelay]

showJSONs :: [RpcCallTestDelay] -> JSValue

Rpc RpcCallTestDelay RpcResultTestDelay # 
Instance details

Defined in Ganeti.Rpc

data RpcResultTestDelay #

Result definition for test delay.

Constructors

RpcResultTestDelay 

Instances

Instances details
Show RpcResultTestDelay # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcResultTestDelay -> ShowS

show :: RpcResultTestDelay -> String

showList :: [RpcResultTestDelay] -> ShowS

JSON RpcResultTestDelay #

Custom JSON instance for null result.

Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultTestDelay

showJSON :: RpcResultTestDelay -> JSValue

readJSONs :: JSValue -> Result [RpcResultTestDelay]

showJSONs :: [RpcResultTestDelay] -> JSValue

Rpc RpcCallTestDelay RpcResultTestDelay # 
Instance details

Defined in Ganeti.Rpc

data RpcCallExportList #

Call definition for export list.

Constructors

RpcCallExportList 

Instances

Instances details
Show RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallExportList -> ShowS

show :: RpcCallExportList -> String

showList :: [RpcCallExportList] -> ShowS

ArrayObject RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallExportList -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallExportList #

DictObject RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallExportList -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallExportList #

fromDict :: [(String, JSValue)] -> Result RpcCallExportList #

RpcCall RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallExportList

showJSON :: RpcCallExportList -> JSValue

readJSONs :: JSValue -> Result [RpcCallExportList]

showJSONs :: [RpcCallExportList] -> JSValue

Rpc RpcCallExportList RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

data RpcResultExportList #

Result definition for export list.

Constructors

RpcResultExportList 

Fields

Instances

Instances details
Show RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcResultExportList -> ShowS

show :: RpcResultExportList -> String

showList :: [RpcResultExportList] -> ShowS

ArrayObject RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultExportList -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcResultExportList #

DictObject RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcResultExportList -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcResultExportList #

fromDict :: [(String, JSValue)] -> Result RpcResultExportList #

Eq RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

JSON RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultExportList

showJSON :: RpcResultExportList -> JSValue

readJSONs :: JSValue -> Result [RpcResultExportList]

showJSONs :: [RpcResultExportList] -> JSValue

Rpc RpcCallExportList RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

data RpcCallJobqueueUpdate #

Update a job queue file

Instances

Instances details
Show RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallJobqueueUpdate -> ShowS

show :: RpcCallJobqueueUpdate -> String

showList :: [RpcCallJobqueueUpdate] -> ShowS

ArrayObject RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallJobqueueUpdate -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallJobqueueUpdate #

DictObject RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallJobqueueUpdate -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallJobqueueUpdate #

fromDict :: [(String, JSValue)] -> Result RpcCallJobqueueUpdate #

RpcCall RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallJobqueueUpdate

showJSON :: RpcCallJobqueueUpdate -> JSValue

readJSONs :: JSValue -> Result [RpcCallJobqueueUpdate]

showJSONs :: [RpcCallJobqueueUpdate] -> JSValue

data RpcCallJobqueueRename #

Rename a file in the job queue

Constructors

RpcCallJobqueueRename 

Fields

Instances

Instances details
Show RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallJobqueueRename -> ShowS

show :: RpcCallJobqueueRename -> String

showList :: [RpcCallJobqueueRename] -> ShowS

ArrayObject RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallJobqueueRename -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallJobqueueRename #

DictObject RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallJobqueueRename -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallJobqueueRename #

fromDict :: [(String, JSValue)] -> Result RpcCallJobqueueRename #

RpcCall RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallJobqueueRename

showJSON :: RpcCallJobqueueRename -> JSValue

readJSONs :: JSValue -> Result [RpcCallJobqueueRename]

showJSONs :: [RpcCallJobqueueRename] -> JSValue

data RpcCallSetWatcherPause #

Set the watcher status

Constructors

RpcCallSetWatcherPause 

Fields

Instances

Instances details
Show RpcCallSetWatcherPause # 
Instance details

Defined in Ganeti.Rpc

ArrayObject RpcCallSetWatcherPause # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallSetWatcherPause -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallSetWatcherPause #

DictObject RpcCallSetWatcherPause # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallSetWatcherPause -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallSetWatcherPause #

fromDict :: [(String, JSValue)] -> Result RpcCallSetWatcherPause #

RpcCall RpcCallSetWatcherPause # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallSetWatcherPause # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallSetWatcherPause # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallSetWatcherPause

showJSON :: RpcCallSetWatcherPause -> JSValue

readJSONs :: JSValue -> Result [RpcCallSetWatcherPause]

showJSONs :: [RpcCallSetWatcherPause] -> JSValue

data RpcCallSetDrainFlag #

Set the queu drain flag

Constructors

RpcCallSetDrainFlag 

Fields

Instances

Instances details
Show RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallSetDrainFlag -> ShowS

show :: RpcCallSetDrainFlag -> String

showList :: [RpcCallSetDrainFlag] -> ShowS

ArrayObject RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallSetDrainFlag -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallSetDrainFlag #

DictObject RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallSetDrainFlag -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallSetDrainFlag #

fromDict :: [(String, JSValue)] -> Result RpcCallSetDrainFlag #

RpcCall RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallSetDrainFlag

showJSON :: RpcCallSetDrainFlag -> JSValue

readJSONs :: JSValue -> Result [RpcCallSetDrainFlag]

showJSONs :: [RpcCallSetDrainFlag] -> JSValue

data RpcCallUploadFile #

Upload a configuration file to nodes

Instances

Instances details
Show RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallUploadFile -> ShowS

show :: RpcCallUploadFile -> String

showList :: [RpcCallUploadFile] -> ShowS

ArrayObject RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallUploadFile -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallUploadFile #

DictObject RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallUploadFile -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallUploadFile #

fromDict :: [(String, JSValue)] -> Result RpcCallUploadFile #

RpcCall RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallUploadFile

showJSON :: RpcCallUploadFile -> JSValue

readJSONs :: JSValue -> Result [RpcCallUploadFile]

showJSONs :: [RpcCallUploadFile] -> JSValue

prepareRpcCallUploadFile :: RuntimeEnts -> FilePath -> ResultG RpcCallUploadFile #

Reads a file and constructs the corresponding RpcCallUploadFile value.

data RpcCallWriteSsconfFiles #

Upload ssconf files to nodes

Instances

Instances details
Show RpcCallWriteSsconfFiles # 
Instance details

Defined in Ganeti.Rpc

ArrayObject RpcCallWriteSsconfFiles # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallWriteSsconfFiles -> [JSValue] #

fromJSArray :: [JSValue] -> Result RpcCallWriteSsconfFiles #

DictObject RpcCallWriteSsconfFiles # 
Instance details

Defined in Ganeti.Rpc

Methods

toDict :: RpcCallWriteSsconfFiles -> [(String, JSValue)] #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result RpcCallWriteSsconfFiles #

fromDict :: [(String, JSValue)] -> Result RpcCallWriteSsconfFiles #

RpcCall RpcCallWriteSsconfFiles # 
Instance details

Defined in Ganeti.Rpc

Eq RpcCallWriteSsconfFiles # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallWriteSsconfFiles # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallWriteSsconfFiles

showJSON :: RpcCallWriteSsconfFiles -> JSValue

readJSONs :: JSValue -> Result [RpcCallWriteSsconfFiles]

showJSONs :: [RpcCallWriteSsconfFiles] -> JSValue