gitlab

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 11 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 manages GitLab projects and project hooks.

func NewProvider

func NewProvider(ctx context.Context, endpoint, token string) (*Provider, error)

NewProvider creates a GitLab provider for GitLab.com or a self-managed instance.

func (*Provider) DeleteWebhook

func (p *Provider) DeleteWebhook(ctx context.Context, repoName, webhookID string) error

func (*Provider) EnsureWebhook

func (p *Provider) EnsureWebhook(ctx context.Context, repoName, webhookURL, secret string) (string, error)

func (*Provider) GetIdentity

func (p *Provider) GetIdentity() (string, error)

func (*Provider) ListRepos

func (p *Provider) ListRepos(ctx context.Context, opts provider.ListReposOptions) ([]provider.Repo, error)

ListRepos returns GitLab member projects with Developer-or-higher access and merge requests enabled, applying portable filters locally.

func (*Provider) RepoURL

func (p *Provider) RepoURL(ctx context.Context, repoName string) (string, error)

Jump to

Keyboard shortcuts

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