Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api interface { GetCommitBySha(sha string) (error, *github.RepositoryCommit) GetUserByUsername(username string) (error, *github.User) GetCommitsBySha(sha string) (error, []*github.RepositoryCommit) GetComittersByCommits(commits []*github.RepositoryCommit) (error, []codefreshSdk.GitopsUser) GetIssuesAndPrsByCommits(commits []*github.RepositoryCommit) (error, []codefreshSdk.Annotation, []codefreshSdk.Annotation) }
func GetInstance ¶
type CachedGithub ¶
type CachedGithub struct { GitClient Api // contains filtered or unexported fields }
func New ¶
func New(gitClient Api) *CachedGithub
func (*CachedGithub) GetCommitBySha ¶
func (cachedGithub *CachedGithub) GetCommitBySha(revision string) (error, *github.RepositoryCommit)
func (*CachedGithub) GetCommitsBySha ¶
func (cachedGithub *CachedGithub) GetCommitsBySha(revision string) (error, []*github.RepositoryCommit)
func (*CachedGithub) GetUserByUsername ¶
func (cachedGithub *CachedGithub) GetUserByUsername(username string) (error, *github.User)
type GitlabApi ¶
type GitlabApi interface { ListProjects(page int) (error, []*gitlab.Project) RetrieveAvatar(email string) (error, string) GetCommit(projectId int, revision string) (error, *gitlab.Commit) GetCommitsBySha(projectId int, revision string) (error, []*gitlab.Commit) GetComittersByCommits(commits []*gitlab.Commit) (error, []codefreshSdk.GitopsUser) GetPrsByCommits(projectId int, commits []*gitlab.Commit) (error, []codefreshSdk.Annotation) }
func NewGitlabApi ¶
func NewGitlabApi() GitlabApi
Click to show internal directories.
Click to hide internal directories.