ganeti
Safe HaskellNone

Ganeti.Rpc

Description

Implementation of the RPC client.

Synopsis

Base RPC functionality and types

curlOpts :: [CurlOption] Source #

The curl options used for RPC.

data RpcError Source #

Data type for RPC error reporting.

Constructors

CurlLayerError String 
JsonDecodeError String 
RpcResultError String 
OfflineNodeError 

Instances

Instances details
Eq RpcError # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

Show RpcError # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcError -> ShowS

show :: RpcError -> String

showList :: [RpcError] -> ShowS

explainRpcError :: RpcError -> String Source #

Provide explanation to RPC errors.

type ERpcError = Either RpcError Source #

class ArrayObject a => RpcCall a where Source #

A generic class for RPC calls.

Minimal complete definition

rpcCallName, rpcCallTimeout, rpcCallAcceptOffline

Methods

rpcCallName :: a -> String Source #

Give the (Python) name of the procedure.

rpcCallTimeout :: a -> Int Source #

Calculate the timeout value for the call execution.

rpcCallData :: a -> String Source #

Prepare arguments of the call to be send as POST.

rpcCallAcceptOffline :: a -> Bool Source #

Whether we accept offline nodes when making a call.

Instances

Instances details
RpcCall RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallSetWatcherPause # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallWriteSsconfFiles # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

RpcCall RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

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

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

Methods

rpcResultFill :: a -> JSValue -> ERpcError b Source #

Create a result based on the received HTTP response.

Instances

Instances details
Rpc RpcCallInstanceInfo RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallAllInstancesInfo RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallInstanceConsoleInfo RpcResultInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallInstanceList RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallNodeInfo RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallVersion RpcResultVersion # 
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 RpcCallExportList RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallNodeActivateMasterIp RpcResultNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallMasterNodeName RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

data HttpClientRequest Source #

Http Request definition.

Constructors

HttpClientRequest 

Fields

isIpV6 :: String -> Bool Source #

Check if a string represented address is IPv6

prepareUrl :: RpcCall a => Int -> Node -> a -> String Source #

Prepare url for the HTTP request.

prepareHttpRequest :: RpcCall a => Int -> [CurlOption] -> Node -> String -> a -> ERpcError HttpClientRequest Source #

Create HTTP request for a given node provided it is online, otherwise create empty response.

parseHttpReply :: Rpc a b => a -> ERpcError (CurlCode, String) -> ERpcError b Source #

Parse an HTTP reply.

parseHttpResponse :: Rpc a b => a -> String -> ERpcError b Source #

Parse a result based on the received HTTP response.

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

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

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

getOptionsForCall :: Rpc a b => FilePath -> FilePath -> a -> [CurlOption] Source #

Get options for RPC call

getNodedPort :: IO Int Source #

Determine to port to call noded at.

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

Execute multiple distinct RPC calls in parallel

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

Execute multiple RPC calls in parallel

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

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

sanitizeDictResults :: [(String, Result a)] -> ERpcError [(String, a)] Source #

Helper function that is used to read dictionaries of values.

fromJResultToRes :: Result a -> (a -> b) -> ERpcError b Source #

Helper function to tranform JSON Result to Either RpcError b. Note: For now we really only use it for b s.t. Rpc c b for some c

fromJSValueToRes :: JSON a => JSValue -> (a -> b) -> ERpcError b Source #

Helper function transforming JSValue to Rpc result type.

newtype Compressed Source #

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

On Python side it is decompressed by backend._Decompress.

Constructors

Compressed 

Fields

Instances

Instances details
Eq Compressed # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

Ord Compressed # 
Instance details

Defined in Ganeti.Rpc

Show Compressed # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> Compressed -> ShowS

show :: Compressed -> String

showList :: [Compressed] -> ShowS

JSON Compressed # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result Compressed

showJSON :: Compressed -> JSValue

readJSONs :: JSValue -> Result [Compressed]

showJSONs :: [Compressed] -> JSValue

Arbitrary Compressed 
Instance details

Defined in Test.Ganeti.Rpc

RPC calls and results

Instance info

data RpcCallInstanceInfo Source #

Returns information about a single instance

Instances

Instances details
Eq RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallInstanceInfo -> ShowS

show :: RpcCallInstanceInfo -> String

showList :: [RpcCallInstanceInfo] -> ShowS

JSON RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallInstanceInfo

showJSON :: RpcCallInstanceInfo -> JSValue

readJSONs :: JSValue -> Result [RpcCallInstanceInfo]

showJSONs :: [RpcCallInstanceInfo] -> JSValue

ArrayObject RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallInstanceInfo -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcCallInstanceInfo Source #

DictObject RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallInstanceInfo RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

data InstanceState Source #

Instances

Instances details
Bounded InstanceState # 
Instance details

Defined in Ganeti.Rpc

Enum InstanceState # 
Instance details

Defined in Ganeti.Rpc

Eq InstanceState # 
Instance details

Defined in Ganeti.Rpc

Ord 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

JSON InstanceState # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result InstanceState

showJSON :: InstanceState -> JSValue

readJSONs :: JSValue -> Result [InstanceState]

showJSONs :: [InstanceState] -> JSValue

PyValue InstanceState # 
Instance details

Defined in Ganeti.Rpc

instanceStateFromRaw :: forall m. (Monad m, MonadFail m) => Int -> m InstanceState Source #

data InstanceInfo Source #

Constructors

InstanceInfo 

Instances

Instances details
Eq InstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

Show InstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> InstanceInfo -> ShowS

show :: InstanceInfo -> String

showList :: [InstanceInfo] -> ShowS

JSON InstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result InstanceInfo

showJSON :: InstanceInfo -> JSValue

readJSONs :: JSValue -> Result [InstanceInfo]

showJSONs :: [InstanceInfo] -> JSValue

ArrayObject InstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: InstanceInfo -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result InstanceInfo Source #

DictObject InstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

loadInstanceInfo :: JSValue -> Result InstanceInfo Source #

data RpcResultInstanceInfo Source #

Instances

Instances details
Eq RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Show RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcResultInstanceInfo -> ShowS

show :: RpcResultInstanceInfo -> String

showList :: [RpcResultInstanceInfo] -> ShowS

JSON RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultInstanceInfo

showJSON :: RpcResultInstanceInfo -> JSValue

readJSONs :: JSValue -> Result [RpcResultInstanceInfo]

showJSONs :: [RpcResultInstanceInfo] -> JSValue

ArrayObject RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultInstanceInfo -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcResultInstanceInfo Source #

DictObject RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

Rpc RpcCallInstanceInfo RpcResultInstanceInfo # 
Instance details

Defined in Ganeti.Rpc

AllInstancesInfo

data RpcCallAllInstancesInfo Source #

Returns information about all running instances on the given nodes

Instances

Instances details
Eq RpcCallAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Show 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

ArrayObject RpcCallAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

DictObject RpcCallAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Arbitrary RpcCallAllInstancesInfo 
Instance details

Defined in Test.Ganeti.Rpc

Rpc RpcCallAllInstancesInfo RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

data RpcResultAllInstancesInfo Source #

Instances

Instances details
Eq RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Show RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

JSON RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

ArrayObject RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

DictObject RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

Rpc RpcCallAllInstancesInfo RpcResultAllInstancesInfo # 
Instance details

Defined in Ganeti.Rpc

InstanceConsoleInfo

data InstanceConsoleInfoParams Source #

Returns information about how to access instances on the given node

Instances

Instances details
Eq InstanceConsoleInfoParams # 
Instance details

Defined in Ganeti.Rpc

Show InstanceConsoleInfoParams # 
Instance details

Defined in Ganeti.Rpc

JSON InstanceConsoleInfoParams # 
Instance details

Defined in Ganeti.Rpc

ArrayObject InstanceConsoleInfoParams # 
Instance details

Defined in Ganeti.Rpc

DictObject InstanceConsoleInfoParams # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

data RpcCallInstanceConsoleInfo Source #

Instances

Instances details
Eq RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

JSON RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

ArrayObject RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

DictObject RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Arbitrary RpcCallInstanceConsoleInfo 
Instance details

Defined in Test.Ganeti.Rpc

Rpc RpcCallInstanceConsoleInfo RpcResultInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

data InstanceConsoleInfo Source #

Constructors

InstanceConsoleInfo 

Fields

Instances

Instances details
Eq InstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Show InstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> InstanceConsoleInfo -> ShowS

show :: InstanceConsoleInfo -> String

showList :: [InstanceConsoleInfo] -> ShowS

JSON InstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result InstanceConsoleInfo

showJSON :: InstanceConsoleInfo -> JSValue

readJSONs :: JSValue -> Result [InstanceConsoleInfo]

showJSONs :: [InstanceConsoleInfo] -> JSValue

ArrayObject InstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: InstanceConsoleInfo -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result InstanceConsoleInfo Source #

DictObject InstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

data RpcResultInstanceConsoleInfo Source #

Instances

Instances details
Eq RpcResultInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

Show RpcResultInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

JSON 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)] Source #

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

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

Rpc RpcCallInstanceConsoleInfo RpcResultInstanceConsoleInfo # 
Instance details

Defined in Ganeti.Rpc

InstanceList

data RpcCallInstanceList Source #

Returns the list of running instances on the given nodes

Instances

Instances details
Eq RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallInstanceList -> ShowS

show :: RpcCallInstanceList -> String

showList :: [RpcCallInstanceList] -> ShowS

JSON RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallInstanceList

showJSON :: RpcCallInstanceList -> JSValue

readJSONs :: JSValue -> Result [RpcCallInstanceList]

showJSONs :: [RpcCallInstanceList] -> JSValue

ArrayObject RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallInstanceList -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcCallInstanceList Source #

DictObject RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallInstanceList # 
Instance details

Defined in Ganeti.Rpc

Arbitrary RpcCallInstanceList 
Instance details

Defined in Test.Ganeti.Rpc

Rpc RpcCallInstanceList RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

data RpcResultInstanceList Source #

Constructors

RpcResultInstanceList 

Fields

Instances

Instances details
Eq RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

Show RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcResultInstanceList -> ShowS

show :: RpcResultInstanceList -> String

showList :: [RpcResultInstanceList] -> ShowS

JSON RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultInstanceList

showJSON :: RpcResultInstanceList -> JSValue

readJSONs :: JSValue -> Result [RpcResultInstanceList]

showJSONs :: [RpcResultInstanceList] -> JSValue

ArrayObject RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultInstanceList -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcResultInstanceList Source #

DictObject RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

Rpc RpcCallInstanceList RpcResultInstanceList # 
Instance details

Defined in Ganeti.Rpc

NodeInfo

data RpcCallNodeInfo Source #

Returns node information

Instances

Instances details
Eq RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallNodeInfo -> ShowS

show :: RpcCallNodeInfo -> String

showList :: [RpcCallNodeInfo] -> ShowS

JSON RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallNodeInfo

showJSON :: RpcCallNodeInfo -> JSValue

readJSONs :: JSValue -> Result [RpcCallNodeInfo]

showJSONs :: [RpcCallNodeInfo] -> JSValue

ArrayObject RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallNodeInfo -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcCallNodeInfo Source #

DictObject RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Arbitrary RpcCallNodeInfo 
Instance details

Defined in Test.Ganeti.Rpc

Rpc RpcCallNodeInfo RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

data StorageInfo Source #

Constructors

StorageInfo 

Fields

Instances

Instances details
Eq StorageInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

Show StorageInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> StorageInfo -> ShowS

show :: StorageInfo -> String

showList :: [StorageInfo] -> ShowS

JSON StorageInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result StorageInfo

showJSON :: StorageInfo -> JSValue

readJSONs :: JSValue -> Result [StorageInfo]

showJSONs :: [StorageInfo] -> JSValue

ArrayObject StorageInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: StorageInfo -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result StorageInfo Source #

DictObject StorageInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

loadStorageInfo :: JSValue -> Result StorageInfo Source #

data HvInfo Source #

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

Constructors

HvInfo 

Fields

Instances

Instances details
Eq HvInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

Show HvInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> HvInfo -> ShowS

show :: HvInfo -> String

showList :: [HvInfo] -> ShowS

JSON HvInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result HvInfo

showJSON :: HvInfo -> JSValue

readJSONs :: JSValue -> Result [HvInfo]

showJSONs :: [HvInfo] -> JSValue

ArrayObject HvInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: HvInfo -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result HvInfo Source #

DictObject HvInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

loadHvInfo :: JSValue -> Result HvInfo Source #

saveHvInfo :: HvInfo -> JSValue Source #

data RpcResultNodeInfo Source #

Instances

Instances details
Eq RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Show RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcResultNodeInfo -> ShowS

show :: RpcResultNodeInfo -> String

showList :: [RpcResultNodeInfo] -> ShowS

JSON RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultNodeInfo

showJSON :: RpcResultNodeInfo -> JSValue

readJSONs :: JSValue -> Result [RpcResultNodeInfo]

showJSONs :: [RpcResultNodeInfo] -> JSValue

ArrayObject RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultNodeInfo -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcResultNodeInfo Source #

DictObject RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

Rpc RpcCallNodeInfo RpcResultNodeInfo # 
Instance details

Defined in Ganeti.Rpc

Version

data RpcCallVersion Source #

Query node version.

Constructors

RpcCallVersion 

Instances

Instances details
Eq RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallVersion -> ShowS

show :: RpcCallVersion -> String

showList :: [RpcCallVersion] -> ShowS

JSON RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallVersion

showJSON :: RpcCallVersion -> JSValue

readJSONs :: JSValue -> Result [RpcCallVersion]

showJSONs :: [RpcCallVersion] -> JSValue

ArrayObject RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallVersion -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcCallVersion Source #

DictObject RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallVersion # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallVersion RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

data RpcResultVersion Source #

Query node reply.

Constructors

RpcResultVersion 

Instances

Instances details
Eq RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

Show RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcResultVersion -> ShowS

show :: RpcResultVersion -> String

showList :: [RpcResultVersion] -> ShowS

JSON RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultVersion

showJSON :: RpcResultVersion -> JSValue

readJSONs :: JSValue -> Result [RpcResultVersion]

showJSONs :: [RpcResultVersion] -> JSValue

ArrayObject RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultVersion -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcResultVersion Source #

DictObject RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

Rpc RpcCallVersion RpcResultVersion # 
Instance details

Defined in Ganeti.Rpc

StorageList

data RpcCallStorageList Source #

Instances

Instances details
Eq RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallStorageList -> ShowS

show :: RpcCallStorageList -> String

showList :: [RpcCallStorageList] -> ShowS

JSON RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallStorageList

showJSON :: RpcCallStorageList -> JSValue

readJSONs :: JSValue -> Result [RpcCallStorageList]

showJSONs :: [RpcCallStorageList] -> JSValue

ArrayObject RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallStorageList -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcCallStorageList Source #

DictObject RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallStorageList # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallStorageList RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

data RpcResultStorageList Source #

Constructors

RpcResultStorageList 

Fields

Instances

Instances details
Eq RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

Show RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcResultStorageList -> ShowS

show :: RpcResultStorageList -> String

showList :: [RpcResultStorageList] -> ShowS

JSON RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultStorageList

showJSON :: RpcResultStorageList -> JSValue

readJSONs :: JSValue -> Result [RpcResultStorageList]

showJSONs :: [RpcResultStorageList] -> JSValue

ArrayObject RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultStorageList -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcResultStorageList Source #

DictObject RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

Rpc RpcCallStorageList RpcResultStorageList # 
Instance details

Defined in Ganeti.Rpc

TestDelay

data RpcCallTestDelay Source #

Call definition for test delay.

Constructors

RpcCallTestDelay 

Fields

Instances

Instances details
Eq RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallTestDelay -> ShowS

show :: RpcCallTestDelay -> String

showList :: [RpcCallTestDelay] -> ShowS

JSON RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallTestDelay

showJSON :: RpcCallTestDelay -> JSValue

readJSONs :: JSValue -> Result [RpcCallTestDelay]

showJSONs :: [RpcCallTestDelay] -> JSValue

ArrayObject RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallTestDelay -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcCallTestDelay Source #

DictObject RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallTestDelay # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallTestDelay RpcResultTestDelay # 
Instance details

Defined in Ganeti.Rpc

data RpcResultTestDelay Source #

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

ExportList

data RpcCallExportList Source #

Call definition for export list.

Constructors

RpcCallExportList 

Instances

Instances details
Eq RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallExportList -> ShowS

show :: RpcCallExportList -> String

showList :: [RpcCallExportList] -> ShowS

JSON RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallExportList

showJSON :: RpcCallExportList -> JSValue

readJSONs :: JSValue -> Result [RpcCallExportList]

showJSONs :: [RpcCallExportList] -> JSValue

ArrayObject RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallExportList -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcCallExportList Source #

DictObject RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallExportList # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallExportList RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

data RpcResultExportList Source #

Result definition for export list.

Constructors

RpcResultExportList 

Fields

Instances

Instances details
Eq RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

Show RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcResultExportList -> ShowS

show :: RpcResultExportList -> String

showList :: [RpcResultExportList] -> ShowS

JSON RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcResultExportList

showJSON :: RpcResultExportList -> JSValue

readJSONs :: JSValue -> Result [RpcResultExportList]

showJSONs :: [RpcResultExportList] -> JSValue

ArrayObject RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcResultExportList -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcResultExportList Source #

DictObject RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

Rpc RpcCallExportList RpcResultExportList # 
Instance details

Defined in Ganeti.Rpc

Job Queue Replication

data RpcCallJobqueueUpdate Source #

Update a job queue file

Instances

Instances details
Eq RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallJobqueueUpdate -> ShowS

show :: RpcCallJobqueueUpdate -> String

showList :: [RpcCallJobqueueUpdate] -> ShowS

JSON RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallJobqueueUpdate

showJSON :: RpcCallJobqueueUpdate -> JSValue

readJSONs :: JSValue -> Result [RpcCallJobqueueUpdate]

showJSONs :: [RpcCallJobqueueUpdate] -> JSValue

ArrayObject RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallJobqueueUpdate -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcCallJobqueueUpdate Source #

DictObject RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallJobqueueUpdate # 
Instance details

Defined in Ganeti.Rpc

data RpcCallJobqueueRename Source #

Rename a file in the job queue

Constructors

RpcCallJobqueueRename 

Fields

Instances

Instances details
Eq RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallJobqueueRename -> ShowS

show :: RpcCallJobqueueRename -> String

showList :: [RpcCallJobqueueRename] -> ShowS

JSON RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallJobqueueRename

showJSON :: RpcCallJobqueueRename -> JSValue

readJSONs :: JSValue -> Result [RpcCallJobqueueRename]

showJSONs :: [RpcCallJobqueueRename] -> JSValue

ArrayObject RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallJobqueueRename -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcCallJobqueueRename Source #

DictObject RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallJobqueueRename # 
Instance details

Defined in Ganeti.Rpc

Watcher Status Update

data RpcCallSetWatcherPause Source #

Set the watcher status

Constructors

RpcCallSetWatcherPause 

Fields

Instances

Instances details
Eq RpcCallSetWatcherPause # 
Instance details

Defined in Ganeti.Rpc

Show 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

ArrayObject RpcCallSetWatcherPause # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallSetWatcherPause -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcCallSetWatcherPause Source #

DictObject RpcCallSetWatcherPause # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallSetWatcherPause # 
Instance details

Defined in Ganeti.Rpc

Queue drain status

data RpcCallSetDrainFlag Source #

Set the queu drain flag

Constructors

RpcCallSetDrainFlag 

Fields

Instances

Instances details
Eq RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallSetDrainFlag -> ShowS

show :: RpcCallSetDrainFlag -> String

showList :: [RpcCallSetDrainFlag] -> ShowS

JSON RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallSetDrainFlag

showJSON :: RpcCallSetDrainFlag -> JSValue

readJSONs :: JSValue -> Result [RpcCallSetDrainFlag]

showJSONs :: [RpcCallSetDrainFlag] -> JSValue

ArrayObject RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallSetDrainFlag -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcCallSetDrainFlag Source #

DictObject RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallSetDrainFlag # 
Instance details

Defined in Ganeti.Rpc

Configuration files upload to nodes

data RpcCallUploadFile Source #

Upload a configuration file to nodes

Instances

Instances details
Eq RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallUploadFile -> ShowS

show :: RpcCallUploadFile -> String

showList :: [RpcCallUploadFile] -> ShowS

JSON RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallUploadFile

showJSON :: RpcCallUploadFile -> JSValue

readJSONs :: JSValue -> Result [RpcCallUploadFile]

showJSONs :: [RpcCallUploadFile] -> JSValue

ArrayObject RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallUploadFile -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcCallUploadFile Source #

DictObject RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallUploadFile # 
Instance details

Defined in Ganeti.Rpc

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

Reads a file and constructs the corresponding RpcCallUploadFile value.

data RpcCallWriteSsconfFiles Source #

Upload ssconf files to nodes

Instances

Instances details
Eq RpcCallWriteSsconfFiles # 
Instance details

Defined in Ganeti.Rpc

Show 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

ArrayObject RpcCallWriteSsconfFiles # 
Instance details

Defined in Ganeti.Rpc

DictObject RpcCallWriteSsconfFiles # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallWriteSsconfFiles # 
Instance details

Defined in Ganeti.Rpc

data RpcCallNodeActivateMasterIp Source #

Activate the master IP address

Instances

Instances details
Eq RpcCallNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

JSON 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)] Source #

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

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

RpcCall RpcCallNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallNodeActivateMasterIp RpcResultNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

data RpcResultNodeActivateMasterIp Source #

Instances

Instances details
Eq RpcResultNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

Show RpcResultNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

JSON 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)] Source #

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

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

Rpc RpcCallNodeActivateMasterIp RpcResultNodeActivateMasterIp # 
Instance details

Defined in Ganeti.Rpc

data RpcCallMasterNodeName Source #

Ask who the node believes is the master.

Constructors

RpcCallMasterNodeName 

Instances

Instances details
Eq RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Show RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Methods

showsPrec :: Int -> RpcCallMasterNodeName -> ShowS

show :: RpcCallMasterNodeName -> String

showList :: [RpcCallMasterNodeName] -> ShowS

JSON RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Methods

readJSON :: JSValue -> Result RpcCallMasterNodeName

showJSON :: RpcCallMasterNodeName -> JSValue

readJSONs :: JSValue -> Result [RpcCallMasterNodeName]

showJSONs :: [RpcCallMasterNodeName] -> JSValue

ArrayObject RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Methods

toJSArray :: RpcCallMasterNodeName -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result RpcCallMasterNodeName Source #

DictObject RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

RpcCall RpcCallMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Rpc RpcCallMasterNodeName RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

data RpcResultMasterNodeName Source #

Instances

Instances details
Eq RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Show 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

ArrayObject RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

DictObject RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc

Methods

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

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

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

Rpc RpcCallMasterNodeName RpcResultMasterNodeName # 
Instance details

Defined in Ganeti.Rpc