ganeti-htoolsSource codeContentsIndex
Ganeti.HTools.Simu
Description

Parsing data from a simulated description of the cluster.

This module holds the code for parsing a cluster description.

Synopsis
apolAbbrev :: String -> Result AllocPolicy
parseDesc :: String -> [String] -> Result (AllocPolicy, Int, Int, Int, Int, Int)
createGroup :: Int -> String -> Result (Group, [Node])
parseData :: [String] -> Result ClusterData
loadData :: [String] -> IO (Result ClusterData)
Documentation
apolAbbrev :: String -> Result AllocPolicySource
Parse a shortened policy string (for command line usage).
parseDesc :: String -> [String] -> Result (AllocPolicy, Int, Int, Int, Int, Int)Source
Parse the string description into nodes.
createGroupSource
:: IntThe group index
-> StringThe group specification
-> Result (Group, [Node])
Creates a node group with the given specifications.
parseDataSource
:: [String]Cluster description in text format
-> Result ClusterData
Builds the cluster data from node/instance files.
loadDataSource
:: [String]Cluster description in text format
-> IO (Result ClusterData)
Builds the cluster data from node/instance files.
Produced by Haddock version 2.6.0