gitlab

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider implements the Provider interface for GitLab

func NewProvider

func NewProvider(token, baseURL string, groups []string) (p Provider, err error)

NewProvider returns a new Provider with a new GitLab client instanciation and associated config

func (Provider) Compare

func (p Provider) Compare(project string, fromRef, toRef providers.Ref) (cmp *providers.Comparison, err error)

Compare calculates the diff between two git references

func (Provider) ListProjectBranches

func (p Provider) ListProjectBranches(projectName string) (refs providers.Refs, err error)

ListProjectBranches returns all the branches for a given project

func (*Provider) ListProjectEnvironments

func (p *Provider) ListProjectEnvironments(project string) (refs providers.Refs, err error)

ListProjectEnvironments returns all the "available" environments for a given project. It omits environments which start with "review/"

func (*Provider) ListProjectTags

func (p *Provider) ListProjectTags(projectName string) (refs providers.Refs, err error)

ListProjectTags returns all the tags for a given project

func (Provider) ListRefs

func (p Provider) ListRefs(project string) (refs providers.Refs, err error)

ListRefs returns all the Refs for a given project

func (Provider) ListRepositories

func (p Provider) ListRepositories() (repos providers.Repositories, err error)

ListRepositories returns the list of all non archived projects which belong to the groups configured as well as their subgroups

func (Provider) Type

func (p Provider) Type() providers.ProviderType

Type returns the provider type

func (Provider) WebBaseURL

func (p Provider) WebBaseURL() string

WebBaseURL returns the base URL for HTML rendered pages (non-API)

Jump to

Keyboard shortcuts

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