summaryrefslogtreecommitdiff
path: root/structs.go
blob: b56cbc1e795ced31162a04f896245e9dbbbc68ea (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
// This is a simple example
package main

import 	(
//	"os/user"
//	"io/ioutil"
//	"strings"

//	"go.wit.com/log"

	"go.wit.com/gui/gui"
//	"go.wit.com/gui/gadgets"
	"go.wit.com/gui/gadgets/repostatus"
//	"go.wit.com/apps/control-panel-dns/smartwindow"
)

var myGui *gui.Node

var allrepos []*repo

type repo struct {
	path string
	lasttagrev string
	lasttag string
	tags []string

	pLabel *gui.Node // path label
	bLabel *gui.Node // branch label
	lastLabel *gui.Node // last tagged version label
	vLabel *gui.Node // version label
	// tagsDrop *gui.Node // list of all tags
	dirtyLabel *gui.Node // git state (dirty or not?)

	masterVersion *gui.Node // the master branch version
	develVersion *gui.Node // the devel branch version
	jcarrVersion *gui.Node // the jcarr branch version

	cButton *gui.Node // commit button
	pButton *gui.Node // push button

	status *repostatus.RepoStatus
}