diff options
| author | Jeff Carr <[email protected]> | 2024-11-01 02:53:12 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-01 02:53:12 -0500 |
| commit | bd62967a53d252bd9d1c9bcdff8288e79d4db9dd (patch) | |
| tree | 6e2ea3420955252c0e6a1cc6838cee24c78fcbb1 /argv.go | |
| parent | 54eda59c6e2d65933e2ee8f8efb941047c4699c9 (diff) | |
add dumpdomain
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -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 +` +} |
