Add Query support for Nodes (no filtering, no RPC)
This is the initial support for Query2: basic infrastructure (except filtering) and node query support (without RPC). It implements all the fields (tests by comparison with list-fields on the Python side), except that: - filter is not done - since RPC is not integrated yet, the runtime gathering/computing is simply stubbed out However, the infrastructure seems pretty reasonable, so I'm sending as is. Note that I've split the functions/declarations into multiple files, to keep each file clean and readable. Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
Agata Murawska <agatamurawska@google.com>
Showing
- Makefile.am 3 additions, 0 deletionsMakefile.am
- htools/Ganeti/Qlang.hs 4 additions, 0 deletionshtools/Ganeti/Qlang.hs
- htools/Ganeti/Query/Common.hs 158 additions, 0 deletionshtools/Ganeti/Query/Common.hs
- htools/Ganeti/Query/Node.hs 163 additions, 0 deletionshtools/Ganeti/Query/Node.hs
- htools/Ganeti/Query/Query.hs 42 additions, 0 deletionshtools/Ganeti/Query/Query.hs
- htools/Ganeti/Query/Types.hs 54 additions, 0 deletionshtools/Ganeti/Query/Types.hs
Loading
Please register or sign in to comment