|
|
|
| Description |
Parsing data from text-files
This module holds the code for loading the cluster state from text
files, as produced by gnt-node and gnt-instance list.
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| Serialize a single group
|
|
|
| Generate group file data from a group list
|
|
|
| Serialize a single node
|
|
|
| Generate node file data from node objects
|
|
|
| Serialize a single instance
|
|
|
| Generate instance file data from instance objects
|
|
|
| Generate complete cluster data from node and instance lists
|
|
| loadGroup :: Monad m => [String] -> m (String, Group) | Source |
|
| Load a group from a field list.
|
|
|
| Load a node from a field list.
|
|
|
| Load an instance from a field list.
|
|
|
Convert newline and delimiter-separated text.
This function converts a text in tabular format as generated by
gnt-instance list and gnt-node list to a list of objects using
a supplied conversion function.
|
|
|
| :: String | Path to the text file
| | -> IO String | | | Load the cluser data from disk.
|
|
|
|
|
|
|
| :: String | Path to the text file
| | -> IO (Result ClusterData) | | | Top level function for data loading
|
|
|
| Produced by Haddock version 2.6.0 |