Documentation
¶
Index ¶
Constants ¶
View Source
const ( Github sourceCodeHost = "github" Gitlab sourceCodeHost = "gitlab" Bitbucket sourceCodeHost = "bitbucket" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitManager ¶
type GitManager interface {
Authorize() error
Report(issue ReportRequest, res chan ReportResponse)
GetStatus(issueNum, index int, res chan StatusResponse)
Authenticated() bool
}
func NewGitManager ¶
func NewGitManager(sch sourceCodeHost, repo *Repository) (GitManager, error)
type ReportRequest ¶
type ReportResponse ¶
type Repository ¶
type Repository struct {
WorkTree string
Dir string
RepoName string
UserName string
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(path string) (*Repository, error)
type StatusResponse ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.