switch from virtbuf to virtpb

This commit is contained in:
Jeff Carr 2025-02-22 17:49:17 -06:00
parent b322484e48
commit 72748544f7
2 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ import (
"libvirt.org/go/libvirtxml"
"go.wit.com/lib/gui/shell"
pb "go.wit.com/lib/protobuf/virtbuf"
"go.wit.com/lib/protobuf/virtpb"
"go.wit.com/lib/virtigolib"
"go.wit.com/log"
)
@ -139,8 +139,8 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
return
}
// fmt.Fprintln(w, "HTTP:", r.Body)
var d *pb.Droplet
d = new(pb.Droplet)
var d *virtpb.Droplet
d = new(virtpb.Droplet)
// msg, err := ioutil.ReadAll(r.Body) // Read the body as []byte
fmt.Fprintln(w, "/start ReadAll() START")
fmt.Fprintln(w, "msg =", string(msg))

View File

@ -5,13 +5,13 @@ package main
import (
"errors"
pb "go.wit.com/lib/protobuf/virtbuf"
"go.wit.com/lib/protobuf/virtpb"
"go.wit.com/lib/virtigolib"
"go.wit.com/log"
"libvirt.org/go/libvirtxml"
)
func newStart(start string, d *pb.Droplet) error {
func newStart(start string, d *virtpb.Droplet) error {
if d == nil {
log.Info("log.Info: droplet is unknown:", start)
return errors.New("droplet is unknown: " + start)