Add a small class for Nodes and Instances
Since both nodes and instances support some common functionality (names and indices), we add a class so that we can access these attributes in a generic way.
Showing
- Ganeti/HTools/IAlloc.hs 2 additions, 2 deletionsGaneti/HTools/IAlloc.hs
- Ganeti/HTools/Instance.hs 4 additions, 0 deletionsGaneti/HTools/Instance.hs
- Ganeti/HTools/Loader.hs 4 additions, 4 deletionsGaneti/HTools/Loader.hs
- Ganeti/HTools/Node.hs 5 additions, 0 deletionsGaneti/HTools/Node.hs
- Ganeti/HTools/Rapi.hs 2 additions, 2 deletionsGaneti/HTools/Rapi.hs
- Ganeti/HTools/Text.hs 7 additions, 6 deletionsGaneti/HTools/Text.hs
- Ganeti/HTools/Types.hs 21 additions, 0 deletionsGaneti/HTools/Types.hs
Loading
Please register or sign in to comment