Documentation
¶
Index ¶
- type HostingGitlab
- func (h *HostingGitlab) GetBranches(ctx context.Context, repo *hosting.Repository) ([]hosting.Branch, error)
- func (h *HostingGitlab) GetCommits(ctx context.Context, repo *hosting.Repository) ([]hosting.Commit, error)
- func (h *HostingGitlab) GetFiles(ctx context.Context, repo *hosting.Repository, path string) (*hosting.File, []hosting.File, 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)
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) 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) ([]hosting.Commit, 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)
Click to show internal directories.
Click to hide internal directories.