ganeti

Safe HaskellSafe-Infered

Ganeti.HTools.Backend.Simu

Description

Parsing data from a simulated description of the cluster.

This module holds the code for parsing a cluster description.

Synopsis

Documentation

parseDesc :: String -> [String] -> Result (AllocPolicy, Int, Int, Int, Int, Int, Bool)Source

createGroup :: Int -> String -> Result (Group, [Node])Source

parseDataSource

Arguments

:: [String]

Cluster description in text format

-> Result ClusterData 

Builds the cluster data from node/instance files.

loadDataSource

Arguments

:: [String]

Cluster description in text format

-> IO (Result ClusterData) 

Builds the cluster data from node/instance files.