api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitLabAPI

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

func NewClient

func NewClient(host string, accessToken string) (*GitLabAPI, error)

func (*GitLabAPI) CountIssues

func (api *GitLabAPI) CountIssues(p *gitlab.Project, opts *gitlab.IssuesStreamOpts) int

func (*GitLabAPI) GetCommit

func (api *GitLabAPI) GetCommit(p *gitlab.Project, id string) (*gitlab.Commit, error)

func (*GitLabAPI) GetIssue

func (api *GitLabAPI) GetIssue(p *gitlab.Project, id int) (*gitlab.Issue, error)

Implements IssueReader interface

func (*GitLabAPI) GetIssuesStream

func (api *GitLabAPI) GetIssuesStream(p *gitlab.Project, opts *gitlab.IssuesStreamOpts, issueChan chan *gitlab.Issue) error

Implements IssuesReader interface

func (*GitLabAPI) Lint

func (api *GitLabAPI) Lint(val string) ([]string, error)

Lint the provided GitLab CI configuration

Jump to

Keyboard shortcuts

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