Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitManager ¶
type GitManager struct {
// contains filtered or unexported fields
}
func NewGitManager ¶
func NewGitManager(localRepositoryWorkingDir string) (gm *GitManager, err error)
func (*GitManager) GetSourceControlContext ¶
func (gm *GitManager) GetSourceControlContext() (gitInfo *services.XscGitInfoContext, err error)
Detect git information
type ScProvider ¶
type ScProvider string
ScProvider is the type of source control provider
const ( Github ScProvider = "github" Gitlab ScProvider = "gitlab" Bitbucket ScProvider = "bitbucket" Azure ScProvider = "azure" Gerrit ScProvider = "gerrit" Gitea ScProvider = "gitea" AWSCodeCommit ScProvider = "codecommit" Unknown ScProvider = "" )
func (ScProvider) String ¶
func (sp ScProvider) String() string
type ScType ¶
type ScType string
ScType is the type of source control manager
const (
Git ScType = "git"
)
type ScmManager ¶
type ScmManager interface {
GetSourceControlContext() (gitInfo *services.XscGitInfoContext, err error)
}
func DetectScmInProject ¶
func DetectScmInProject(projectPath string) (manager ScmManager, err error)
type ScmTypeData ¶
type ScmTypeData struct {
// contains filtered or unexported fields
}
ScmTypeData holds the data for each source control manager type
Click to show internal directories.
Click to hide internal directories.