summaryrefslogtreecommitdiff
path: root/mirror.go
blob: e81c71c72c80fa28d83c84b0593ca17b30348b2c (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
package repostatus

import (
	"go.wit.com/gui"
	// "go.wit.com/gui/gui"
)

// this is experiemental work on making 'View's or Table Row's
// this may or may not be a good idea

// returns a widget of the last tag that acts as a mirror
func (rs *RepoStatus) MirrorLastTag() *gui.Node {
	return rs.lasttag.MirrorValue()
}

func (rs *RepoStatus) MirrorTargetVersion() *gui.Node {
	return rs.targetReleaseVersion.MirrorValue()
}

func (rs *RepoStatus) MirrorCurrentVersion() *gui.Node {
	return rs.currentVersion.MirrorValue()
}

func (rs *RepoStatus) MirrorCurrentName() *gui.Node {
	return rs.currentBranch.MirrorValue()
}

func (rs *RepoStatus) MirrorGitState() *gui.Node {
	return rs.gitState.MirrorValue()
}

func (rs *RepoStatus) MirrorMasterVersion() *gui.Node {
	return rs.mainBranchVersion.MirrorValue()
}

func (rs *RepoStatus) MirrorDevelVersion() *gui.Node {
	return rs.develBranchVersion.MirrorValue()
}

func (rs *RepoStatus) MirrorUserVersion() *gui.Node {
	return rs.userBranchVersion.MirrorValue()
}