Safe Haskell | None |
---|
Implementation of the RPC client.
- curlOpts :: [CurlOption]
- data RpcError
- = CurlLayerError String
- | JsonDecodeError String
- | RpcResultError String
- | OfflineNodeError
- explainRpcError :: RpcError -> String
- type ERpcError = Either RpcError
- class ArrayObject a => RpcCall a where
- rpcCallName :: a -> String
- rpcCallTimeout :: a -> Int
- rpcCallData :: Node -> a -> String
- rpcCallAcceptOffline :: a -> Bool
- class (RpcCall a, JSON b) => Rpc a b | a -> b, b -> a where
- rpcResultFill :: a -> JSValue -> ERpcError b
- data HttpClientRequest = HttpClientRequest {
- requestUrl :: String
- requestData :: String
- requestOpts :: [CurlOption]
- isIpV6 :: String -> Bool
- prepareUrl :: RpcCall a => Int -> Node -> a -> String
- prepareHttpRequest :: RpcCall a => Int -> [CurlOption] -> Node -> a -> ERpcError HttpClientRequest
- parseHttpReply :: Rpc a b => a -> ERpcError (CurlCode, String) -> ERpcError b
- parseHttpResponse :: Rpc a b => a -> String -> ERpcError b
- rpcErrors :: [(a, ERpcError b)] -> [(a, RpcError)]
- logRpcErrors :: (MonadLog m, Show a) => [(a, ERpcError b)] -> m [(a, RpcError)]
- getOptionsForCall :: Rpc a b => FilePath -> FilePath -> a -> [CurlOption]
- getNodedPort :: IO Int
- executeRpcCalls :: Rpc a b => [(Node, a)] -> IO [(Node, ERpcError b)]
- executeRpcCall :: Rpc a b => [Node] -> a -> IO [(Node, ERpcError b)]
- sanitizeDictResults :: [(String, Result a)] -> ERpcError [(String, a)]
- fromJResultToRes :: Result a -> (a -> b) -> ERpcError b
- fromJSValueToRes :: JSON a => JSValue -> (a -> b) -> ERpcError b
- newtype Compressed = Compressed {
- getCompressed :: ByteString
- packCompressed :: ByteString -> Compressed
- toCompressed :: String -> Compressed
- data RpcCallInstanceInfo = RpcCallInstanceInfo {
- rpcCallInstInfoInstance :: String
- rpcCallInstInfoHname :: Hypervisor
- loadRpcCallInstanceInfo :: JSValue -> Result RpcCallInstanceInfo
- saveRpcCallInstanceInfo :: RpcCallInstanceInfo -> JSValue
- data InstanceState
- instanceStateFromRaw :: forall m. Monad m => Int -> m InstanceState
- instanceStateToRaw :: InstanceState -> Int
- _InstanceStateShutdown :: Int
- _InstanceStateRunning :: Int
- data InstanceInfo = InstanceInfo {
- instInfoMemory :: Int
- instInfoState :: InstanceState
- instInfoVcpus :: Int
- instInfoTime :: Int
- loadInstanceInfo :: JSValue -> Result InstanceInfo
- saveInstanceInfo :: InstanceInfo -> JSValue
- data RpcResultInstanceInfo = RpcResultInstanceInfo {
- rpcResInstInfoInstInfo :: Maybe InstanceInfo
- loadRpcResultInstanceInfo :: JSValue -> Result RpcResultInstanceInfo
- saveRpcResultInstanceInfo :: RpcResultInstanceInfo -> JSValue
- data RpcCallAllInstancesInfo = RpcCallAllInstancesInfo {}
- loadRpcCallAllInstancesInfo :: JSValue -> Result RpcCallAllInstancesInfo
- saveRpcCallAllInstancesInfo :: RpcCallAllInstancesInfo -> JSValue
- data RpcResultAllInstancesInfo = RpcResultAllInstancesInfo {
- rpcResAllInstInfoInstances :: [(String, InstanceInfo)]
- loadRpcResultAllInstancesInfo :: JSValue -> Result RpcResultAllInstancesInfo
- saveRpcResultAllInstancesInfo :: RpcResultAllInstancesInfo -> JSValue
- data InstanceConsoleInfoParams = InstanceConsoleInfoParams {}
- loadInstanceConsoleInfoParams :: JSValue -> Result InstanceConsoleInfoParams
- saveInstanceConsoleInfoParams :: InstanceConsoleInfoParams -> JSValue
- data RpcCallInstanceConsoleInfo = RpcCallInstanceConsoleInfo {
- rpcCallInstConsInfoInstanceInfo :: [(String, InstanceConsoleInfoParams)]
- loadRpcCallInstanceConsoleInfo :: JSValue -> Result RpcCallInstanceConsoleInfo
- saveRpcCallInstanceConsoleInfo :: RpcCallInstanceConsoleInfo -> JSValue
- data InstanceConsoleInfo = InstanceConsoleInfo {
- instConsInfoInstance :: String
- instConsInfoKind :: String
- instConsInfoMessage :: Maybe String
- instConsInfoHost :: Maybe String
- instConsInfoPort :: Maybe Int
- instConsInfoUser :: Maybe String
- instConsInfoCommand :: Maybe [String]
- instConsInfoDisplay :: Maybe String
- loadInstanceConsoleInfo :: JSValue -> Result InstanceConsoleInfo
- saveInstanceConsoleInfo :: InstanceConsoleInfo -> JSValue
- data RpcResultInstanceConsoleInfo = RpcResultInstanceConsoleInfo {
- rpcResInstConsInfoInstancesInfo :: [(String, InstanceConsoleInfo)]
- loadRpcResultInstanceConsoleInfo :: JSValue -> Result RpcResultInstanceConsoleInfo
- saveRpcResultInstanceConsoleInfo :: RpcResultInstanceConsoleInfo -> JSValue
- data RpcCallInstanceList = RpcCallInstanceList {}
- loadRpcCallInstanceList :: JSValue -> Result RpcCallInstanceList
- saveRpcCallInstanceList :: RpcCallInstanceList -> JSValue
- data RpcResultInstanceList = RpcResultInstanceList {
- rpcResInstListInstances :: [String]
- loadRpcResultInstanceList :: JSValue -> Result RpcResultInstanceList
- saveRpcResultInstanceList :: RpcResultInstanceList -> JSValue
- data RpcCallNodeInfo = RpcCallNodeInfo {
- rpcCallNodeInfoStorageUnits :: Map String [StorageUnit]
- rpcCallNodeInfoHypervisors :: [(Hypervisor, HvParams)]
- loadRpcCallNodeInfo :: JSValue -> Result RpcCallNodeInfo
- saveRpcCallNodeInfo :: RpcCallNodeInfo -> JSValue
- data StorageInfo = StorageInfo {
- storageInfoName :: String
- storageInfoType :: String
- storageInfoStorageFree :: Maybe Int
- storageInfoStorageSize :: Maybe Int
- loadStorageInfo :: JSValue -> Result StorageInfo
- saveStorageInfo :: StorageInfo -> JSValue
- data HvInfo = HvInfo {
- hvInfoHvVersion :: Maybe [Int]
- hvInfoMemoryTotal :: Int
- hvInfoMemoryFree :: Int
- hvInfoMemoryDom0 :: Int
- hvInfoMemoryHv :: Maybe Int
- hvInfoCpuTotal :: Int
- hvInfoCpuNodes :: Int
- hvInfoCpuSockets :: Int
- hvInfoCpuDom0 :: Int
- loadHvInfo :: JSValue -> Result HvInfo
- saveHvInfo :: HvInfo -> JSValue
- data RpcResultNodeInfo = RpcResultNodeInfo {
- rpcResNodeInfoBootId :: String
- rpcResNodeInfoStorageInfo :: [StorageInfo]
- rpcResNodeInfoHvInfo :: [HvInfo]
- loadRpcResultNodeInfo :: JSValue -> Result RpcResultNodeInfo
- saveRpcResultNodeInfo :: RpcResultNodeInfo -> JSValue
- data RpcCallVersion = RpcCallVersion {
- loadRpcCallVersion :: JSValue -> Result RpcCallVersion
- saveRpcCallVersion :: RpcCallVersion -> JSValue
- data RpcResultVersion = RpcResultVersion {
- rpcResultVersionVersion :: Int
- loadRpcResultVersion :: JSValue -> Result RpcResultVersion
- saveRpcResultVersion :: RpcResultVersion -> JSValue
- data RpcCallStorageList = RpcCallStorageList {
- rpcCallStorageListSuName :: StorageType
- rpcCallStorageListSuArgs :: [String]
- rpcCallStorageListName :: String
- rpcCallStorageListFields :: [StorageField]
- loadRpcCallStorageList :: JSValue -> Result RpcCallStorageList
- saveRpcCallStorageList :: RpcCallStorageList -> JSValue
- data RpcResultStorageList = RpcResultStorageList {
- rpcResStorageListStorage :: [[(StorageField, JSValue)]]
- loadRpcResultStorageList :: JSValue -> Result RpcResultStorageList
- saveRpcResultStorageList :: RpcResultStorageList -> JSValue
- data RpcCallTestDelay = RpcCallTestDelay {
- rpcCallTestDelayDuration :: Double
- loadRpcCallTestDelay :: JSValue -> Result RpcCallTestDelay
- saveRpcCallTestDelay :: RpcCallTestDelay -> JSValue
- data RpcResultTestDelay = RpcResultTestDelay
- data RpcCallExportList = RpcCallExportList {
- loadRpcCallExportList :: JSValue -> Result RpcCallExportList
- saveRpcCallExportList :: RpcCallExportList -> JSValue
- data RpcResultExportList = RpcResultExportList {
- rpcResExportListExports :: [String]
- loadRpcResultExportList :: JSValue -> Result RpcResultExportList
- saveRpcResultExportList :: RpcResultExportList -> JSValue
- data RpcCallJobqueueUpdate = RpcCallJobqueueUpdate {
- rpcCallJobqueueUpdateFileName :: String
- rpcCallJobqueueUpdateContent :: String
- loadRpcCallJobqueueUpdate :: JSValue -> Result RpcCallJobqueueUpdate
- saveRpcCallJobqueueUpdate :: RpcCallJobqueueUpdate -> JSValue
- data RpcResultJobQueueUpdate = RpcResultJobQueueUpdate {
- loadRpcResultJobQueueUpdate :: JSValue -> Result RpcResultJobQueueUpdate
- saveRpcResultJobQueueUpdate :: RpcResultJobQueueUpdate -> JSValue
- data RpcCallJobqueueRename = RpcCallJobqueueRename {
- rpcCallJobqueueRenameRename :: [(String, String)]
- loadRpcCallJobqueueRename :: JSValue -> Result RpcCallJobqueueRename
- saveRpcCallJobqueueRename :: RpcCallJobqueueRename -> JSValue
- data RpcResultJobqueueRename = RpcResultJobqueueRename {
- loadRpcResultJobqueueRename :: JSValue -> Result RpcResultJobqueueRename
- saveRpcResultJobqueueRename :: RpcResultJobqueueRename -> JSValue
- data RpcCallSetWatcherPause = RpcCallSetWatcherPause {
- rpcCallSetWatcherPauseTime :: Maybe ClockTime
- loadRpcCallSetWatcherPause :: JSValue -> Result RpcCallSetWatcherPause
- saveRpcCallSetWatcherPause :: RpcCallSetWatcherPause -> JSValue
- data RpcResultSetWatcherPause = RpcResultSetWatcherPause {
- loadRpcResultSetWatcherPause :: JSValue -> Result RpcResultSetWatcherPause
- saveRpcResultSetWatcherPause :: RpcResultSetWatcherPause -> JSValue
- data RpcCallSetDrainFlag = RpcCallSetDrainFlag {
- rpcCallSetDrainFlagValue :: Bool
- loadRpcCallSetDrainFlag :: JSValue -> Result RpcCallSetDrainFlag
- saveRpcCallSetDrainFlag :: RpcCallSetDrainFlag -> JSValue
- data RpcResultSetDrainFlag = RpcResultSetDrainFlag {
- loadRpcResultSetDrainFlag :: JSValue -> Result RpcResultSetDrainFlag
- saveRpcResultSetDrainFlag :: RpcResultSetDrainFlag -> JSValue
- data RpcCallUploadFile = RpcCallUploadFile {
- rpcCallUploadFileFileName :: FilePath
- rpcCallUploadFileContent :: Compressed
- rpcCallUploadFileMode :: Maybe FileMode
- rpcCallUploadFileUid :: String
- rpcCallUploadFileGid :: String
- rpcCallUploadFileAtime :: ClockTime
- rpcCallUploadFileMtime :: ClockTime
- loadRpcCallUploadFile :: JSValue -> Result RpcCallUploadFile
- saveRpcCallUploadFile :: RpcCallUploadFile -> JSValue
- data RpcResultUploadFile = RpcResultUploadFile {
- loadRpcResultUploadFile :: JSValue -> Result RpcResultUploadFile
- saveRpcResultUploadFile :: RpcResultUploadFile -> JSValue
- prepareRpcCallUploadFile :: RuntimeEnts -> FilePath -> ResultG RpcCallUploadFile
- data RpcCallWriteSsconfFiles = RpcCallWriteSsconfFiles {}
- loadRpcCallWriteSsconfFiles :: JSValue -> Result RpcCallWriteSsconfFiles
- saveRpcCallWriteSsconfFiles :: RpcCallWriteSsconfFiles -> JSValue
- data RpcResultWriteSsconfFiles = RpcResultWriteSsconfFiles {
- loadRpcResultWriteSsconfFiles :: JSValue -> Result RpcResultWriteSsconfFiles
- saveRpcResultWriteSsconfFiles :: RpcResultWriteSsconfFiles -> JSValue
- data RpcCallNodeActivateMasterIp = RpcCallNodeActivateMasterIp {}
- loadRpcCallNodeActivateMasterIp :: JSValue -> Result RpcCallNodeActivateMasterIp
- saveRpcCallNodeActivateMasterIp :: RpcCallNodeActivateMasterIp -> JSValue
- data RpcResultNodeActivateMasterIp = RpcResultNodeActivateMasterIp {
- loadRpcResultNodeActivateMasterIp :: JSValue -> Result RpcResultNodeActivateMasterIp
- saveRpcResultNodeActivateMasterIp :: RpcResultNodeActivateMasterIp -> JSValue
- data RpcCallMasterNodeName = RpcCallMasterNodeName {
- loadRpcCallMasterNodeName :: JSValue -> Result RpcCallMasterNodeName
- saveRpcCallMasterNodeName :: RpcCallMasterNodeName -> JSValue
- data RpcResultMasterNodeName = RpcResultMasterNodeName {
- rpcResultMasterNodeNameMaster :: String
- loadRpcResultMasterNodeName :: JSValue -> Result RpcResultMasterNodeName
- saveRpcResultMasterNodeName :: RpcResultMasterNodeName -> JSValue
Base RPC functionality and types
Data type for RPC error reporting.
CurlLayerError String | |
JsonDecodeError String | |
RpcResultError String | |
OfflineNodeError |
explainRpcError :: RpcError -> StringSource
Provide explanation to RPC errors.
class ArrayObject a => RpcCall a whereSource
A generic class for RPC calls.
rpcCallName :: a -> StringSource
Give the (Python) name of the procedure.
rpcCallTimeout :: a -> IntSource
Calculate the timeout value for the call execution.
rpcCallData :: Node -> a -> StringSource
Prepare arguments of the call to be send as POST.
rpcCallAcceptOffline :: a -> BoolSource
Whether we accept offline nodes when making a call.
class (RpcCall a, JSON b) => Rpc a b | a -> b, b -> a whereSource
Generic class that ensures matching RPC call with its respective result.
rpcResultFill :: a -> JSValue -> ERpcError bSource
Create a result based on the received HTTP response.
data HttpClientRequest Source
HttpClientRequest | |
|
prepareUrl :: RpcCall a => Int -> Node -> a -> StringSource
prepareHttpRequest :: RpcCall a => Int -> [CurlOption] -> Node -> a -> ERpcError HttpClientRequestSource
parseHttpReply :: Rpc a b => a -> ERpcError (CurlCode, String) -> ERpcError bSource
parseHttpResponse :: Rpc a b => a -> String -> ERpcError bSource
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
getNodedPort :: IO IntSource
executeRpcCalls :: Rpc a b => [(Node, a)] -> 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.
sanitizeDictResults :: [(String, Result a)] -> ERpcError [(String, a)]Source
fromJResultToRes :: Result a -> (a -> b) -> ERpcError bSource
fromJSValueToRes :: JSON a => JSValue -> (a -> b) -> ERpcError bSource
newtype Compressed Source
An opaque data type for representing data that should be compressed over the wire.
On Python side it is decompressed by backend._Decompress
.
Compressed | |
|
Eq Compressed | |
Ord Compressed | |
Show Compressed | |
JSON Compressed | |
Arbitrary Compressed |
packCompressed :: ByteString -> CompressedSource
toCompressed :: String -> CompressedSource
RPC calls and results
Instance info
data RpcCallInstanceInfo Source
Returns information about a single instance
loadRpcCallInstanceInfo :: JSValue -> Result RpcCallInstanceInfoSource
saveRpcCallInstanceInfo :: RpcCallInstanceInfo -> JSValueSource
data InstanceState Source
Bounded InstanceState | |
Enum InstanceState | |
Eq InstanceState | |
Ord InstanceState | |
Show InstanceState | |
JSON InstanceState | |
PyValue InstanceState |
instanceStateFromRaw :: forall m. Monad m => Int -> m InstanceStateSource
instanceStateToRaw :: InstanceState -> IntSource
_InstanceStateShutdown :: IntSource
_InstanceStateRunning :: IntSource
data InstanceInfo Source
InstanceInfo | |
|
loadInstanceInfo :: JSValue -> Result InstanceInfoSource
saveInstanceInfo :: InstanceInfo -> JSValueSource
loadRpcResultInstanceInfo :: JSValue -> Result RpcResultInstanceInfoSource
saveRpcResultInstanceInfo :: RpcResultInstanceInfo -> JSValueSource
AllInstancesInfo
data RpcCallAllInstancesInfo Source
Returns information about all running instances on the given nodes
loadRpcCallAllInstancesInfo :: JSValue -> Result RpcCallAllInstancesInfoSource
saveRpcCallAllInstancesInfo :: RpcCallAllInstancesInfo -> JSValueSource
data RpcResultAllInstancesInfo Source
RpcResultAllInstancesInfo | |
|
loadRpcResultAllInstancesInfo :: JSValue -> Result RpcResultAllInstancesInfoSource
saveRpcResultAllInstancesInfo :: RpcResultAllInstancesInfo -> JSValueSource
InstanceConsoleInfo
data InstanceConsoleInfoParams Source
Returns information about how to access instances on the given node
loadInstanceConsoleInfoParams :: JSValue -> Result InstanceConsoleInfoParamsSource
saveInstanceConsoleInfoParams :: InstanceConsoleInfoParams -> JSValueSource
data RpcCallInstanceConsoleInfo Source
loadRpcCallInstanceConsoleInfo :: JSValue -> Result RpcCallInstanceConsoleInfoSource
data InstanceConsoleInfo Source
InstanceConsoleInfo | |
|
loadInstanceConsoleInfo :: JSValue -> Result InstanceConsoleInfoSource
saveInstanceConsoleInfo :: InstanceConsoleInfo -> JSValueSource
loadRpcResultInstanceConsoleInfo :: JSValue -> Result RpcResultInstanceConsoleInfoSource
InstanceList
data RpcCallInstanceList Source
Returns the list of running instances on the given nodes
loadRpcCallInstanceList :: JSValue -> Result RpcCallInstanceListSource
saveRpcCallInstanceList :: RpcCallInstanceList -> JSValueSource
data RpcResultInstanceList Source
RpcResultInstanceList | |
|
loadRpcResultInstanceList :: JSValue -> Result RpcResultInstanceListSource
saveRpcResultInstanceList :: RpcResultInstanceList -> JSValueSource
NodeInfo
data RpcCallNodeInfo Source
Returns node information
RpcCallNodeInfo | |
|
loadRpcCallNodeInfo :: JSValue -> Result RpcCallNodeInfoSource
saveRpcCallNodeInfo :: RpcCallNodeInfo -> JSValueSource
data StorageInfo Source
StorageInfo | |
|
Eq StorageInfo | |
Show StorageInfo | |
JSON StorageInfo | |
ArrayObject StorageInfo | |
DictObject StorageInfo |
loadStorageInfo :: JSValue -> Result StorageInfoSource
saveStorageInfo :: StorageInfo -> JSValueSource
Common fields (as described in hv_base.py) are mandatory, other fields are optional.
HvInfo | |
|
Eq HvInfo | |
Show HvInfo | |
JSON HvInfo | |
ArrayObject HvInfo | |
DictObject HvInfo |
loadHvInfo :: JSValue -> Result HvInfoSource
saveHvInfo :: HvInfo -> JSValueSource
data RpcResultNodeInfo Source
RpcResultNodeInfo | |
|
loadRpcResultNodeInfo :: JSValue -> Result RpcResultNodeInfoSource
saveRpcResultNodeInfo :: RpcResultNodeInfo -> JSValueSource
Version
data RpcCallVersion Source
Query node version.
loadRpcCallVersion :: JSValue -> Result RpcCallVersionSource
saveRpcCallVersion :: RpcCallVersion -> JSValueSource
data RpcResultVersion Source
Query node reply.
loadRpcResultVersion :: JSValue -> Result RpcResultVersionSource
saveRpcResultVersion :: RpcResultVersion -> JSValueSource
StorageList
data RpcCallStorageList Source
RpcCallStorageList | |
|
loadRpcCallStorageList :: JSValue -> Result RpcCallStorageListSource
saveRpcCallStorageList :: RpcCallStorageList -> JSValueSource
data RpcResultStorageList Source
RpcResultStorageList | |
|
loadRpcResultStorageList :: JSValue -> Result RpcResultStorageListSource
saveRpcResultStorageList :: RpcResultStorageList -> JSValueSource
TestDelay
data RpcCallTestDelay Source
Call definition for test delay.
RpcCallTestDelay | |
|
loadRpcCallTestDelay :: JSValue -> Result RpcCallTestDelaySource
saveRpcCallTestDelay :: RpcCallTestDelay -> JSValueSource
data RpcResultTestDelay Source
Result definition for test delay.
Show RpcResultTestDelay | |
JSON RpcResultTestDelay | Custom JSON instance for null result. |
Rpc RpcCallTestDelay RpcResultTestDelay |
ExportList
data RpcCallExportList Source
Call definition for export list.
loadRpcCallExportList :: JSValue -> Result RpcCallExportListSource
saveRpcCallExportList :: RpcCallExportList -> JSValueSource
data RpcResultExportList Source
Result definition for export list.
RpcResultExportList | |
|
loadRpcResultExportList :: JSValue -> Result RpcResultExportListSource
saveRpcResultExportList :: RpcResultExportList -> JSValueSource
Job Queue Replication
data RpcCallJobqueueUpdate Source
Update a job queue file
RpcCallJobqueueUpdate | |
|
loadRpcCallJobqueueUpdate :: JSValue -> Result RpcCallJobqueueUpdateSource
saveRpcCallJobqueueUpdate :: RpcCallJobqueueUpdate -> JSValueSource
loadRpcResultJobQueueUpdate :: JSValue -> Result RpcResultJobQueueUpdateSource
saveRpcResultJobQueueUpdate :: RpcResultJobQueueUpdate -> JSValueSource
data RpcCallJobqueueRename Source
Rename a file in the job queue
RpcCallJobqueueRename | |
|
loadRpcCallJobqueueRename :: JSValue -> Result RpcCallJobqueueRenameSource
saveRpcCallJobqueueRename :: RpcCallJobqueueRename -> JSValueSource
loadRpcResultJobqueueRename :: JSValue -> Result RpcResultJobqueueRenameSource
saveRpcResultJobqueueRename :: RpcResultJobqueueRename -> JSValueSource
Watcher Status Update
data RpcCallSetWatcherPause Source
Set the watcher status
RpcCallSetWatcherPause | |
|
loadRpcCallSetWatcherPause :: JSValue -> Result RpcCallSetWatcherPauseSource
saveRpcCallSetWatcherPause :: RpcCallSetWatcherPause -> JSValueSource
loadRpcResultSetWatcherPause :: JSValue -> Result RpcResultSetWatcherPauseSource
saveRpcResultSetWatcherPause :: RpcResultSetWatcherPause -> JSValueSource
Queue drain status
data RpcCallSetDrainFlag Source
Set the queu drain flag
loadRpcCallSetDrainFlag :: JSValue -> Result RpcCallSetDrainFlagSource
saveRpcCallSetDrainFlag :: RpcCallSetDrainFlag -> JSValueSource
loadRpcResultSetDrainFlag :: JSValue -> Result RpcResultSetDrainFlagSource
saveRpcResultSetDrainFlag :: RpcResultSetDrainFlag -> JSValueSource
Configuration files upload to nodes
data RpcCallUploadFile Source
Upload a configuration file to nodes
RpcCallUploadFile | |
|
loadRpcCallUploadFile :: JSValue -> Result RpcCallUploadFileSource
saveRpcCallUploadFile :: RpcCallUploadFile -> JSValueSource
loadRpcResultUploadFile :: JSValue -> Result RpcResultUploadFileSource
saveRpcResultUploadFile :: RpcResultUploadFile -> JSValueSource
prepareRpcCallUploadFile :: RuntimeEnts -> FilePath -> ResultG RpcCallUploadFileSource
Reads a file and constructs the corresponding RpcCallUploadFile
value.
data RpcCallWriteSsconfFiles Source
Upload ssconf files to nodes
loadRpcCallWriteSsconfFiles :: JSValue -> Result RpcCallWriteSsconfFilesSource
saveRpcCallWriteSsconfFiles :: RpcCallWriteSsconfFiles -> JSValueSource
loadRpcResultWriteSsconfFiles :: JSValue -> Result RpcResultWriteSsconfFilesSource
saveRpcResultWriteSsconfFiles :: RpcResultWriteSsconfFiles -> JSValueSource
loadRpcCallNodeActivateMasterIp :: JSValue -> Result RpcCallNodeActivateMasterIpSource
loadRpcResultNodeActivateMasterIp :: JSValue -> Result RpcResultNodeActivateMasterIpSource
data RpcCallMasterNodeName Source
Ask who the node believes is the master.
loadRpcCallMasterNodeName :: JSValue -> Result RpcCallMasterNodeNameSource
saveRpcCallMasterNodeName :: RpcCallMasterNodeName -> JSValueSource
loadRpcResultMasterNodeName :: JSValue -> Result RpcResultMasterNodeNameSource
saveRpcResultMasterNodeName :: RpcResultMasterNodeName -> JSValueSource