wrong name when copying over code from zookeeper
This commit is contained in:
parent
73196c3231
commit
01d7e92cdb
15
doGui.go
15
doGui.go
|
@ -14,14 +14,13 @@ import (
|
|||
"go.wit.com/gui"
|
||||
"go.wit.com/lib/gadgets"
|
||||
"go.wit.com/lib/protobuf/virtpb"
|
||||
"go.wit.com/lib/protobuf/zoopb"
|
||||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
func debug() {
|
||||
for {
|
||||
time.Sleep(90 * time.Second)
|
||||
log.Info("TODO: zookeeper scan here. repo count =")
|
||||
log.Info("TODO: virtigo scan here. repo count =")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,7 +29,7 @@ func doGui() {
|
|||
me.myGui.InitEmbed(resources)
|
||||
me.myGui.Default()
|
||||
|
||||
mainWindow := gadgets.RawBasicWindow("Zookeeper: (inventory your cluster)")
|
||||
mainWindow := gadgets.RawBasicWindow("Virtigo: (inventory your cluster)")
|
||||
mainWindow.Make()
|
||||
mainWindow.Show()
|
||||
mainWindow.Custom = func() {
|
||||
|
@ -50,7 +49,7 @@ func drawWindow(win *gadgets.BasicWindow) {
|
|||
|
||||
vbox := box.NewVerticalBox("BOX2")
|
||||
|
||||
group1 := vbox.NewGroup("Zookeeper Settings")
|
||||
group1 := vbox.NewGroup("Virtigo Settings")
|
||||
grid := group1.NewGrid("buildOptions", 0, 0)
|
||||
|
||||
var hyperWin *GenericWindow
|
||||
|
@ -111,14 +110,6 @@ func drawWindow(win *gadgets.BasicWindow) {
|
|||
})
|
||||
}
|
||||
|
||||
func findVersion(m *zoopb.Machine, pkgname string) string {
|
||||
zood := m.Packages.FindByName(pkgname)
|
||||
if zood == nil {
|
||||
return "n/a"
|
||||
}
|
||||
return zood.Version
|
||||
}
|
||||
|
||||
func makeDropletsWindow(pb *virtpb.Droplets) (*GenericWindow, *virtpb.DropletsTable) {
|
||||
win := NewGenericWindow("Droplets registered with Virtigo", "Buttons of things")
|
||||
t := pb.NewTable("testDroptable")
|
||||
|
|
Loading…
Reference in New Issue