gitlab

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 7 Imported by: 0

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