Documentation
¶
Index ¶
- type HostingGitlab
- func (h *HostingGitlab) CreateBranch(ctx context.Context, repo *hosting.Repository, opts *hosting.CreateBranchOpts) (*hosting.Branch, error)
- func (h *HostingGitlab) CreateFile(ctx context.Context, repo *hosting.Repository, file *hosting.File, ...) (*hosting.File, *hosting.Commit, error)
- func (h *HostingGitlab) DeleteBranch(ctx context.Context, repo *hosting.Repository, branch *hosting.Branch) error
- func (h *HostingGitlab) DeleteFile(ctx context.Context, repo *hosting.Repository, path string, ...) (*hosting.Commit, error)
- func (h *HostingGitlab) GetBranches(ctx context.Context, repo *hosting.Repository) ([]hosting.Branch, error)
- func (h *HostingGitlab) GetCommits(ctx context.Context, repo *hosting.Repository, opts *hosting.GetCommitsOpts) ([]hosting.Commit, error)
- func (h *HostingGitlab) GetFiles(ctx context.Context, repo *hosting.Repository, path string) (*hosting.File, []hosting.File, error)
- func (h *HostingGitlab) GetRawFile(ctx context.Context, repo *hosting.Repository, path string, ...) ([]byte, error)
- func (h *HostingGitlab) GetRepositories(ctx context.Context, owner string) ([]hosting.Repository, error)
- func (h *HostingGitlab) GetRepository(ctx context.Context, owner string, repo string) (*hosting.Repository, error)
- func (h *HostingGitlab) 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 HostingGitlab ¶
type HostingGitlab struct {
// contains filtered or unexported fields
}
func New ¶
func New(token string) (*HostingGitlab, error)
func (*HostingGitlab) CreateBranch ¶ added in v0.1.0
func (h *HostingGitlab) CreateBranch(ctx context.Context, repo *hosting.Repository, opts *hosting.CreateBranchOpts) (*hosting.Branch, error)
func (*HostingGitlab) CreateFile ¶ added in v0.1.0
func (h *HostingGitlab) CreateFile(ctx context.Context, repo *hosting.Repository, file *hosting.File, opts *hosting.CreateFileOpts) (*hosting.File, *hosting.Commit, error)
func (*HostingGitlab) DeleteBranch ¶ added in v0.1.0
func (h *HostingGitlab) DeleteBranch(ctx context.Context, repo *hosting.Repository, branch *hosting.Branch) error
func (*HostingGitlab) DeleteFile ¶ added in v0.1.0
func (h *HostingGitlab) DeleteFile(ctx context.Context, repo *hosting.Repository, path string, opts *hosting.DeleteFileOpts) (*hosting.Commit, error)
func (*HostingGitlab) GetBranches ¶
func (h *HostingGitlab) GetBranches(ctx context.Context, repo *hosting.Repository) ([]hosting.Branch, error)
func (*HostingGitlab) GetCommits ¶
func (h *HostingGitlab) GetCommits(ctx context.Context, repo *hosting.Repository, opts *hosting.GetCommitsOpts) ([]hosting.Commit, error)
func (*HostingGitlab) GetRawFile ¶ added in v0.1.0
func (h *HostingGitlab) GetRawFile(ctx context.Context, repo *hosting.Repository, path string, opts *hosting.GetFileOpts) ([]byte, error)
func (*HostingGitlab) GetRepositories ¶
func (h *HostingGitlab) GetRepositories(ctx context.Context, owner string) ([]hosting.Repository, error)
func (*HostingGitlab) GetRepository ¶
func (h *HostingGitlab) GetRepository(ctx context.Context, owner string, repo string) (*hosting.Repository, error)
func (*HostingGitlab) UpdateFile ¶ added in v0.1.0
func (h *HostingGitlab) 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.