gerrit

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2019 License: MPL-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GerritURLPattern = regexp.MustCompile(`^(http|https)://(.*)$`)
)

Functions

This section is empty.

Types

type GerritProject

type GerritProject struct {
	Path string

	Changes         *[]glb.ChangeInfo
	ReviewCount     int
	IncomingReviews []glb.ChangeInfo
	OutgoingReviews []glb.ChangeInfo
	// contains filtered or unexported fields
}

func NewGerritProject

func NewGerritProject(path string, gerrit *glb.Client) *GerritProject

func (*GerritProject) Refresh

func (project *GerritProject) Refresh(username string)

Refresh reloads the gerrit data via the Gerrit API

type Settings

type Settings struct {
	// contains filtered or unexported fields
}

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

type Widget

type Widget struct {
	wtf.KeyboardWidget
	wtf.TextWidget

	GerritProjects []*GerritProject
	Idx            int
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) *Widget

func (*Widget) HelpText added in v0.10.0

func (widget *Widget) HelpText() string

func (*Widget) Refresh

func (widget *Widget) Refresh()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL