Documentation ¶
Index ¶
- type GitlabService
- func (h *GitlabService) CreateBranch(ctx context.Context, repo *hosting.Repository, opts *hosting.CreateBranchOpts) (*hosting.Branch, error)
- func (h *GitlabService) CreateFile(ctx context.Context, repo *hosting.Repository, file *hosting.File, ...) (*hosting.File, *hosting.Commit, error)
- func (h *GitlabService) DeleteBranch(ctx context.Context, repo *hosting.Repository, branch *hosting.Branch) error
- func (h *GitlabService) DeleteFile(ctx context.Context, repo *hosting.Repository, path string, ...) (*hosting.Commit, error)
- func (h *GitlabService) GetBranches(ctx context.Context, repo *hosting.Repository) ([]hosting.Branch, error)
- func (h *GitlabService) GetCommits(ctx context.Context, repo *hosting.Repository, opts *hosting.GetCommitsOpts) ([]hosting.Commit, error)
- func (h *GitlabService) GetFiles(ctx context.Context, repo *hosting.Repository, path string) (*hosting.File, []hosting.File, error)
- func (h *GitlabService) GetRawFile(ctx context.Context, repo *hosting.Repository, path string, ...) ([]byte, error)
- func (h *GitlabService) GetRepositories(ctx context.Context, owner string) ([]hosting.Repository, error)
- func (h *GitlabService) GetRepository(ctx context.Context, owner string, repo string) (*hosting.Repository, error)
- func (h *GitlabService) UpdateFile(ctx context.Context, repo *hosting.Repository, file *hosting.File, ...) (*hosting.File, *hosting.Commit, error)
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 (h *GitlabService) CreateFile(ctx context.Context, repo *hosting.Repository, file *hosting.File, opts *hosting.CreateFileOpts) (*hosting.File, *hosting.Commit, error)
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) 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 ¶
func (h *GitlabService) UpdateFile(ctx context.Context, repo *hosting.Repository, file *hosting.File, opts *hosting.UpdateFileOpts) (*hosting.File, *hosting.Commit, error)
Click to show internal directories.
Click to hide internal directories.