|
|
|
| Description |
| Implementation of the iallocator interface.
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
Parse the basic specifications of an instance.
Instances in the cluster instance list and the instance in an
Allocate request share some common properties, which are read by
this function.
|
|
|
| :: NameAssoc | The node name-to-index association list
| | -> String | The name of the instance
| | -> [(String, JSValue)] | The JSON object
| | -> Result (String, Instance) | | | Parses an instance as found in the cluster instance listg.
|
|
|
|
| :: NameAssoc | The group association
| | -> String | The node's name
| | -> [(String, JSValue)] | The JSON object
| | -> Result (String, Node) | | | Parses a node as found in the cluster node list.
|
|
|
|
| :: String | The group UUID
| | -> [(String, JSValue)] | The JSON object
| | -> Result (String, Group) | | | Parses a group as found in the cluster group list.
|
|
|
|
| :: String | The JSON message as received from Ganeti
| | -> Result Request | A (possible valid) request
| | Top-level parser.
|
|
|
|
| Format the result
|
|
|
| :: Bool | Whether the request was successful
| | -> String | Information text
| | -> RqType | Request type
| | -> [AllocElement] | The resulting allocations
| | -> String | The JSON-formatted message
| | Formats the response into a valid IAllocator response message.
|
|
|
| Produced by Haddock version 2.6.0 |