Commit 9d535ecb authored by Seblu's avatar Seblu
Browse files

TQL spec update

parent a20be402
Loading
Loading
Loading
Loading
+20 −10
Original line number Diff line number Diff line
@@ -3,31 +3,41 @@ Tag Query Language
==================
== by examples ==
# list accounts
> list a
sluttrin> list a

# list hypervisor
> list hv
sluttrin> list hv

# list vm
> list vm
sluttrin> list vm

# list vm of hypervisor toto
> list hv=toto&vm
sluttrin> list hv=toto&vm

# list vm chiche of hypervisor toto
> list hv=toto&vm=chiche
sluttrin> list hv=toto&vm=chiche

#list vm with 2 cpu
> list vm&cpu=2
sluttrin> list vm&cpu=2

#list vm with 2 cpu and mem > 10g
> list vm&cpu=2&mem>10g
sluttrin> list vm&cpu=2&mem>10g

#list hypervistor with 2cpu and vm with 2cpu
> list hv&cpu=2&vm&cpu=2
sluttrin> list hv&cpu=2&vm&cpu=2

#list hypervistor at least 2cpu and show tags pop and alloc
> list hv&cpu>=2$pop$alloc
sluttrin> list hv&cpu>=2$pop$alloc

#list first 10 vm
sluttrin> list vm^10

#list last 10 vm
sluttrin> list vm^:10

#list vm 
sluttrin> list vm^5:10


== Basics ==
- TQL build a list of objects from left to right
@@ -38,7 +48,7 @@ Tag Query Language
== separators of tags ==
& and between tags
$ show a tag
# limit output
^ limit output

== operators on tags ==
= strict equality