Documentation ¶
Index ¶
- Constants
- Variables
- type GitRepo
- func (r *GitRepo) Close() errors.Error
- func (r *GitRepo) CollectAll(subtaskCtx core.SubTaskContext) errors.Error
- func (r *GitRepo) CollectBranches(subtaskCtx core.SubTaskContext) errors.Error
- func (r *GitRepo) CollectCommits(subtaskCtx core.SubTaskContext) errors.Error
- func (r *GitRepo) CollectDiffLine(subtaskCtx core.SubTaskContext) errors.Error
- func (r *GitRepo) CollectTags(subtaskCtx core.SubTaskContext) errors.Error
- func (r *GitRepo) CountBranches(ctx context.Context) (int, errors.Error)
- func (r *GitRepo) CountCommits(ctx context.Context) (int, errors.Error)
- func (r *GitRepo) CountTags() (int, errors.Error)
- type GitRepoCreator
Constants ¶
View Source
const ( BRANCH = "BRANCH" TAG = "TAG" )
View Source
const DefaultUser = "git"
Variables ¶
View Source
var TypeNotMatchError = "the requested type does not match the type in the ODB"
Functions ¶
This section is empty.
Types ¶
type GitRepo ¶ added in v0.12.0
type GitRepo struct {
// contains filtered or unexported fields
}
func (*GitRepo) CollectAll ¶ added in v0.12.0
func (r *GitRepo) CollectAll(subtaskCtx core.SubTaskContext) errors.Error
CollectAll The main parser subtask
func (*GitRepo) CollectBranches ¶ added in v0.12.0
func (r *GitRepo) CollectBranches(subtaskCtx core.SubTaskContext) errors.Error
CollectBranches Collect branch data
func (*GitRepo) CollectCommits ¶ added in v0.12.0
func (r *GitRepo) CollectCommits(subtaskCtx core.SubTaskContext) errors.Error
CollectCommits Collect data from each commit, we can also get the diff line
func (*GitRepo) CollectDiffLine ¶ added in v0.14.0
func (r *GitRepo) CollectDiffLine(subtaskCtx core.SubTaskContext) errors.Error
CollectDiffLine get line diff data from a specific branch
func (*GitRepo) CollectTags ¶ added in v0.12.0
func (r *GitRepo) CollectTags(subtaskCtx core.SubTaskContext) errors.Error
CollectTags Collect Tags data
func (*GitRepo) CountBranches ¶ added in v0.12.0
CountBranches count the number of branches in a git repo
func (*GitRepo) CountCommits ¶ added in v0.12.0
CountCommits count the number of commits in a git repo
type GitRepoCreator ¶ added in v0.12.0
type GitRepoCreator struct {
// contains filtered or unexported fields
}
func NewGitRepoCreator ¶ added in v0.12.0
func NewGitRepoCreator(store models.Store, logger core.Logger) *GitRepoCreator
func (*GitRepoCreator) CloneOverHTTP ¶ added in v0.12.0
func (l *GitRepoCreator) CloneOverHTTP(repoId, url, user, password, proxy string) (*GitRepo, errors.Error)
func (*GitRepoCreator) CloneOverSSH ¶ added in v0.12.0
func (l *GitRepoCreator) CloneOverSSH(repoId, url, privateKey, passphrase string) (*GitRepo, errors.Error)
Click to show internal directories.
Click to hide internal directories.