gitlab

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: MPL-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitlabProject

type GitlabProject struct {
	MergeRequests         []*glb.MergeRequest
	AssignedMergeRequests []*glb.MergeRequest
	AuthoredMergeRequests []*glb.MergeRequest
	AssignedIssues        []*glb.Issue
	AuthoredIssues        []*glb.Issue
	RemoteProject         *glb.Project
	// contains filtered or unexported fields
}

func NewGitlabProject

func NewGitlabProject(context *context, projectPath string) *GitlabProject

func (*GitlabProject) IssueCount

func (project *GitlabProject) IssueCount() int

func (*GitlabProject) MergeRequestCount

func (project *GitlabProject) MergeRequestCount() int

func (*GitlabProject) Refresh

func (project *GitlabProject) Refresh()

Refresh reloads the gitlab data via the Gitlab API

func (*GitlabProject) StarCount

func (project *GitlabProject) StarCount() int

type Settings

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

Settings defines the configuration properties for this module

func NewSettingsFromYAML

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

NewSettingsFromYAML creates a new settings instance from a YAML config block

type Widget

type Widget struct {
	view.KeyboardWidget
	view.MultiSourceWidget
	view.TextWidget

	GitlabProjects []*GitlabProject
	// 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