Documentation
¶
Index ¶
- type HostingGithub
- func (h *HostingGithub) GetBranches(ctx context.Context, repo *hosting.Repository) ([]hosting.Branch, error)
- func (h *HostingGithub) GetCommits(ctx context.Context, repo *hosting.Repository) ([]hosting.Commit, error)
- func (h *HostingGithub) GetFiles(ctx context.Context, repo *hosting.Repository, path string) (*hosting.File, []hosting.File, error)
- func (h *HostingGithub) GetRepositories(ctx context.Context, owner string) ([]hosting.Repository, error)
- func (h *HostingGithub) 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 HostingGithub ¶
type HostingGithub struct {
// contains filtered or unexported fields
}
func New ¶
func New(token *string) (*HostingGithub, error)
func (*HostingGithub) GetBranches ¶
func (h *HostingGithub) GetBranches(ctx context.Context, repo *hosting.Repository) ([]hosting.Branch, error)
func (*HostingGithub) GetCommits ¶
func (h *HostingGithub) GetCommits(ctx context.Context, repo *hosting.Repository) ([]hosting.Commit, error)
func (*HostingGithub) GetRepositories ¶
func (h *HostingGithub) GetRepositories(ctx context.Context, owner string) ([]hosting.Repository, error)
func (*HostingGithub) GetRepository ¶
func (h *HostingGithub) GetRepository(ctx context.Context, owner string, repo string) (*hosting.Repository, error)
Click to show internal directories.
Click to hide internal directories.