gitlab

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient(disableTLSVerify bool) *http.Client

NewHTTPClient ..

Types

type Client

type Client struct {
	*goGitlab.Client

	Readiness struct {
		URL        string
		HTTPClient *http.Client
	}

	RateLimiter ratelimit.Limiter
}

Client ..

func NewClient

func NewClient(cfg ClientConfig) (*Client, error)

NewClient ..

func (*Client) GetBranchLatestCommit

func (c *Client) GetBranchLatestCommit(project, branch string) (string, float64, error)

GetBranchLatestCommit ..

func (*Client) GetCommitCountBetweenRefs

func (c *Client) GetCommitCountBetweenRefs(project, from, to string) (int, error)

GetCommitCountBetweenRefs ..

func (*Client) GetEnvironment

func (c *Client) GetEnvironment(project string, environmentID int) (schemas.Environment, error)

GetEnvironment ..

func (*Client) GetProject

func (c *Client) GetProject(name string) (*goGitlab.Project, error)

GetProject ..

func (*Client) GetProjectBranches

func (c *Client) GetProjectBranches(p schemas.Project) (
	refs schemas.Refs,
	err error,
)

GetProjectBranches ..

func (*Client) GetProjectEnvironments

func (c *Client) GetProjectEnvironments(p schemas.Project) (
	envs schemas.Environments,
	err error,
)

GetProjectEnvironments ..

func (*Client) GetProjectMostRecentTagCommit

func (c *Client) GetProjectMostRecentTagCommit(projectName, filterRegexp string) (string, float64, error)

GetProjectMostRecentTagCommit ..

func (*Client) GetProjectPipelines

func (c *Client) GetProjectPipelines(projectName string, options *goGitlab.ListProjectPipelinesOptions) ([]*goGitlab.PipelineInfo, *goGitlab.Response, error)

GetProjectPipelines ..

func (*Client) GetProjectTags

func (c *Client) GetProjectTags(p schemas.Project) (
	refs schemas.Refs,
	err error,
)

GetProjectTags ..

func (*Client) GetRefPipeline

func (c *Client) GetRefPipeline(ref schemas.Ref, pipelineID int) (p schemas.Pipeline, err error)

GetRefPipeline ..

func (*Client) GetRefPipelineVariablesAsConcatenatedString

func (c *Client) GetRefPipelineVariablesAsConcatenatedString(ref schemas.Ref) (string, error)

GetRefPipelineVariablesAsConcatenatedString ..

func (*Client) GetRefsFromPipelines

func (c *Client) GetRefsFromPipelines(p schemas.Project, refKind schemas.RefKind) (refs schemas.Refs, err error)

GetRefsFromPipelines ..

func (*Client) ListPipelineBridges added in v0.4.6

func (c *Client) ListPipelineBridges(projectName string, pipelineID int) (bridges []*goGitlab.Bridge, err error)

ListPipelineBridges ..

func (*Client) ListPipelineChildJobs added in v0.4.6

func (c *Client) ListPipelineChildJobs(projectName string, parentPipelineID int) (jobs []schemas.Job, err error)

ListPipelineChildJobs ..

func (*Client) ListPipelineJobs added in v0.4.6

func (c *Client) ListPipelineJobs(projectName string, pipelineID int) (jobs []schemas.Job, err error)

ListPipelineJobs ..

func (*Client) ListProjects

func (c *Client) ListProjects(w config.Wildcard) ([]schemas.Project, error)

ListProjects ..

func (*Client) ListRefMostRecentJobs

func (c *Client) ListRefMostRecentJobs(ref schemas.Ref) (jobs []schemas.Job, err error)

ListRefMostRecentJobs ..

func (*Client) ListRefPipelineJobs

func (c *Client) ListRefPipelineJobs(ref schemas.Ref) (jobs []schemas.Job, err error)

ListRefPipelineJobs ..

func (*Client) ReadinessCheck

func (c *Client) ReadinessCheck() healthcheck.Check

ReadinessCheck ..

type ClientConfig

type ClientConfig struct {
	URL              string
	Token            string
	UserAgentVersion string
	DisableTLSVerify bool
	ReadinessURL     string

	RateLimiter ratelimit.Limiter
}

ClientConfig ..

Jump to

Keyboard shortcuts

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