summaryrefslogtreecommitdiff
path: root/machine.gui.go
blob: 3791b71c0c873c9b721662bc5479a5d831dc8276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package zoopb

import (
	"go.wit.com/gui"
	"go.wit.com/lib/protobuf/guipb"
	"go.wit.com/log"
)

func (x *Machines) NewTable(title string) *MachinesTable {
	t := new(MachinesTable)
	t.gt = gui.NewTable(title)
	t.x = x
	pb := new(guipb.Table)
	pb.Title = title
	pb.Order = append(pb.Order, "Hostname")
	pb.Order = append(pb.Order, "Memory")
	pb.Order = append(pb.Order, "Cpus")
	t.pb = pb
	return t
}

func (t *MachinesTable) ShowTable() {
	log.Info("zoopb ShowTable()")
	t.gt.ShowTable(t.pb)
}

type MachinesTable struct {
	gt        *gui.NodeTable
	pb        *guipb.Table
	x         *Machines
	hostnames []string
	columns   []*gui.NodeColumn
	order     []*gui.NodeColumn
}

/*
type RepoTableRow struct {
	nodes        []*gui.Node
}


type repoTableFullPath struct {
}

func (x *repoTableFullPath) Add(s string) {
}

func (x *RepoTable) FullPath() *RepoTableFullPath {
}

func (x *RepoTable) AddFullPath() {
	x.order = append(x.order, x.n.AddStringFunc( f() string {
		return t.x.getRepoFullPath(rx *RepoTableRow)
	}))
	return *RepoTableRow
}

func (x *RepoTable) Show() {
	x.order.f()
	ZZ
}

func (x *RepoTable) AddMasterVersion() {

	all := x.x.SortByFullPath()
	for all.Scan() {
		repo := all.Next()
		for x.order


	return *RepoTableRow
}

func (x *RepoTable) NewColumn() *RepoRow {
	t := new(RepoTableRow)
	return *RepoTableRow
}
*/