gitlab

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ListOptions *gitlab.ListOptions
	// contains filtered or unexported fields
}

func (*Client) GetAuthorizations added in v0.0.3

func (c *Client) GetAuthorizations() service.AuthorizationsService

func (*Client) GetIssues

func (c *Client) GetIssues() service.IssuesService

func (*Client) GetProjects added in v0.0.3

func (c *Client) GetProjects() service.ProjectsService

func (*Client) GetPullRequests

func (c *Client) GetPullRequests() service.PullRequestsService

func (*Client) GetRepositories added in v0.0.3

func (c *Client) GetRepositories() service.RepositoriesService

type ClientBuilder added in v0.0.3

type ClientBuilder struct{}

func (*ClientBuilder) GetType added in v0.0.3

func (cb *ClientBuilder) GetType() string

func (*ClientBuilder) New added in v0.0.3

func (cb *ClientBuilder) New(ctx context.Context, serviceConfig *etc.ServiceConfig) (service.Client, error)

func (*ClientBuilder) NewViaBasicAuth added in v0.0.3

func (cb *ClientBuilder) NewViaBasicAuth(ctx context.Context, serviceConfig *etc.ServiceConfig, user, pass string) (service.Client, error)

type Issue

type Issue struct {
	*gitlab.Issue
}

func (*Issue) GetHTMLURL

func (issue *Issue) GetHTMLURL() string

func (*Issue) GetNumber

func (issue *Issue) GetNumber() int

func (*Issue) GetTitle

func (issue *Issue) GetTitle() string

type IssuesService added in v0.0.3

type IssuesService interface {
	ListProjectIssues(pid interface{}, opt *gitlab.ListProjectIssuesOptions, options ...gitlab.OptionFunc) ([]*gitlab.Issue, *gitlab.Response, error)
}

type MergeRequestsService added in v0.0.3

type MergeRequestsService interface {
	ListProjectMergeRequests(pid interface{}, opt *gitlab.ListProjectMergeRequestsOptions, options ...gitlab.OptionFunc) ([]*gitlab.MergeRequest, *gitlab.Response, error)
	CreateMergeRequest(pid interface{}, opt *gitlab.CreateMergeRequestOptions, options ...gitlab.OptionFunc) (*gitlab.MergeRequest, *gitlab.Response, error)
}

type ProjectsService added in v0.0.3

type ProjectsService interface {
	GetProject(pid interface{}, options ...gitlab.OptionFunc) (*gitlab.Project, *gitlab.Response, error)
	CreateProject(opt *gitlab.CreateProjectOptions, options ...gitlab.OptionFunc) (*gitlab.Project, *gitlab.Response, error)
}

type PullRequest

type PullRequest struct {
	*gitlab.MergeRequest
}

func (*PullRequest) GetHTMLURL

func (pullRequest *PullRequest) GetHTMLURL() string

func (*PullRequest) GetNumber

func (pullRequest *PullRequest) GetNumber() int

func (*PullRequest) GetTitle

func (pullRequest *PullRequest) GetTitle() string

type RawClient added in v0.0.2

type RawClient interface {
	GetProjects() ProjectsService
	GetMergeRequests() MergeRequestsService
	GetIssues() IssuesService
	//GetTags() tagsService
	SetBaseURL(baseUrl string) error
}

type Repository

type Repository struct {
	*gitlab.Project
}

func (*Repository) GetCloneURL added in v0.0.2

func (repo *Repository) GetCloneURL() string

func (*Repository) GetGitURL added in v0.0.2

func (repo *Repository) GetGitURL() string

func (*Repository) GetHTMLURL

func (repo *Repository) GetHTMLURL() string

Jump to

Keyboard shortcuts

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