parser

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

View Source
const (
	BRANCH = "BRANCH"
	TAG    = "TAG"
)
View Source
const DefaultUser = "git"

Variables

This section is empty.

Functions

This section is empty.

Types

type GitRepo added in v0.12.0

type GitRepo struct {
	// contains filtered or unexported fields
}

func (*GitRepo) Close added in v0.12.0

func (r *GitRepo) Close() errors.Error

Close resources

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

func (r *GitRepo) CountBranches(ctx context.Context) (int, errors.Error)

CountBranches count the number of branches in a git repo

func (*GitRepo) CountCommits added in v0.12.0

func (r *GitRepo) CountCommits(ctx context.Context) (int, errors.Error)

CountCommits count the number of commits in a git repo

func (*GitRepo) CountTags added in v0.12.0

func (r *GitRepo) CountTags() (int, errors.Error)

CountTags Count git tags subtask

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)

func (*GitRepoCreator) LocalRepo added in v0.12.0

func (l *GitRepoCreator) LocalRepo(repoPath, repoId string) (*GitRepo, errors.Error)

LocalRepo open a local repository

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL