gitlab

package
v0.0.0-...-1e95ff8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 9 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 {
	URI  string
	Auth string
}

Client represents a Gitlab API client

func NewClient

func NewClient(URI string, auth string) *Client

NewClient creates a new Gitlab API client

func (*Client) GetCommits

func (c *Client) GetCommits(projectID int, referenceBranch string) (*[]models.Commit, error)

GetCommits gets all commits of a repository

func (*Client) GetOrganisations

func (c *Client) GetOrganisations() (*[]models.Organisation, error)

GetOrganisations gets all organisations readable with the bearer token provided

func (*Client) GetPipelineRuns

func (c *Client) GetPipelineRuns(projectID int, referenceBranch string) (*[]models.PipelineRun, error)

GetPipelineRuns gets all workflow runs of a project

func (*Client) GetPullRequests

func (c *Client) GetPullRequests(projectID int, targetBranch string) (*[]models.PullRequest, error)

GetPullRequests gets all pull requests of a repository

func (*Client) GetRepositories

func (c *Client) GetRepositories() (*[]models.Repository, error)

GetRepositories gets all repositories readable with the bearer token provided

Jump to

Keyboard shortcuts

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