Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitHubInstallationRepo ¶
type GitHubInstallationRepo interface {
GetByID(ID string) (*github.GitHubInstallation, error)
GetByOwner(owner string) (*github.GitHubInstallation, error)
GetByInstallationID(int64) (*github.GitHubInstallation, error)
Create(github.GitHubInstallation) error
Update(*github.GitHubInstallation) error
}
func NewGitHubInstallationRepo ¶
func NewGitHubInstallationRepo(db *sqlx.DB) GitHubInstallationRepo
type GitHubPRRepo ¶
type GitHubPRRepo interface {
Create(pr github.GitHubPullRequest) error
Get(ID string) (*github.GitHubPullRequest, error)
GetByGitHubID(gitHubID int64) (*github.GitHubPullRequest, error)
GetByCodebaseIDaAndHeadSHA(ctx context.Context, codebaseID, headSHA string) (*github.GitHubPullRequest, error)
ListByHeadAndRepositoryID(head string, repositoryID int64) ([]*github.GitHubPullRequest, error)
GetMostRecentlyClosedByWorkspace(workspaceID string) (*github.GitHubPullRequest, error)
ListOpenedByWorkspace(workspaceID string) ([]*github.GitHubPullRequest, error)
Update(pr *github.GitHubPullRequest) error
}
func NewGitHubPRRepo ¶
func NewGitHubPRRepo(db *sqlx.DB) GitHubPRRepo
type GitHubRepositoryRepo ¶
type GitHubRepositoryRepo interface {
GetByInstallationAndGitHubRepoID(installationID, gitHubRepositoryID int64) (*github.GitHubRepository, error)
GetByInstallationAndName(installationID int64, name string) (*github.GitHubRepository, error)
GetByCodebaseID(repositoryID string) (*github.GitHubRepository, error)
GetByID(ID string) (*github.GitHubRepository, error)
ListByInstallationID(installationID int64) ([]*github.GitHubRepository, error)
ListByInstallationIDAndGitHubRepoIDs(installationID int64, gitHubRepositoryIDs []int64) ([]*github.GitHubRepository, error)
Create(repository github.GitHubRepository) error
Update(*github.GitHubRepository) error
}
func NewGitHubRepositoryRepo ¶
func NewGitHubRepositoryRepo(db *sqlx.DB) GitHubRepositoryRepo
type GitHubUserRepo ¶
type GitHubUserRepo interface {
Create(user github.GitHubUser) error
GetByUsername(username string) (*github.GitHubUser, error)
GetByUserID(userID string) (*github.GitHubUser, error)
Update(ouser *github.GitHubUser) error
}
func NewGitHubUserRepo ¶
func NewGitHubUserRepo(db *sqlx.DB) GitHubUserRepo
Click to show internal directories.
Click to hide internal directories.