From bd62967a53d252bd9d1c9bcdff8288e79d4db9dd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 1 Nov 2024 02:53:12 -0500 Subject: add dumpdomain Signed-off-by: Jeff Carr --- argv.go | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'argv.go') diff --git a/argv.go b/argv.go index 8b56309..4e205d9 100644 --- a/argv.go +++ b/argv.go @@ -12,9 +12,7 @@ import ( var argv args type args struct { - ListRepos bool `arg:"--list-repos" help:"list all repositories"` Port int `arg:"--port" default:"2520" help:"port to run on"` - Start string `arg:"--start" help:"start a droplet"` } func (args) Version() string { @@ -24,3 +22,21 @@ func (args) Version() string { func init() { arg.MustParse(&argv) } + +func (a args) Description() string { + return ` + this daemon talks to virtigo talks to libvirt and/or qemu + +This sends data back to virtigo. It helps read out the libvirtxml +and convert it to protobuf. +The name is odd, it's virtigo-D not virti-god. + +You can query the status directly: + + # the list of running vms: + curl --silent http://localhost:2520/vms + + # information about vm foo.bar.com: + curl --silent http://localhost:2520/dumpdroplet?foo.bar.com +` +} -- cgit v1.2.3