ganeti
Safe HaskellNone

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

apolAbbrev :: String -> Result AllocPolicy Source #

Parse a shortened policy string (for command line usage).

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

Parse the string description into nodes.

createGroup Source #

Arguments

:: Int

The group index

-> String

The group specification

-> Result (Group, [Node]) 

Creates a node group with the given specifications.

parseData Source #

Arguments

:: [String]

Cluster description in text format

-> Result ClusterData 

Builds the cluster data from node/instance files.

loadData Source #

Arguments

:: [String]

Cluster description in text format

-> IO (Result ClusterData) 

Builds the cluster data from node/instance files.