gitlab

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitlabService

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

func NewGitlabService

func NewGitlabService(token string) (*GitlabService, error)

func (*GitlabService) CreateBranch

func (h *GitlabService) CreateBranch(ctx context.Context, repo *hosting.Repository, opts *hosting.CreateBranchOpts) (*hosting.Branch, error)

func (*GitlabService) CreateFile

func (*GitlabService) DeleteBranch

func (h *GitlabService) DeleteBranch(ctx context.Context, repo *hosting.Repository, branch *hosting.Branch) error

func (*GitlabService) DeleteFile

func (h *GitlabService) DeleteFile(ctx context.Context, repo *hosting.Repository, path string, opts *hosting.DeleteFileOpts) (*hosting.Commit, error)

func (*GitlabService) GetBranches

func (h *GitlabService) GetBranches(ctx context.Context, repo *hosting.Repository) ([]hosting.Branch, error)

func (*GitlabService) GetCommits

func (h *GitlabService) GetCommits(ctx context.Context, repo *hosting.Repository, opts *hosting.GetCommitsOpts) ([]hosting.Commit, error)

func (*GitlabService) GetFiles

func (h *GitlabService) GetFiles(ctx context.Context, repo *hosting.Repository, path string) (*hosting.File, []hosting.File, error)

func (*GitlabService) GetRawFile

func (h *GitlabService) GetRawFile(ctx context.Context, repo *hosting.Repository, path string, opts *hosting.GetFileOpts) ([]byte, error)

func (*GitlabService) GetRepositories

func (h *GitlabService) GetRepositories(ctx context.Context, owner string) ([]hosting.Repository, error)

func (*GitlabService) GetRepository

func (h *GitlabService) GetRepository(ctx context.Context, owner string, repo string) (*hosting.Repository, error)

func (*GitlabService) UpdateFile

Jump to

Keyboard shortcuts

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