Rework the loader model
This big patch changes the loader model from “string data as common format” to actual object structures as common format. The text loading function move from Cluster.hs to a new Text.hs module, some common functions are moved to a new Loader.hs module, and the return values from both Rapi.hs and Text.hs are uniformized.
Showing
- Ganeti/HTools/Cluster.hs 8 additions, 80 deletionsGaneti/HTools/Cluster.hs
- Ganeti/HTools/Instance.hs 3 additions, 0 deletionsGaneti/HTools/Instance.hs
- Ganeti/HTools/Loader.hs 24 additions, 0 deletionsGaneti/HTools/Loader.hs
- Ganeti/HTools/Node.hs 10 additions, 0 deletionsGaneti/HTools/Node.hs
- Ganeti/HTools/Rapi.hs 60 additions, 54 deletionsGaneti/HTools/Rapi.hs
- Ganeti/HTools/Text.hs 86 additions, 0 deletionsGaneti/HTools/Text.hs
- hbal.hs 10 additions, 9 deletionshbal.hs
- hn1.hs 9 additions, 9 deletionshn1.hs
- hscan.hs 3 additions, 5 deletionshscan.hs
Loading
Please register or sign in to comment