gitlab

package
v0.0.0-...-27c44ac Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(token string) repositories.ForgeProvider

NewProvider creates a new GitLab provider with the given token.

Types

type Provider

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

Provider implements ForgeProvider, FileAccessProvider, and LocalGitAuthProvider for GitLab.

func (*Provider) AuthToken

func (p *Provider) AuthToken() string

func (*Provider) CloneURL

func (p *Provider) CloneURL(repo entities.Repository) string

func (*Provider) ConfigureTransport

func (p *Provider) ConfigureTransport()

func (*Provider) CreateBranchWithChanges

func (p *Provider) CreateBranchWithChanges(
	ctx context.Context,
	repo entities.Repository,
	input entities.BranchInput,
) error

func (*Provider) CreatePullRequest

func (p *Provider) CreatePullRequest(
	ctx context.Context,
	repo entities.Repository,
	input entities.PullRequestInput,
) (*entities.PullRequest, error)

func (*Provider) DiscoverRepositories

func (p *Provider) DiscoverRepositories(
	ctx context.Context,
	group string,
) ([]entities.Repository, error)

func (*Provider) GetAuthMethods

func (p *Provider) GetAuthMethods(username string) []transport.AuthMethod

func (*Provider) GetFileContent

func (p *Provider) GetFileContent(
	ctx context.Context,
	repo entities.Repository,
	path string,
) (string, error)

func (*Provider) GetServiceType

func (p *Provider) GetServiceType() entities.ServiceType

func (*Provider) GetTags

func (p *Provider) GetTags(
	ctx context.Context,
	repo entities.Repository,
) ([]string, error)

func (*Provider) HasFile

func (p *Provider) HasFile(
	ctx context.Context,
	repo entities.Repository,
	path string,
) bool

func (*Provider) ListFiles

func (p *Provider) ListFiles(
	ctx context.Context,
	repo entities.Repository,
	pattern string,
) ([]entities.File, error)

func (*Provider) MatchesURL

func (p *Provider) MatchesURL(rawURL string) bool

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) PrepareCloneURL

func (p *Provider) PrepareCloneURL(url string) string

func (*Provider) PullRequestExists

func (p *Provider) PullRequestExists(
	ctx context.Context,
	repo entities.Repository,
	sourceBranch string,
) (bool, error)

Jump to

Keyboard shortcuts

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