Documentation ¶
Index ¶
- Constants
- type GitRepo
- func (r *GitRepo) Close() error
- func (r *GitRepo) CollectAll(subtaskCtx core.SubTaskContext) error
- func (r *GitRepo) CollectBranches(subtaskCtx core.SubTaskContext) error
- func (r *GitRepo) CollectCommits(subtaskCtx core.SubTaskContext) error
- func (r *GitRepo) CollectTags(subtaskCtx core.SubTaskContext) error
- func (r *GitRepo) CountBranches(ctx context.Context) (int, error)
- func (r *GitRepo) CountCommits(ctx context.Context) (int, error)
- func (r *GitRepo) CountTags() (int, error)
- type GitRepoCreator
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) CollectAll ¶ added in v0.12.0
func (r *GitRepo) CollectAll(subtaskCtx core.SubTaskContext) error
func (*GitRepo) CollectBranches ¶ added in v0.12.0
func (r *GitRepo) CollectBranches(subtaskCtx core.SubTaskContext) error
func (*GitRepo) CollectCommits ¶ added in v0.12.0
func (r *GitRepo) CollectCommits(subtaskCtx core.SubTaskContext) error
func (*GitRepo) CollectTags ¶ added in v0.12.0
func (r *GitRepo) CollectTags(subtaskCtx core.SubTaskContext) error
func (*GitRepo) CountBranches ¶ added in v0.12.0
func (*GitRepo) CountCommits ¶ added in v0.12.0
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, error)
func (*GitRepoCreator) CloneOverSSH ¶ added in v0.12.0
func (l *GitRepoCreator) CloneOverSSH(repoId, url, privateKey, passphrase string) (*GitRepo, error)
Click to show internal directories.
Click to hide internal directories.